/* ===== VARIABLES ===== */
:root {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #EEF2FF;
    --secondary: #06B6D4;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #0F172A;
    --gray: #64748B;
    --gray-light: #F1F5F9;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --font: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: var(--font);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79,70,229,0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79,70,229,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.2s;
    font-size: 0.9rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-auth { display: flex; align-items: center; gap: 10px; }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== FLASH MESSAGE ===== */
.flash-message {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}
.flash-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.flash-message button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.6;
}
@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.7;
}
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.hero-stat h3 {
    font-size: 2rem;
    font-weight: 800;
}
.hero-stat p { opacity: 0.8; font-size: 0.9rem; }

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.section-header p { color: var(--gray); font-size: 1.05rem; }
.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card-body { padding: 24px; }

/* ===== CATEGORY GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary);
}
.category-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.category-card p { font-size: 0.85rem; color: var(--gray); }

/* ===== PROFESSIONAL CARD ===== */
.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.prof-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}
.prof-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.prof-card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.prof-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    object-fit: cover;
}
.prof-card-header h3 { color: white; font-size: 1.1rem; font-weight: 700; }
.prof-card-header p { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.prof-card-body { padding: 20px; }
.prof-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.prof-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--gray);
}
.prof-meta-item i { color: var(--primary); }
.prof-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}
.price-tag { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.price-label { font-size: 0.8rem; color: var(--gray); }
.prof-actions { display: flex; gap: 10px; }
.prof-actions .btn { flex: 1; justify-content: center; }

/* ===== STARS ===== */
.stars { color: #F59E0B; font-size: 1rem; }
.rating-text { font-size: 0.85rem; color: var(--gray); }

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #ECFDF5; color: #065F46; }
.badge-warning { background: #FFFBEB; color: #92400E; }
.badge-danger { background: #FEF2F2; color: #991B1B; }
.badge-gray { background: var(--gray-light); color: var(--gray); }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--dark);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: white;
    color: var(--dark);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-control::placeholder { color: #94A3B8; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 5px; }
.form-hint { color: var(--gray); font-size: 0.82rem; margin-top: 5px; }

/* ===== HOW IT WORKS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.step-card {
    text-align: center;
    padding: 40px 25px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}
.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--gray); font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); }
.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a { transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: var(--dark);
    padding: 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-user { display: flex; align-items: center; gap: 12px; }
.sidebar-user img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.sidebar-user-info h4 { color: white; font-size: 0.95rem; font-weight: 600; }
.sidebar-user-info p { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.sidebar-nav { padding: 15px 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: white;
    background: rgba(79,70,229,0.3);
    border-right: 3px solid var(--primary);
}
.sidebar-nav a i { width: 20px; text-align: center; }
.sidebar-section-title {
    padding: 15px 20px 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dashboard-main { flex: 1; background: #F8FAFC; overflow-y: auto; }
.dashboard-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dashboard-header h1 { font-size: 1.4rem; font-weight: 700; }
.dashboard-content { padding: 30px; }

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-icon.blue { background: #EEF2FF; color: var(--primary); }
.stat-icon.green { background: #ECFDF5; color: var(--success); }
.stat-icon.yellow { background: #FFFBEB; color: var(--warning); }
.stat-icon.red { background: #FEF2F2; color: var(--danger); }
.stat-info h3 { font-size: 1.6rem; font-weight: 800; }
.stat-info p { font-size: 0.82rem; color: var(--gray); }

/* ===== TABLE ===== */
.table-wrapper {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch !important;
}

.table-wrapper table {
    min-width: 650px;
    width: 100%;
}

/* Force scroll on ALL screen sizes */
@media (max-width: 1100px) {
    .table-wrapper {
        overflow-x: scroll !important;
        display: block;
    }
    .table-wrapper table {
        min-width: 700px;
    }
    
    /* Admin panel specific */
    .dashboard-content {
        overflow-x: hidden;
    }
    
    .dashboard-main {
        min-width: 0;
        overflow-x: hidden;
    }
}


.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.table-header h3 { font-size: 1rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-light);
}
table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #FAFAFA; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 15px;
}
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--gray); font-size: 0.9rem; }

