/* =====================================================
   ExamNote Pro - Main CSS
   Premium EdTech Platform Design System
   ===================================================== */

/* --- CSS Variables (Design Tokens) --- */
:root {
    --bg:            #FAFBFF;
    --card-bg:       #FFFFFF;
    --primary:       #4361EE;
    --primary-dark:  #3347cc;
    --primary-light: rgba(67,97,238,0.08);
    --secondary:     #00B4D8;
    --accent:        #4CC9F0;
    --success:       #06D6A0;
    --warning:       #F4A261;
    --danger:        #EF233C;
    --text:          #222;
    --text-muted:    #6c757d;
    --light-gray:    #F5F7FA;
    --border:        rgba(0,0,0,0.07);
    --shadow-sm:     0 2px 12px rgba(67,97,238,0.07);
    --shadow-md:     0 8px 32px rgba(67,97,238,0.12);
    --shadow-lg:     0 20px 60px rgba(67,97,238,0.18);
    --radius-sm:     10px;
    --radius-md:     16px;
    --radius-lg:     24px;
    --radius-xl:     32px;
    --glass-bg:      rgba(255,255,255,0.75);
    --glass-border:  rgba(255,255,255,0.6);
    --blur:          blur(20px);
    --font-body:     'Barlow', sans-serif;
    --font-logo:     'Bruno Ace SC', cursive;
    --font-heading:  'Gugi', cursive;
    --gradient-1:    linear-gradient(135deg, #4361EE 0%, #00B4D8 100%);
    --gradient-2:    linear-gradient(135deg, #4CC9F0 0%, #4361EE 100%);
    --gradient-hero: linear-gradient(135deg, #4361EE20 0%, #4CC9F020 50%, #00B4D820 100%);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; }
h4, h5, h6 { font-weight: 600; }
p           { font-weight: 400; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--text);
    margin-bottom: 0.5rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; }
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Logo --- */
.logo-text {
    font-family: var(--font-logo);
    font-size: 1.4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* =====================================================
   ANIMATED BACKGROUND
   ===================================================== */
.animated-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 500px; height: 500px;
    background: var(--primary);
    top: -200px; left: -200px;
    animation-duration: 25s;
}
.shape-2 {
    width: 350px; height: 350px;
    background: var(--secondary);
    top: 50%; right: -100px;
    animation-duration: 20s;
    animation-delay: -5s;
}
.shape-3 {
    width: 250px; height: 250px;
    background: var(--accent);
    bottom: -100px; left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}
.shape-4 {
    width: 180px; height: 180px;
    background: var(--success);
    top: 30%; left: 15%;
    animation-duration: 18s;
    animation-delay: -8s;
}
.shape-5 {
    width: 400px; height: 400px;
    background: var(--warning);
    bottom: 20%; right: 10%;
    animation-duration: 30s;
    animation-delay: -15s;
    opacity: 0.04;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25%  { transform: translate(30px, -40px) rotate(90deg) scale(1.05); }
    50%  { transform: translate(-20px, 30px) rotate(180deg) scale(0.95); }
    75%  { transform: translate(40px, 20px) rotate(270deg) scale(1.02); }
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-web {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-web.scrolled {
    box-shadow: var(--shadow-md);
}

/* Search */
.navbar-search { flex: 1; max-width: 480px; }
.search-input-wrapper { position: relative; width: 100%; }
.search-input {
    width: 100%;
    padding: 10px 120px 10px 40px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: var(--light-gray);
    font-size: 0.875rem;
    transition: all 0.3s;
    font-family: var(--font-body);
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}
.search-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.search-btn {
    position: absolute;
    right: 4px; top: 4px; bottom: 4px;
    padding: 0 18px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}
.search-btn:hover { transform: scale(1.03); box-shadow: 0 4px 15px rgba(67,97,238,0.4); }

/* Live Search Dropdown */
.live-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 1000;
    display: none;
    overflow: hidden;
}
.live-search-dropdown.show { display: block; }
.live-search-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}
.live-search-item:last-child { border-bottom: none; }
.live-search-item:hover { background: var(--primary-light); color: var(--primary); }
.live-search-thumb {
    width: 40px; height: 40px; border-radius: 8px;
    object-fit: cover; background: var(--light-gray);
}

/* Mega Menu */
.mega-menu {
    min-width: 380px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
}
.mega-menu-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.mega-menu-item:hover { background: var(--primary-light); color: var(--primary); }
.cat-icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
}

/* Nav Links */
.navbar-web .nav-link {
    font-weight: 500; font-size: 0.9rem;
    color: var(--text) !important;
    padding: 0.5rem 0.8rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.navbar-web .nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }

/* User Avatar Button */
.user-avatar-btn {
    background: var(--primary-light);
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    padding: 4px 14px 4px 6px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
}
.user-avatar-btn:hover { background: var(--primary); color: white; }
.avatar-sm { width: 32px; height: 32px; object-fit: cover; }

/* User Dropdown */
.user-dropdown, .notif-dropdown {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
}
.user-dropdown .dropdown-item {
    font-size: 0.875rem; padding: 8px 16px;
    border-radius: 8px; margin: 2px 8px;
    transition: all 0.2s;
}
.user-dropdown .dropdown-item:hover { background: var(--primary-light); color: var(--primary); }

/* Notification Badge */
.notif-badge {
    position: absolute; top: -5px; right: -5px;
    width: 18px; height: 18px;
    background: var(--danger);
    color: white; font-size: 10px; font-weight: 700;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.btn-icon {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--light-gray);
    display: flex; align-items: center; justify-content: center;
    color: var(--text); transition: all 0.2s;
    position: relative;
}
.btn-icon:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* Notification Dropdown */
.notif-dropdown { min-width: 300px; }
.notif-header { font-size: 0.875rem; background: var(--light-gray); }
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px;
    text-decoration: none; color: var(--text);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem; transition: background 0.2s;
}
.notif-item:hover { background: var(--light-gray); }
.notif-item.unread { background: rgba(67,97,238,0.04); border-left: 3px solid var(--primary); }
.notif-footer {
    display: block; text-align: center;
    padding: 10px; font-size: 0.8rem;
    color: var(--primary); text-decoration: none;
    border-top: 1px solid var(--border);
    background: var(--light-gray);
}

/* Mobile Menu */
.mobile-menu { border-right: none; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; text-decoration: none;
    color: var(--text); font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.mobile-nav-link:hover, .mobile-nav-link.active { background: var(--primary-light); color: var(--primary); }
.mobile-nav-link i { font-size: 1.1rem; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary-gradient {
    background: var(--gradient-1);
    border: none; color: white;
    font-weight: 600; border-radius: 50px;
    padding: 10px 28px;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.btn-primary-gradient::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.3s;
}
.btn-primary-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67,97,238,0.4);
}
.btn-primary-gradient:hover::after { background: rgba(255,255,255,0.1); }
.btn-primary-gradient:active { transform: translateY(0); }

.btn-outline-primary {
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}
.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67,97,238,0.3) !important;
}

