/* =============================================
   UNICTEST — PREMIUM DASHBOARD DESIGN SYSTEM v2
   Performance-first: Zero backdrop-filter, zero particles
   Only transform + opacity animations (GPU-composited)
   ============================================= */

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #7c3aed;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #06b6d4;
    --info-light: #cffafe;

    --bg-body: #f0f2f7;
    --bg-card: #ffffff;
    --bg-dark: #111827;
    --bg-dark-secondary: #1f2937;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --sidebar-bg: #111827;
    --sidebar-link-color: #9ca3af;
    --sidebar-link-hover: #ffffff;

    --font-family: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-xl: 0 12px 36px rgba(0,0,0,0.12);
    --shadow-primary: 0 4px 14px rgba(79, 70, 229, 0.25);
}

/* =============================================
   BASE & RESET
   ============================================= */
* { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    line-height: 1.6;
    margin: 0;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    z-index: 999;
    background: var(--sidebar-bg);
    color: #fff;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

body.sidebar-open .sidebar { left: 0; }
body.sidebar-open { overflow: hidden; }

.sidebar-header {
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.4rem;
    text-transform: lowercase;
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--sidebar-link-color);
    display: block;
    margin-top: -2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-header a:hover .brand-name {
    color: var(--primary-light);
    transition: 0.3s;
}

.sidebar-menu { padding: 1rem 0; }

.sidebar-menu .menu-header {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-menu a {
    padding: 0.9rem 1.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--sidebar-link-color);
    display: block;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #1f2937;
    color: var(--sidebar-link-hover);
    border-left-color: var(--primary);
}

.sidebar-menu a i {
    margin-right: 1rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* --- Gold Icon & Premium Badge --- */
.text-gold {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.badge-premium {
    font-size: 0.6rem !important;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000 !important;
    font-weight: 700;
    margin-left: auto;
    border: 1px solid #e0c200;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- LIVE Badge --- */
.sticky-nav-item {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--sidebar-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.badge-live {
    font-size: 0.6rem !important;
    background-color: #ef4444;
    color: white !important;
    font-weight: 700;
    margin-left: auto;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: blinkLive 1.5s infinite;
}

@keyframes blinkLive {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.sticky-nav-item a.active {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), transparent) !important;
    border-left-color: #ef4444 !important;
}

/* --- English Speaking Highlight --- */
.sidebar-menu a[href="englishSpeaking.html"] {
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    color: white !important;
    font-weight: 700;
    margin: 10px 15px;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    position: relative;
    border-left: none !important;
    overflow: hidden;
    animation: glowButton 2s infinite alternate;
    transition: all 0.3s ease;
}

.sidebar-menu a[href="englishSpeaking.html"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.5);
    background: linear-gradient(135deg, #4338ca 0%, #db2777 100%);
}

.sidebar-menu a[href="englishSpeaking.html"] i {
    color: white !important;
    font-size: 1.2rem;
}

.sidebar-menu a[href="englishSpeaking.html"]::after {
    content: 'NEW';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #ec4899;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

@keyframes glowButton {
    0% { box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); }
    100% { box-shadow: 0 4px 20px rgba(236, 72, 153, 0.6); }
}

/* --- Book Store Highlight --- */
.sidebar-menu a[href="/bookStore/bookStore.html"] {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white !important;
    font-weight: 700;
    margin: 10px 15px;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    position: relative;
    border-left: none !important;
    overflow: hidden;
    animation: glowButtonBookStore 2s infinite alternate;
    transition: all 0.3s ease;
}

.sidebar-menu a[href="/bookStore/bookStore.html"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.5);
    background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
}

.sidebar-menu a[href="/bookStore/bookStore.html"] i {
    color: white !important;
    font-size: 1.2rem;
}

.sidebar-menu a[href="/bookStore/bookStore.html"]::after {
    content: 'NEW';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #ea580c;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

@keyframes glowButtonBookStore {
    0% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }
    100% { box-shadow: 0 4px 20px rgba(234, 88, 12, 0.6); }
}

/* --- Sidebar Overlay --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}
body.sidebar-open .sidebar-overlay { display: block; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s;
}

/* =============================================
   TOP HEADER
   ============================================= */
.top-header {
    padding: 0.75rem 1.5rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggler {
    font-size: 0.9rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    animation: menuBtnPulse 2s ease-in-out infinite;
}

.sidebar-toggler:hover,
.sidebar-toggler:active {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(79, 70, 229, 0.5);
}

.sidebar-toggler i { font-size: 1.1rem; }

.toggler-label {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-toggler.seen { animation: none; }

@keyframes menuBtnPulse {
    0% { box-shadow: 0 3px 12px rgba(79, 70, 229, 0.4); }
    50% { box-shadow: 0 3px 20px rgba(79, 70, 229, 0.7), 0 0 0 6px rgba(79, 70, 229, 0.15); }
    100% { box-shadow: 0 3px 12px rgba(79, 70, 229, 0.4); }
}

/* =============================================
   DASHBOARD MAIN AREA
   ============================================= */
.dashboard-main {
    padding: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================
   SECTION 1: HERO BANNER CAROUSEL
   ============================================= */
.dashboard-banner-carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.dashboard-banner-carousel:hover {
    box-shadow: var(--shadow-xl);
}

.welcome-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    border-radius: 0;
    padding: 2.5rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* Subtle dot pattern — cheap SVG pattern, no blur */
.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

.welcome-banner h1,
.welcome-banner p,
.welcome-banner .btn {
    position: relative;
    z-index: 1;
}

.welcome-banner h1 {
    font-weight: 800;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.3rem;
}

.welcome-banner p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.welcome-banner .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.welcome-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Carousel */
#dashBannerCarousel .carousel-inner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 190px;
}

#dashBannerCarousel .carousel-item {
    transition: opacity 0.8s ease-in-out;
    height: 100%;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
}

#dashBannerCarousel .carousel-item img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

#dashBannerCarousel .carousel-item a {
    display: block;
    height: 100%;
}

#dashBannerCarousel .carousel-item a:hover img {
    transform: scale(1.02);
}

#dashBannerCarousel .carousel-indicators {
    bottom: 6px;
    gap: 6px;
    margin-bottom: 0;
}

#dashBannerCarousel .carousel-indicators button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    opacity: 1;
}

