/* ============================================
   Responsive Styles
   ============================================ */

/* Large Screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Screens */
@media (max-width: 992px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        transform: translateX(0);
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .table-container {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
    }
    
    .modal {
        width: 95%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-info h3 {
        font-size: 20px;
    }
}
/* ===== منوی پایین موبایل ===== */
.mobile-bottom-nav {
    display: none; /* در دسکتاپ مخفی */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    background: oklch(1 0.001 240 / 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-top: 1px solid oklch(0.90 0.01 240);
    box-shadow: 0 -4px 20px oklch(0.2 0.02 240 / 0.12);

    /* فاصله امن نوار پایین در آیفون‌ها */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mbn-container {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    max-width: 640px;
    margin: 0 auto;
    height: 62px;
}

.mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: oklch(0.55 0.02 240);
    text-decoration: none;

    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 12px;
}

.mbn-item i {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.mbn-item:active i {
    transform: scale(0.9);
}

.mbn-item:hover {
    color: oklch(0.45 0.03 240);
    background: oklch(0.95 0.01 240 / 0.6);
}

/* آیتم برجسته (ثبت نام) */
.mbn-highlight {
    color: oklch(0.55 0.15 260);
}

.mbn-highlight i {
    /* بدنه تهران خادم */
    background: oklch(0.60 0.18 260);
    color: #fff;
    padding: 9px;
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: 0 4px 12px oklch(0.60 0.18 260 / 0.35);
}

/* آیتم فعال (با JS ست می‌شود) */
.mbn-item.active {
    color: oklch(0.50 0.17 260);
}

.mbn-item.active i {
    transform: translateY(-2px);
}

/* در دسکتاپ مخفی و در موبایل نمایان */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: block;
    }

    /* تا کادر پایین صفحه توسط نوار پوشیده نشود */
    body {
        padding-bottom: 72px;
    }
}