.btn-secondary-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border: none; color: white; font-weight: 600;
    border-radius: 50px; padding: 10px 28px;
    transition: all 0.3s;
}
.btn-secondary-gradient:hover { color: white; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,180,216,0.4); }

/* =====================================================
   CARDS - Glass Morphism
   ===================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(67,97,238,0.2);
}

.premium-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
}
.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Material Card */
.material-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}
.material-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.material-card-thumb {
    width: 100%; height: 170px;
    object-fit: cover; background: var(--light-gray);
}
.material-card-body { padding: 16px; }
.material-card-title {
    font-size: 0.9rem; font-weight: 600;
    color: var(--text); margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.material-type-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
    background: var(--primary-light); color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.material-type-badge.pdf    { background: rgba(239,68,68,0.1);  color: #ef4444; }
.material-type-badge.video  { background: rgba(168,85,247,0.1); color: #a855f7; }
.material-type-badge.zip    { background: rgba(245,158,11,0.1); color: #f59e0b; }
.material-access-badge      { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.material-access-badge.free    { background: rgba(6,214,160,0.1); color: var(--success); }
.material-access-badge.paid    { background: rgba(243,72,49,0.1); color: var(--danger); }
.material-access-badge.premium { background: rgba(67,97,238,0.1); color: var(--primary); }
.material-price { font-size: 1rem; font-weight: 700; color: var(--primary); }
.material-price del { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; margin-right: 4px; }
.material-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-top: 1px solid var(--border);
    background: var(--light-gray);
}

/* Stat Cards */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative; overflow: hidden;
    transition: all 0.3s;
}
.stat-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-1);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card-icon {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 12px;
}
.stat-card-value { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-card-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }
.stat-card-trend { font-size: 0.75rem; margin-top: 8px; }
.stat-card-trend.up   { color: var(--success); }
.stat-card-trend.down { color: var(--danger); }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    padding: 100px 0 60px;
    position: relative; overflow: hidden;
    background: var(--gradient-hero);
    min-height: 85vh;
    display: flex; align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Hero Banner Slider */
.hero-slider {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.hero-slider .carousel-item { border-radius: var(--radius-xl); overflow: hidden; background: #0b1120; }
.hero-slider .carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-xl);
    transition: transform 0.5s ease-in-out;
}
.hero-slider:hover .carousel-item img {
    transform: scale(1.02);
}
.hero-slider .carousel-indicators button {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); border: none; opacity: 0.4;
}
.hero-slider .carousel-indicators button.active { opacity: 1; width: 20px; border-radius: 4px; }

/* Counter Animation */
.counter-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.counter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.counter-value {
    font-size: 2.2rem; font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.counter-label { font-size: 0.875rem; color: var(--text-muted); }
.counter-icon { font-size: 2rem; margin-bottom: 8px; }

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 80px 0; position: relative; z-index: 1; }
.section-lg { padding: 100px 0; }
.section-sm { padding: 50px 0; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-divider {
    width: 60px; height: 4px;
    background: var(--gradient-1);
    border-radius: 2px; margin: 12px auto;
}

/* Category Grid */
.category-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    border: 1px solid var(--border);
    text-decoration: none; color: var(--text);
    transition: all 0.3s; display: block;
    box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
}
.category-card::before {
    content: ''; position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(67,97,238,0.03));
    transition: all 0.3s;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--text);
}
.category-card:hover::before { background: linear-gradient(135deg, transparent, rgba(67,97,238,0.06)); }
.category-icon {
    width: 60px; height: 60px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-size: 1.8rem;
    transition: all 0.3s;
}
.category-card:hover .category-icon { transform: scale(1.1) rotate(5deg); }
.category-name { font-size: 0.875rem; font-weight: 600; }