#dashBannerCarousel .carousel-indicators button.active {
    background-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

#dashBannerCarousel .carousel-control-prev,
#dashBannerCarousel .carousel-control-next {
    width: 32px; height: 32px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

#dashBannerCarousel .carousel-control-prev { left: 8px; }
#dashBannerCarousel .carousel-control-next { right: 8px; }

.dashboard-banner-carousel:hover #dashBannerCarousel .carousel-control-prev,
.dashboard-banner-carousel:hover #dashBannerCarousel .carousel-control-next {
    opacity: 1;
}

#dashBannerCarousel .carousel-control-prev:hover,
#dashBannerCarousel .carousel-control-next:hover {
    background: rgba(79, 70, 229, 0.6);
    transform: translateY(-50%) scale(1.1);
}

#dashBannerCarousel .carousel-control-prev-icon,
#dashBannerCarousel .carousel-control-next-icon {
    width: 14px; height: 14px;
}

/* =============================================
   SECTION 2: RESUME / START PRACTICE CTA
   ============================================= */
.resume-cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.resume-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: #fff;
}

.resume-cta-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

.resume-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.resume-cta-icon.resume { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.resume-cta-icon.start { background: linear-gradient(135deg, var(--success), #059669); }

.resume-cta-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.resume-cta-body h5 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 2px 0;
}

.resume-cta-body p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resume-cta-arrow {
    font-size: 1.3rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.resume-cta-card:hover .resume-cta-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* =============================================
   SECTION 3: STATS STRIP
   ============================================= */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card-icon.subscription-active { background: var(--success-light); color: var(--success); }
.stat-card-icon.subscription-locked { background: var(--warning-light); color: var(--warning); }
.stat-card-icon.tests-done { background: var(--info-light); color: var(--info); }
.stat-card-icon.performance { background: #ede9fe; color: var(--secondary); }

.stat-card-info { min-width: 0; }

.stat-card-info h6 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-card-info .stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.stat-card-info .stat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* =============================================
   SECTION 4: QUICK ACCESS GRID
   ============================================= */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.quick-access-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.1rem 0.75rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.quick-access-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.quick-access-card .qa-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.quick-access-card:hover .qa-icon {
    transform: scale(1.1);
}

.quick-access-card .qa-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.quick-access-card .qa-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qa-badge.live {
    background: var(--danger-light);
    color: var(--danger);
    animation: blinkLive 1.5s infinite;
}

.qa-badge.new {
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    color: #fff;
}

/* Icon background colors */
.qa-icon.mytests { background: #dbeafe; color: #2563eb; }
.qa-icon.performance { background: #ede9fe; color: #7c3aed; }
.qa-icon.bookmarks { background: #fef3c7; color: #d97706; }
.qa-icon.notes { background: #d1fae5; color: #059669; }
.qa-icon.current-affairs { background: #fee2e2; color: #dc2626; }
.qa-icon.english { background: #fce7f3; color: #db2777; }
.qa-icon.refer { background: #cffafe; color: #0891b2; }
.qa-icon.doubt { background: #e0e7ff; color: #4f46e5; }

/* =============================================
   SECTION 5: LIVE TESTS
   ============================================= */
#live-tests-section {
    margin-bottom: 1.5rem;
}

.live-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.live-section-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-now-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    animation: pulseLiveNow 2s ease-in-out infinite;
}

@keyframes pulseLiveNow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.live-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.live-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.live-card-tag {
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 10px;
    display: inline-block;
    border-radius: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-card-body {
    padding: 0.85rem;
}

.live-card-body h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--danger);
    background: var(--danger-light);
    padding: 2px 8px;
    border-radius: 4px;
}

.pulse-dot {
    width: 6px; height: 6px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); }
}

.btn-attempt {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.btn-attempt:hover {
    transform: scale(1.05);
    color: white;
}

/* =============================================
   SECTION 6: RECOMMENDED TESTS
   ============================================= */
.recommended-section {
    margin-bottom: 1.5rem;
}

.recommended-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.recommended-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.recommended-header .exam-name {
    color: var(--primary);
    font-weight: 800;
}

.test-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.test-card .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.test-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.test-card .card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.test-card .card-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.test-card .card-badge.free {
    background: var(--success-light);
    color: var(--success);
}

.test-card .card-badge.premium {
    background: var(--warning-light);
    color: #b45309;
}

.btn-attempt-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 100%;
}

.btn-attempt-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* =============================================
   SECTION 7: RECENT ACTIVITY
   ============================================= */
.recent-activity-section {
    margin-bottom: 1.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.activity-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.activity-score-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.activity-score-badge.score-high { background: var(--success-light); color: var(--success); }
.activity-score-badge.score-mid { background: var(--warning-light); color: #b45309; }
.activity-score-badge.score-low { background: var(--danger-light); color: var(--danger); }

.activity-info { flex: 1; min-width: 0; }

.activity-info h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.activity-info small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.activity-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =============================================
   SECTION 8: PREMIUM PASS BANNER
   ============================================= */
.premium-pass-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4f46e5 60%, #7c3aed 100%);
    padding: 0;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.premium-pass-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(79, 70, 229, 0.4);
}

.pass-bg-pattern {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.pass-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    color: #ffffff;
}

.pass-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.pass-icon-badge {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #1e1b4b;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}

.pass-limited-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pass-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}

.pass-highlight {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pass-subtitle {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.4;
}

.pass-features-row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.pass-feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e0e7ff;
    transition: transform 0.2s ease;
}

.pass-feature-item:hover { transform: translateY(-2px); }

.pass-feature-item i { font-size: 0.8rem; color: #fbbf24; }

.pass-cta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pass-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.pass-price-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); }
.pass-price-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fbbf24;
    line-height: 1;
}
.pass-price-period { font-size: 0.72rem; color: rgba(255,255,255,0.6); }

.pass-cta-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e1b4b;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

.pass-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.5);
    color: #1e1b4b;
}

/* =============================================
   FOOTER
   ============================================= */
.footer { width: 100%; }

.social-icon {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.social-icon:hover {
    color: var(--primary) !important;
    transform: scale(1.1);
}

/* =============================================
   SEARCHABLE EXAM DROPDOWN
   ============================================= */
.searchable-dropdown {
    position: relative;
    width: 100%;
    font-family: var(--font-family);
}

.searchable-dropdown-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    color: #475569;
    user-select: none;
}

.searchable-dropdown-selected:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.searchable-dropdown-selected.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.searchable-dropdown-selected .selected-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.searchable-dropdown-selected .selected-text.has-value {
    color: #1e293b;
    font-weight: 600;
}

.searchable-dropdown-selected .dropdown-arrow {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.searchable-dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.searchable-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    z-index: 1060;
    overflow: hidden;
    animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-input-wrapper {
    position: relative;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 24px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.searchable-dropdown-search {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: var(--font-family);
    background: #ffffff;
    color: #1e293b;
    outline: none;
    transition: all 0.25s ease;
}

.searchable-dropdown-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.searchable-dropdown-search::placeholder {
    color: #94a3b8;
    font-size: 0.85rem;
}

.searchable-dropdown-options {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px 0;
    scroll-behavior: smooth;
}

.searchable-dropdown-options::-webkit-scrollbar { width: 5px; }
.searchable-dropdown-options::-webkit-scrollbar-track { background: transparent; }
.searchable-dropdown-options::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.searchable-dropdown-options::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.dropdown-group-label {
    padding: 8px 16px 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(79, 70, 229, 0.2), transparent);
}

.dropdown-option {
    padding: 10px 16px 10px 28px;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-option:hover {
    background: linear-gradient(90deg, #eef2ff, #f8fafc);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.dropdown-option.selected {
    background: linear-gradient(90deg, #eef2ff, #f8fafc);
    color: var(--primary);
    font-weight: 700;
    border-left-color: var(--primary);
}

.dropdown-option.selected::after {
    content: '\f269';
    font-family: 'bootstrap-icons';
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--primary);
}

.dropdown-no-results {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.dropdown-no-results i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.dropdown-loading {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.search-highlight {
    background: #fef08a;
    color: #1e293b;
    font-weight: 700;
    border-radius: 2px;
    padding: 0 1px;
}

/* =============================================
   ENTRANCE ANIMATIONS (Lightweight)
   ============================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.3s; }
.fade-in-up:nth-child(7) { animation-delay: 0.35s; }
.fade-in-up:nth-child(8) { animation-delay: 0.4s; }

/* =============================================
   EMPTY / LOADING STATES
   ============================================= */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 8px;
}

.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   DESKTOP STYLES (≥992px)
   ============================================= */
@media (min-width: 992px) {
    .sidebar {
        left: 0;
        padding-top: 0;
    }

    .main-content {
        width: calc(100% - 260px);
        margin-left: 260px;
    }

    .sidebar-toggler { display: none; }

    .sidebar-overlay { display: none !important; }

    body.sidebar-open .sidebar { left: 0; }

    .top-header {
        padding-top: 0.75rem !important;
    }

    .dashboard-main {
        padding: 1.5rem 2rem;
    }

    #dashBannerCarousel .carousel-inner {
        height: 200px;
    }

    .welcome-banner h1 { font-size: 2rem; }
    .welcome-banner p { font-size: 1.1rem; }

    .stats-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =============================================
   TABLET STYLES (768px - 991px)
   ============================================= */
@media (min-width: 768px) and (max-width: 991px) {
    .stats-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .top-header {
        padding-top: 0.75rem !important;
    }
}

/* =============================================
   MOBILE STYLES (≤767px)
   ============================================= */
@media (max-width: 767px) {
    .top-header {
        padding-top: 45px !important;
        padding-bottom: 10px !important;
    }

    .sidebar {
        padding-top: 50px !important;
        z-index: 1050;
    }

    .sidebar-overlay {
        z-index: 1040 !important;
    }

    .dashboard-main {
        padding: 1rem;
    }

    /* Hero */
    #dashBannerCarousel .carousel-inner {
        height: 130px;
    }

    .welcome-banner {
        padding: 1.5rem 1rem;
    }

    .welcome-banner h1 {
        font-size: 1.3rem !important;
        margin-bottom: 0.2rem;
    }

    .welcome-banner p {
        font-size: 0.85rem !important;
        margin-bottom: 0.6rem;
    }

    .welcome-banner .btn {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.8rem !important;
    }

    #dashBannerCarousel .carousel-control-prev,
    #dashBannerCarousel .carousel-control-next {
        display: none;
    }

    #dashBannerCarousel .carousel-indicators {
        bottom: 4px;
        gap: 5px;
    }

    #dashBannerCarousel .carousel-indicators button {
        width: 6px; height: 6px;
    }

    /* Resume CTA */
    .resume-cta-card {
        padding: 1rem 1.1rem;
    }

    .resume-cta-icon {
        width: 44px; height: 44px;
        font-size: 1.2rem;
    }

    .resume-cta-body h5 { font-size: 0.9rem; }
    .resume-cta-body p { font-size: 0.78rem; }

    /* Stats */
    .stats-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .stat-card {
        padding: 0.8rem 0.6rem;
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }

    .stat-card-icon {
        width: 36px; height: 36px;
        font-size: 1rem;
    }

    .stat-card-info h6 { font-size: 0.6rem; }
    .stat-card-info .stat-value { font-size: 1rem; }
    .stat-card-info .stat-sub { font-size: 0.65rem; }

    /* Quick Access */
    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .quick-access-card {
        padding: 0.8rem 0.5rem;
    }

    .quick-access-card .qa-icon {
        width: 36px; height: 36px;
        font-size: 1.05rem;
    }

    .quick-access-card .qa-label {
        font-size: 0.65rem;
    }

    .quick-access-card .qa-badge {
        font-size: 0.45rem;
        padding: 1px 4px;
        top: 3px;
        right: 3px;
    }

    /* Test Cards */
    .test-card .card-body { padding: 0.85rem; }
    .test-card .card-title { font-size: 0.85rem; }

    /* Premium Pass */
    .pass-content { padding: 1.2rem; }
    .pass-title { font-size: 1.2rem; }
    .pass-features-row { gap: 6px; }
    .pass-feature-item { font-size: 0.65rem; padding: 4px 8px; }
    .pass-cta-row { flex-direction: column; align-items: stretch; }
    .pass-price { justify-content: center; }
    .pass-cta-btn {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    .pass-icon-badge { width: 38px; height: 38px; font-size: 1.1rem; }

    /* Activity */
    .activity-item { padding: 0.7rem; gap: 0.5rem; }
    .activity-score-badge { width: 36px; height: 36px; font-size: 0.65rem; }
    .activity-info h6 { font-size: 0.78rem; }
    .activity-info small { font-size: 0.65rem; }
}

/* =============================================
   VERY SMALL SCREENS (≤380px)
   ============================================= */
@media (max-width: 380px) {
    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-card-info .stat-value { font-size: 0.9rem; }
}

/* =============================================
   CHANGE GOAL BUTTON
   ============================================= */
.btn-change-goal {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: all 0.2s ease;
}

.btn-change-goal:hover {
    background: var(--primary);
    color: #fff;
}

/* =============================================
   ANIMATE COUNTER
   ============================================= */
.counter-animate {
    display: inline-block;
    transition: opacity 0.3s;
}

/* =============================================
   DASHBOARD PRICING PLANS (Testbook-Style)
   ============================================= */
.plans-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-radio-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.plan-radio-card:hover {
    border-color: #a5b4fc;
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.08);
}

.plan-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}

.plan-info {
    flex: 1;
    min-width: 0;
}

.plan-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.plan-info .plan-validity {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}

.plan-price-area {
    text-align: right;
    flex-shrink: 0;
}

.plan-original-price {
    font-size: 0.78rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.plan-final-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.plan-recommended-badge {
    position: absolute;
    top: -1px;
    right: 12px;
    background: #10b981;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-get-pass {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-get-pass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    color: #fff;
}

@media (max-width: 575px) {
    .plan-radio-card {
        padding: 0.85rem 1rem;
    }
    .plan-info h5 {
        font-size: 0.88rem;
    }
    .plan-final-price {
        font-size: 1.2rem;
    }
}

/* =============================================
   CHANGE GOAL MODAL — MOBILE KEYBOARD FIX
   ============================================= */

/* Desktop: center the dialog */
.change-goal-dialog {
    max-width: 500px;
    margin: auto;
}

@media (min-width: 576px) {
    .change-goal-dialog {
        margin-top: 1.75rem;
        margin-bottom: 1.75rem;
    }
}

/* Mobile: stick the modal to the top so keyboard doesn't cover it */
@media (max-width: 575px) {
    /* Align dialog to top of screen so keyboard reveals it from below */
    #changeGoalModal .modal-dialog {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: unset !important;
        align-items: flex-start !important;
    }

    #changeGoalModal .modal-content {
        border-radius: 0 0 20px 20px !important;
        max-height: 85vh;
        overflow: hidden;
    }

    #changeGoalModal .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Let modal body grow to show the dropdown list */
        max-height: 60vh;
    }

    /* On mobile: dropdown opens DOWNWARD but the modal body scrolls */
    #changeGoalModal .searchable-dropdown-menu {
        /* Keep it absolute but constrain height to scroll within modal body */
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 12px !important;
        margin-top: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    }

    #changeGoalModal .searchable-dropdown-options {
        /* Larger height on mobile so more options are visible without keyboard covering them */
        max-height: 180px !important;
    }

    /* Spacer pushes content so modal footer doesn't cover the list */
    .goal-modal-spacer {
        height: 1px;
    }

    /* Prevent Bootstrap from vertically centering on mobile */
    #changeGoalModal {
        align-items: flex-start !important;
    }

    /* Ensure the modal backdrop allows smooth interaction */
    #changeGoalModal .modal-header {
        border-radius: 0 !important;
        padding-top: 16px;
    }
}

/* For larger mobiles (>575 and <768), keep the dropdown absolute but larger */
@media (min-width: 576px) and (max-width: 767px) {
    .change-goal-dialog {
        margin: 1rem auto;
    }

    #changeGoalModal .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #changeGoalModal .searchable-dropdown-options {
        max-height: 200px;
    }

}

/* =============================================
   FLOATING BUTTONS (WhatsApp & Telegram)
   ============================================= */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-float i {
    margin-top: 2px;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.telegram-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 100px;
    right: 30px;
    background-color: #0088cc;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-blue 2s infinite;
}

.telegram-float:hover {
    background-color: #007ab8;
    transform: scale(1.1);
    color: #fff;
}

.telegram-float i {
    margin-top: 2px;
    margin-right: 2px;
}

@keyframes pulse-blue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 136, 204, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    .telegram-float {
        width: 50px;
        height: 50px;
        bottom: 85px;
        right: 20px;
        font-size: 28px;
    }
}


