/* فونت عمومی سایت */
body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #212529;
    min-height: 100vh;
}

/* حالت تاریک */
body.dark-mode {
    background: linear-gradient(135deg, #212121, #424242);
    color: #f1f1f1;
}

/* کارت‌ها با افکت hover */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.card.dark-mode {
    background-color: #333;
    color: #f1f1f1;
}

/* دکمه‌ها */
.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* footer */
footer {
    font-size: 0.9rem;
    margin-top: auto;
}
footer a {
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
footer.dark-mode {
    background-color: #111;
    color: #ddd;
}

/* ✅ استایل اختصاصی برای flash پیام‌ها */
.alert {
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    direction: rtl;
}
.alert.dark-mode {
    background-color: #444;
    color: #eee;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* موفقیت */
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #b1dfbb;
}
.alert-success.dark-mode {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
}

/* خطا */
.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f1b0b7;
}
.alert-danger.dark-mode {
    background: linear-gradient(135deg, #b71c1c, #7f0000);
    color: #fff;
}

/* هشدار */
.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
    border: 1px solid #ffe8a1;
}
.alert-warning.dark-mode {
    background: linear-gradient(135deg, #f57f17, #ff8f00);
    color: #fff;
}

/* دکمه بستن */
.alert .btn-close {
    filter: invert(0.5);
}

/* ✅ استایل اختصاصی برای badgeها */
.badge {
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* موفقیت */
.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #218838) !important;
}
.badge.bg-success.dark-mode {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
}

/* خطا */
.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}
.badge.bg-danger.dark-mode {
    background: linear-gradient(135deg, #b71c1c, #7f0000) !important;
}

/* هشدار */
.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: #212529 !important;
}
.badge.bg-warning.dark-mode {
    background: linear-gradient(135deg, #f57f17, #ff8f00) !important;
    color: #fff !important;
}

/* ثانویه */
.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}
.badge.bg-secondary.dark-mode {
    background: linear-gradient(135deg, #424242, #212121) !important;
}

/* navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}
.navbar.dark-mode {
    background-color: #111 !important;
    color: #f1f1f1 !important;
}