/* Trending Ticker */
.exam-ticker {
    background: var(--gradient-1);
    color: white; padding: 10px 0;
    overflow: hidden;
}
.ticker-label {
    background: rgba(0,0,0,0.2); padding: 4px 16px;
    border-radius: 0 20px 20px 0; font-weight: 700; font-size: 0.8rem;
    white-space: nowrap; margin-right: 20px;
}
.ticker-content { display: flex; gap: 40px; white-space: nowrap; animation: ticker 25s linear infinite; }
.ticker-content:hover { animation-play-state: paused; }
.ticker-item { font-size: 0.875rem; display: flex; align-items: center; gap: 6px; }
.ticker-item::after { content: '•'; opacity: 0.5; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* Features Grid */
.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative; overflow: hidden;
}
.feature-card::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-1); transform: scaleX(0);
    transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
    width: 72px; height: 72px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 20px;
    background: var(--gradient-1); color: white;
    transition: all 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }

/* Testimonials */
.testimonial-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card::before { content: '"'; font-size: 6rem; color: var(--primary); opacity: 0.1; position: absolute; top: -10px; left: 20px; font-family: serif; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.star-rating i { color: #FFB800; font-size: 0.9rem; }

/* Teacher Cards */
.teacher-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-align: center;
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.teacher-banner {
    height: 80px;
    background: var(--gradient-1);
}
.teacher-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; border: 4px solid white;
    margin-top: -40px; display: block; margin-left: auto; margin-right: auto;
    box-shadow: var(--shadow-sm);
}
.teacher-info { padding: 12px 16px 20px; }
.teacher-name { font-weight: 700; font-size: 0.95rem; }
.teacher-expertise { font-size: 0.8rem; color: var(--text-muted); }
.verified-badge { color: var(--primary); font-size: 0.9rem; }

/* FAQ Accordion */
.faq-item { border-radius: var(--radius-md) !important; border: 1px solid var(--border) !important; margin-bottom: 12px; overflow: hidden; }
.faq-question {
    font-weight: 600; font-size: 0.95rem;
    padding: 16px 20px !important;
    background: var(--card-bg) !important;
    box-shadow: none !important;
}
.faq-question:not(.collapsed) { color: var(--primary); background: var(--primary-light) !important; }
.faq-answer { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* Newsletter */
.newsletter-section {
    background: var(--gradient-1);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    position: relative; overflow: hidden;
}
.newsletter-section::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg ...") no-repeat;
    opacity: 0.05;
}
.newsletter-input {
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50px; padding: 14px 24px;
    background: rgba(255,255,255,0.15);
    color: white; font-size: 0.95rem; width: 100%;
    backdrop-filter: var(--blur);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.7); }
