/* تنظیمات عمومی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', sans-serif;
    direction: rtl;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* تم روشن */
body.light-mode {
    background-color: #f4f7fa;
    color: #333;
}

body.dark-mode {
    background-color: #121212;
    color: #f4f7fa;
}

/* کانتینر */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* هدر */
header {
    background-color: #006400;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

header.dark-mode {
    background-color: #004d00;
}

header:hover {
    background-color: #004d00;
}

.logo {
    max-width: 200px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(10deg);
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    color: #ffd700;
    transform: scale(1.2);
}

/* بخش اصلی */
main {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    transition: all 0.3s ease;
}

main.dark-mode {
    background-color: #333;
    color: #fff;
}

/* تیتر اصلی */
h1 {
    font-size: 32px;
    color: #006400;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 2s ease;
}

h1.dark-mode {
    color: #ffd700;
}

/* فرم */
form {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    animation: fadeIn 2s ease;
}

input[type="text"] {
    padding: 14px;
    width: 60%;
    margin-right: 15px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: #006400;
    box-shadow: 0 0 10px rgba(0, 100, 0, 0.5);
}

button {
    padding: 14px 28px;
    background-color: #006400;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 100, 0, 0.4);
}

button:hover {
    background-color: #004d00;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 100, 0, 0.6);
}

/* بخش بارگذاری و خطا */
.hidden {
    display: none;
}

#loading {
    text-align: center;
    font-size: 18px;
    color: #006400;
    font-weight: bold;
    animation: fadeIn 1s ease;
}

#packageInfo {
    margin-top: 30px;
    animation: fadeIn 2s ease;
}

/* جزئیات بسته */
#packageDetails {
    font-size: 16px;
    line-height: 1.6;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#packageDetails.dark-mode {
    background-color: #444;
    color: #fff;
}

/* دکمه بازگشت */
#backButton {
    padding: 14px 28px;
    background-color: #ff4500;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 69, 0, 0.4);
}

#backButton:hover {
    background-color: #d14e00;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(255, 69, 0, 0.6);
}

/* فوتر */
footer {
    background-color: #006400;
    color: white;
    padding: 25px 0;
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

footer.dark-mode {
    background-color: #333;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffd700;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