@media (max-width: 768px) {
    .nav-menu, .nav-auth { display: none; }

    .nav-menu.open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 100px 24px 24px;
        z-index: 9998;
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu.open .nav-link {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        font-weight: 500;
        color: var(--dark);
    }

    .nav-auth.open {
        display: flex !important;
        flex-direction: row;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: white;
        padding: 0 20px;
        z-index: 9999;
        gap: 10px;
        justify-content: flex-end;
        align-items: center;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    .hamburger { display: flex; z-index: 10000; position: relative; }

    .nav-close-btn {
        display: none;
        position: fixed;
        top: 18px;
        left: 20px;
        z-index: 10001;
        background: none;
        border: none;
        font-size: 1.4rem;
        cursor: pointer;
        color: var(--dark);
    }

    .nav-close-btn.visible {
        display: block !important;
    }
    .hero { padding: 60px 0; }
    .hero-btns { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .dashboard-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    table { font-size: 0.82rem; }
    table th, table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .professionals-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}



/* ===== ENHANCED MOBILE RESPONSIVE ===== */

/* Dashboard Layout */
@media (max-width: 1024px) {
    .dashboard-content { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {

    /* Sidebar */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 8px;
        gap: 4px;
    }
    .sidebar-nav a {
        padding: 8px 12px;
        font-size: 0.78rem;
        border-radius: 8px;
        flex: 0 0 auto;
        border-right: none !important;
    }
    .sidebar-nav a:hover, .sidebar-nav a.active {
        border-right: none;
        border-bottom: 2px solid var(--primary);
    }
    .sidebar-section-title { display: none; }
    .sidebar-header { padding: 15px; }

    /* Dashboard Main */
    .dashboard-main { overflow-x: hidden; }
    .dashboard-content { padding: 15px; }
    .dashboard-header {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .dashboard-header h1 { font-size: 1.1rem; }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    .stat-card { padding: 16px; gap: 10px; }
    .stat-icon { width: 40px; height: 40px; font-size: 1rem; }
    .stat-info h3 { font-size: 1.2rem; }

    /* Tables - Horizontal Scroll */
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 550px; }
    table th, table td { padding: 10px 12px; font-size: 0.8rem; }
    .table-header { padding: 14px 16px; }

    /* Professional Cards */
    .professionals-grid { grid-template-columns: 1fr; gap: 16px; }
    .prof-card-header { padding: 18px; }
    .prof-avatar { width: 55px; height: 55px; }

    /* Category Grid */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 20px 12px; }
    .category-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .category-card h3 { font-size: 0.88rem; }

    /* Booking Cards (upcoming/past sessions) */
    .dashboard-content > div > div[style*="background:white"] {
        padding: 16px !important;
    }

    /* Modals */
    #reviewModal > div,
    [id^="completionForm"] > div {
        padding: 20px !important;
        margin: 10px !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Buttons in cards */
    .btn-sm { padding: 6px 12px; font-size: 0.78rem; }

    /* Hero */
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 0.95rem; }
    .hero-stats { gap: 20px; margin-top: 30px; }
    .hero-stat h3 { font-size: 1.5rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .step-card { padding: 25px 20px; }

    /* Form */
    .form-control { font-size: 16px; } /* iOS zoom fix */

    /* Professional Detail Page */
    .prof-detail-grid { grid-template-columns: 1fr !important; }
    
    /* Book Session Sidebar sticky fix */
    .book-sidebar { position: relative !important; top: 0 !important; }
}

@media (max-width: 480px) {

    /* Stats single column */
    .stats-grid { grid-template-columns: 1fr; }

    /* Categories */
    .categories-grid { grid-template-columns: repeat(2, 1fr); }

    /* Upcoming/Past session cards */
    .dashboard-content [style*="display:flex"][style*="align-items:center"] {
        flex-wrap: wrap;
    }

    /* Booking card action buttons wrap */
    [style*="display:flex"][style*="gap:8px"] {
        flex-wrap: wrap;
    }

    /* Modal full screen on small phones */
    #reviewModal > div {
        width: 95% !important;
        padding: 18px !important;
    }

    /* Sidebar nav scroll horizontal */
    .sidebar-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 8px;
        scrollbar-width: none;
    }
    .sidebar-nav::-webkit-scrollbar { display: none; }

    /* Font sizes */
    body { font-size: 14px; }
    .btn { font-size: 0.85rem; }
    .btn-lg { padding: 14px 24px; font-size: 1rem; }

    /* Table min-width reduce */
    table { min-width: 480px; }

    /* Footer */
    .footer { padding: 40px 0 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    /* Dashboard header */
    .dashboard-header { padding: 12px 15px; }
}

/* ===== TABLET (iPad) ===== */
/* ===== TABLET (iPad) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar { width: 220px; }
    .sidebar-nav a { padding: 10px 15px; font-size: 0.85rem; }
    .dashboard-content { padding: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .professionals-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    
    /* TABLE SCROLL FIX */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table { min-width: 700px; }
    table th, table td { padding: 10px 12px; font-size: 0.82rem; }
    
    /* Dashboard main overflow fix */
    .dashboard-main { overflow-x: hidden; }
    .dashboard-content { overflow-x: hidden; }
}

/* ===== OVERFLOW FIX ===== */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
.container { padding: 0 16px; }



/* ===== SERVICES PAGE ===== */
/* ===== SERVICES PAGE ===== */
.services-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.filter-sidebar {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    position: sticky;
    top: 90px;
}

@media (max-width: 768px) {
    .services-layout {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .filter-sidebar {
        display: none;
        position: relative !important;
        top: 0 !important;
        margin-bottom: 15px;
        order: -1;
    }
    
    .filter-sidebar.open {
        display: block;
    }
    
    #filterToggleBtn {
        display: inline-flex !important;
    }
    
    /* Professional cards single column */
    .professionals-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) {
    #filterToggleBtn {
        display: none !important;
    }
    .filter-sidebar {
        display: block !important;
    }
}





/*@media (max-width: 1024px) {*/

/* .paymnetre{*/
/*      display: flex !important;*/
/*flex-flow: column;*/
/*  }*/

/*}*/





