.newsletter-input:focus { outline: none; border-color: white; background: rgba(255,255,255,0.25); }
.newsletter-btn {
    background: white; color: var(--primary);
    border: none; border-radius: 50px;
    padding: 14px 32px; font-weight: 700;
    transition: all 0.3s; white-space: nowrap;
}
.newsletter-btn:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: #111827;
    color: rgba(255,255,255,0.8);
    padding: 70px 0 0;
    position: relative; z-index: 1;
}
.footer-logo { font-family: var(--font-logo); font-size: 1.5rem; color: white; }
.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.8; margin-top: 12px; }
.footer-heading { font-weight: 700; color: white; margin-bottom: 20px; font-size: 0.95rem; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-link {
    display: block; color: rgba(255,255,255,0.6);
    text-decoration: none; font-size: 0.875rem;
    margin-bottom: 10px; transition: all 0.2s;
}
.footer-link:hover { color: var(--accent); padding-left: 5px; }
.footer-social {
    display: flex; gap: 10px; margin-top: 16px;
}
.footer-social-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    color: white; text-decoration: none;
    transition: all 0.3s;
}
.footer-social-btn:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 60px;
    font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
.footer-badge { background: var(--gradient-1); padding: 2px 10px; border-radius: 20px; color: white; font-size: 0.7rem; font-weight: 700; }

/* App Download Badges */
.app-badge { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 10px 16px; text-decoration: none; color: white; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.app-badge:hover { background: rgba(255,255,255,0.2); color: white; transform: scale(1.03); }
.app-badge i { font-size: 1.5rem; }
.app-badge-text small { display: block; font-size: 0.7rem; opacity: 0.7; }
.app-badge-text strong { font-size: 0.95rem; }

/* =====================================================
   CHATBOT WIDGET (Website)
   ===================================================== */
.chatbot-widget {
    position: fixed; bottom: 90px; right: 24px;
    z-index: 9000;
}

.chatbot-toggle {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--gradient-1);
    border: none; color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 30px rgba(67,97,238,0.45);
    cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.chatbot-toggle:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(67,97,238,0.5); }
.chatbot-toggle .chat-ping {
    position: absolute; top: -3px; right: -3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--success); border: 2px solid white;
    animation: ping 2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }

.chatbot-window {
    position: absolute; bottom: 70px; right: 0;
    width: 360px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: none; flex-direction: column;
    max-height: 500px; overflow: hidden;
}
.chatbot-window.open { display: flex; animation: slideUpFade 0.3s ease; }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chatbot-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    background: var(--gradient-1); color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.chatbot-ai-info { display: flex; align-items: center; gap: 10px; }
.chatbot-ai-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.chatbot-ai-name { font-weight: 700; font-size: 0.95rem; }
.chatbot-ai-status { font-size: 0.7rem; opacity: 0.8; }
.chatbot-status-dot { display: inline-block; width: 6px; height: 6px; background: #0f0; border-radius: 50%; margin-right: 4px; }

.chatbot-messages {
    flex: 1; padding: 16px;
    overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
    max-height: 320px;
    background: var(--light-gray);
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-bubble {
    max-width: 85%; display: flex; flex-direction: column;
}
.chat-bubble.user { align-self: flex-end; }
.chat-bubble.ai   { align-self: flex-start; }
.bubble-content {
    padding: 10px 14px; border-radius: var(--radius-md);
    font-size: 0.85rem; line-height: 1.6;
}
.chat-bubble.user .bubble-content {
    background: var(--gradient-1); color: white;
    border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
}
.chat-bubble.ai .bubble-content {
    background: white; color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 0;
}

.chatbot-quick-prompts {
    display: flex; gap: 6px; flex-wrap: wrap;
    padding: 8px 16px; border-top: 1px solid var(--border);
    background: white;
}
.quick-prompt-btn {
    font-size: 0.75rem; padding: 4px 10px;
    border: 1px solid var(--primary); border-radius: 20px;
    background: var(--primary-light); color: var(--primary);
    cursor: pointer; transition: all 0.2s;
    white-space: nowrap;
}
.quick-prompt-btn:hover { background: var(--primary); color: white; }

.chatbot-input-area {
    display: flex; align-items: flex-end; gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border); background: white;
}
.chatbot-input {
    flex: 1; border: 1.5px solid var(--border);
    border-radius: 20px; padding: 8px 14px;
    font-size: 0.85rem; resize: none;
    font-family: var(--font-body); line-height: 1.4;
    max-height: 80px; transition: border-color 0.2s;
}
.chatbot-input:focus { outline: none; border-color: var(--primary); }
.chatbot-send-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gradient-1); border: none;
    color: white; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s; flex-shrink: 0;
}
.chatbot-send-btn:hover { transform: scale(1.1); }
.chatbot-send-btn:disabled { opacity: 0.5; }

/* Typing dots */
.typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.typing-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-muted);
    animation: typingDot 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 16px;
    background: var(--gradient-hero);
}
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%; max-width: 440px;
    box-shadow: var(--shadow-lg);
}
.auth-title {
    font-family: var(--font-heading);
    font-size: 1.8rem; text-align: center; margin-bottom: 8px;
}
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

.form-floating label { font-size: 0.875rem; color: var(--text-muted); }
.form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    transition: all 0.3s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}
.input-group-text {
    background: var(--light-gray);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* OTP Input */
.otp-inputs {
    display: flex;
    gap: 2%;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.otp-digit {
    width: 14.5%;
    aspect-ratio: 1 / 1.1; /* slightly taller than wide */
    max-width: 52px;
    max-height: 56px;
    text-align: center;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-family: var(--font-body);
    padding: 0;
    flex-shrink: 0;
    caret-color: var(--primary);
    -webkit-appearance: none;
    appearance: none;
}
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }
.otp-digit.filled { border-color: var(--success); background: rgba(6,214,160,0.05); }

/* Channel Toggle */
.channel-toggle { display: flex; gap: 8px; }
.channel-btn {
    flex: 1; padding: 10px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--light-gray); cursor: pointer;
    font-size: 0.85rem; font-weight: 600; text-align: center;
    transition: all 0.3s; color: var(--text-muted);
}
.channel-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.channel-btn:hover { border-color: var(--primary); color: var(--primary); }

/* =====================================================
   DASHBOARD
   ===================================================== */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.dashboard-sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
    padding: 24px 0;
}
.dashboard-main { flex: 1; padding: 32px; background: var(--bg); }

.sidebar-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; text-decoration: none;
    color: var(--text-muted); font-weight: 500;
    border-radius: 0 50px 50px 0; margin-right: 16px;
    transition: all 0.25s; font-size: 0.9rem;
    border-left: 3px solid transparent;
}
.sidebar-nav-link:hover { color: var(--primary); background: var(--primary-light); }
.sidebar-nav-link.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); font-weight: 600; }
.sidebar-nav-link i { font-size: 1.1rem; width: 20px; text-align: center; }

/* Welcome Banner */
.welcome-banner {
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
    position: relative; overflow: hidden;
    margin-bottom: 32px;
}
.welcome-banner::before {
    content: ''; position: absolute;
    right: -40px; top: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.welcome-banner::after {
    content: ''; position: absolute;
    right: 40px; bottom: -60px;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
}
.welcome-title { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 6px; }
.welcome-subtitle { opacity: 0.85; font-size: 0.9rem; }

/* Profile Completion Ring */
.completion-ring { position: relative; display: inline-block; }
.completion-ring svg { transform: rotate(-90deg); }
.completion-percent {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 700; color: var(--primary);
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* =====================================================
   ADMIN PANEL
   ===================================================== */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px; flex-shrink: 0;
    background: linear-gradient(180deg, #1a1f3c 0%, #0f1224 100%);
    position: fixed; top: 0; left: 0; bottom: 0;
    overflow-y: auto; z-index: 100;
    display: flex; flex-direction: column;
}
.admin-sidebar-logo {
    padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.admin-sidebar-logo .logo-text { color: white; font-size: 1.1rem; }
.admin-sidebar-logo small { color: rgba(255,255,255,0.4); font-size: 0.7rem; display: block; margin-top: 2px; }

.admin-nav-section { padding: 8px 0; }
.admin-nav-label {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px;
    color: rgba(255,255,255,0.25); text-transform: uppercase;
    padding: 12px 20px 6px;
}
.admin-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; text-decoration: none;
    color: rgba(255,255,255,0.6); font-size: 0.875rem; font-weight: 500;
    transition: all 0.25s; border-left: 3px solid transparent;
    border-radius: 0;
}
.admin-nav-link:hover { color: white; background: rgba(255,255,255,0.07); }
.admin-nav-link.active {
    color: white; background: rgba(67,97,238,0.3);
    border-left-color: var(--primary);
    font-weight: 600;
}
.admin-nav-link i { width: 20px; text-align: center; font-size: 1rem; }
.admin-nav-badge {
    margin-left: auto; padding: 1px 7px; font-size: 0.65rem;
    background: var(--danger); color: white; border-radius: 20px;
    font-weight: 700;
}

.admin-content {
    margin-left: 260px; flex: 1;
    background: #f4f6fb;
    min-height: 100vh;
}

.admin-topbar {
    background: white; padding: 14px 28px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 99;
    box-shadow: var(--shadow-sm);
}
.admin-page-title { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.admin-breadcrumb { font-size: 0.8rem; color: var(--text-muted); }

.admin-body { padding: 28px; }

/* Admin Stats */
.admin-stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; gap: 20px;
    transition: all 0.3s;
}
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.admin-stat-icon {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.admin-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); }
.admin-stat-change { font-size: 0.75rem; margin-top: 4px; }

/* Admin Table */
.admin-table-wrap {
    background: white; border-radius: var(--radius-md);
    border: 1px solid var(--border); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.admin-table-header {
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.admin-table-title { font-weight: 700; font-size: 0.95rem; }
.admin-table { margin: 0; }
.admin-table thead th {
    background: var(--light-gray); font-weight: 700;
    font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted);
    padding: 12px 20px; border-bottom: 1px solid var(--border);
}
.admin-table tbody td { padding: 14px 20px; vertical-align: middle; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: rgba(67,97,238,0.02); }

/* Status Badges */
.badge-status { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-status.pending   { background: rgba(244,162,97,0.15); color: #d97706; }
.badge-status.completed { background: rgba(6,214,160,0.15);  color: #059669; }
.badge-status.rejected  { background: rgba(239,35,60,0.15);  color: var(--danger); }
.badge-status.active    { background: rgba(6,214,160,0.15);  color: #059669; }
.badge-status.inactive  { background: rgba(107,114,128,0.15); color: var(--text-muted); }

/* =====================================================
   MISC UTILITIES
   ===================================================== */
.gradient-border {
    border: 2px solid transparent;
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                var(--gradient-1) border-box;
    border-radius: var(--radius-md);
}

.material-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    border-radius: var(--radius-md);
}

.empty-state {
    text-align: center; padding: 60px 20px;
}
.empty-state-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h5 { font-weight: 600; color: var(--text-muted); }
.empty-state p  { font-size: 0.875rem; color: var(--text-muted); }

/* Pagination */
.pagination .page-link {
    border-radius: var(--radius-sm) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text) !important;
    margin: 0 3px;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination .page-item.active .page-link {
    background: var(--gradient-1) !important;
    border-color: var(--primary) !important;
    color: white !important;
}
.pagination .page-link:hover { background: var(--primary-light) !important; color: var(--primary) !important; }

/* Progress bar */
.progress-bar-gradient { background: var(--gradient-1); border-radius: 4px; }
.progress { border-radius: 4px; height: 8px; background: var(--light-gray); }

/* Animate on scroll */
[data-aos] { opacity: 0; transition-property: transform, opacity; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
    .dashboard-sidebar { display: none; }
    .admin-content { margin-left: 0; }
    .admin-sidebar { display: none; }
    .hero-section { padding: 80px 0 40px; min-height: auto; }
    .section { padding: 50px 0; }
    .auth-card { padding: 32px 24px; }
    .navbar-search { display: none; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.4rem; }
    .auth-card { padding: 24px 16px; border-radius: var(--radius-lg); }
    .counter-value { font-size: 1.6rem; }
}

/* =====================================================
   ADMIN PANEL CSS — Complete Design System
   ===================================================== */

/* --- Layout --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #F4F6FB;
}

/* --- Sidebar --- */
.admin-sidebar {
    width: 240px;
    min-height: 100vh;
    background: linear-gradient(180deg, #1E1E2E 0%, #16213E 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}
.admin-sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-logo .logo-text {
    font-family: 'Bruno Ace SC', cursive;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.5px;
}
.admin-sidebar-logo small {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    display: block;
    margin-top: 2px;
}

/* --- Nav Links --- */
.admin-nav-section {
    padding: 12px 0;
    overflow-y: auto;
}
.admin-nav-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    padding: 12px 20px 4px;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 0.83rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    border-radius: 0;
    position: relative;
}
.admin-nav-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.admin-nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.admin-nav-link.active {
    background: rgba(67,97,238,0.22);
    color: #fff;
    border-right: 3px solid #4361EE;
}
.admin-nav-link.active i { color: #4361EE; }
.admin-nav-badge {
    margin-left: auto;
    background: #EF233C;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* --- Main Content Area --- */
.admin-content {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Topbar --- */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.admin-page-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1E1E2E;
}
.admin-breadcrumb {
    font-size: 0.72rem;
    color: #94A3B8;
    margin-top: 1px;
}

/* --- Body Area --- */
.admin-body {
    flex: 1;
    padding: 28px;
    overflow-x: hidden;
}

/* --- Stat Cards --- */
.admin-stat-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.admin-stat-card:hover {
    box-shadow: 0 8px 24px rgba(67,97,238,0.1);
    transform: translateY(-2px);
}
.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.admin-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: #1E1E2E;
}
.admin-stat-label {
    font-size: 0.72rem;
    color: #94A3B8;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Table Wrap --- */
.admin-table-wrap {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}
.admin-table-header {
    padding: 16px 20px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.admin-table-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1E1E2E;
}
.admin-table {
    font-size: 0.82rem;
    margin: 0;
}
.admin-table thead th {
    background: #F8FAFC;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748B;
    border-bottom: 1px solid #E2E8F0;
    padding: 10px 16px;
    white-space: nowrap;
}
.admin-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    color: #374151;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #F8FAFC; }

/* --- Form Styling --- */
.admin-body .form-control,
.admin-body .form-select {
    border-radius: 10px;
    border: 1.5px solid #E2E8F0;
    font-size: 0.85rem;
    padding: 9px 14px;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.admin-body .form-control:focus,
.admin-body .form-select:focus {
    border-color: #4361EE;
    box-shadow: 0 0 0 3px rgba(67,97,238,0.12);
    outline: none;
}
.admin-body .form-label {
    font-size: 0.8rem;
    color: #374151;
    margin-bottom: 5px;
}
.admin-body .btn {
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 8px 18px;
    transition: all 0.18s;
}
.admin-body .btn-primary {
    background: #4361EE;
    border-color: #4361EE;
    color: #fff;
}
.admin-body .btn-primary:hover {
    background: #3347cc;
    border-color: #3347cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67,97,238,0.3);
}
.admin-body .btn-lg { padding: 12px 24px; font-size: 0.9rem; }
.admin-body .alert { border-radius: 12px; border: none; font-size: 0.85rem; }
.admin-body .alert-success { background: #D1FAE5; color: #065F46; }
.admin-body .alert-danger  { background: #FEE2E2; color: #991B1B; }
.admin-body .pagination .page-link {
    border-radius: 8px; margin: 0 2px;
    border: 1.5px solid #E2E8F0; color: #4361EE;
    font-size: 0.8rem; padding: 5px 11px;
}
.admin-body .pagination .page-item.active .page-link {
    background: #4361EE; border-color: #4361EE; color: #fff;
}
.admin-body .form-check-input:checked {
    background-color: #4361EE;
    border-color: #4361EE;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .admin-sidebar { width: 200px; }
    .admin-content { margin-left: 200px; }
}
@media (max-width: 767.98px) {
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; }
    .admin-body { padding: 16px; }
    .admin-topbar { padding: 12px 16px; }
}
