/* ============================================
   EXAMFORGE - Global Styles & Theme System
   ============================================ */

/* ---------- 1. FONT FACE DECLARATIONS ---------- */
/* ---------- MATERIAL ICONS (Local) ---------- */
@font-face {
    font-family: 'Material Icons Round';
    src: url('../assets/fonts/MaterialIcons/MaterialIconsRound-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}


.material-icons-round {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 2rem;    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- 2. CSS VARIABLES - THEME SYSTEM ---------- */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #030303;
    --bg-secondary: #0f0f0f;
    --bg-surface: #1a1a1a;
    --bg-surface-light: #5c5b5b6c;
    --bg-elevated: #212121;
    --bg-hover: #272727;
    --bg-active: #3d3d3d;

    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-tertiary: #717171;
    --text-disabled: #4d4d4d;

    --border-color: #333333;
    --divider-color: #272727;

    --accent-color: #f44336;
    /* Material Red 500 */
    --accent-hover: #e53935;
    /* Material Red 600 */
    --accent-active: #c62828;
    /* Material Red 800 */
    --accent-light: #ffebee;
    /* Material Red 50 */

    --focus-ring: rgba(244, 67, 54, 0.4);
    --scrollbar-thumb: #4d4d4d;
    --scrollbar-track: transparent;

    --overlay-color: rgba(0, 0, 0, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.5);

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Layout Dimensions */
    --top-bar-height: 64px;
    --sidebar-width: 240px;
    --bottom-nav-height: 3.0rem;

    color-scheme: dark;
}

/* Light Theme */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f9f9f9;
        --bg-surface: #ffffff;
        --bg-surface-light: #ffffff;
        --bg-elevated: #f1f1f1;
        --bg-hover: #e5e5e5;
        --bg-active: #d0d0d0;

        --text-primary: #030303;
        --text-secondary: #606060;
        --text-tertiary: #909090;
        --text-disabled: #b0b0b0;

        --border-color: #c3c3c3;
        --divider-color: #c3c3c3;

        --accent-color: #d32f2f;
        /* Material Red 700 */
        --accent-hover: #b71c1c;
        /* Material Red 800 */
        --accent-active: #8b0000;
        /* Material Red 900 */
        --accent-light: #ffebee;
        /* Material Red 50 */

        --focus-ring: rgba(211, 47, 47, 0.3);
        --scrollbar-thumb: #b0b0b0;
        --scrollbar-track: transparent;

        --overlay-color: rgba(0, 0, 0, 0.4);
        --shadow-color: rgba(0, 0, 0, 0.15);

        color-scheme: light;
    }
}

/* Manual theme override (add this class to <html> for dark theme) */
html[data-theme="dark"] {
    --bg-primary: #030303;
    --bg-secondary: #0f0f0f;
    --bg-surface: #1a1a1a;
    --bg-surface-light: #5c5b5b6c;
    --bg-elevated: #212121;
    --bg-hover: #272727;
    --bg-active: #3d3d3d;

    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-tertiary: #717171;
    --text-disabled: #4d4d4d;

    --border-color: #333333;
    --divider-color: #272727;

    --accent-color: #f44336;
    --accent-hover: #e53935;
    --accent-active: #c62828;
    --accent-light: #ffebee;

    --focus-ring: rgba(244, 67, 54, 0.4);
    --scrollbar-thumb: #4d4d4d;

    --overlay-color: rgba(0, 0, 0, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.5);

    color-scheme: dark;
}

/* Manual theme override for light theme */
html[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-surface: #ffffff;
    --bg-surface-light: #ffffff;
    --bg-elevated: #f1f1f1;
    --bg-hover: #e5e5e5;
    --bg-active: #d0d0d0;

    --text-primary: #030303;
    --text-secondary: #606060;
    --text-tertiary: #909090;
    --text-disabled: #b0b0b0;

    --border-color: #e0e0e0;
    --divider-color: #eeeeee;

    --accent-color: #d32f2f;
    --accent-hover: #b71c1c;
    --accent-active: #8b0000;
    --accent-light: #ffebee;

    --focus-ring: rgba(211, 47, 47, 0.3);
    --scrollbar-thumb: #b0b0b0;

    --overlay-color: rgba(0, 0, 0, 0.4);
    --shadow-color: rgba(0, 0, 0, 0.15);

    color-scheme: light;
}

/* ---------- 3. CSS RESET & BASE STYLES ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    font-size: 1rem;
    /* Base font size for scaling */
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.375rem;    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow: hidden;
    width: 100%;
    height: 100vh;
    min-height: 100vh;

    /* App conventions */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;

    transition: background-color var(--transition-base), color var(--transition-base);
}

#app {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ---------- 4. TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    -webkit-user-drag: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

/* ---------- 5. SCROLLBAR STYLING ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ---------- 6. INTERACTIVE ELEMENTS ---------- */
button,
input,
select,
textarea {
    font-family: 'Poppins', sans-serif;
    font-size: inherit;
    color: var(--text-primary);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-primary);
    -webkit-user-drag: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Remove default number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ---------- 7. UTILITY CLASSES ---------- */
/* Text colors */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.text-accent {
    color: var(--accent-color);
}

/* Background colors */
.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-surface {
    background-color: var(--bg-surface);
}

.bg-elevated {
    background-color: var(--bg-elevated);
}

/* Hover states */
.hoverable {
    transition: background-color var(--transition-fast);
}

.hoverable:hover {
    background-color: var(--bg-hover);
}

.hoverable:active {
    background-color: var(--bg-active);
}

/* Focus ring */
.focus-ring:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

/* Disabled state */
.disabled,
:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---------- 8. SAFE AREA UTILITIES ---------- */
.safe-top {
    padding-top: var(--safe-top);
}

.safe-bottom {
    padding-bottom: var(--safe-bottom);
}

.safe-left {
    padding-left: var(--safe-left);
}

.safe-right {
    padding-right: var(--safe-right);
}

/* ---------- 9. ANIMATIONS ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Animation utility classes */
.fade-in {
    animation: fadeIn var(--transition-base);
}

.fade-out {
    animation: fadeOut var(--transition-base);
}

.slide-up {
    animation: slideUp var(--transition-base);
}

.slide-down {
    animation: slideDown var(--transition-base);
}

.slide-in-left {
    animation: slideInLeft var(--transition-base);
}

.slide-in-right {
    animation: slideInRight var(--transition-base);
}

.pulse {
    animation: pulse var(--transition-slow);
}

/* ---------- 10. ACCESSIBILITY ---------- */
/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- TOP BAR ---------- */
.top-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: var(--safe-top) 24px 0 24px;
    background-color: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: calc(var(--top-bar-height) + var(--safe-top));
    width: 100%;
    flex-shrink: 0;
    z-index: 100;
    position: fixed;
    transition: background-color var(--transition-base),
        backdrop-filter var(--transition-base),
        -webkit-backdrop-filter var(--transition-base),
        border-bottom-color var(--transition-base),
        transform var(--transition-base);
    border-bottom: 1px solid transparent;
}

/* Semi-transparent background when scrolled */
.top-bar.scrolled {
    border-bottom-color: var(--divider-color);
}

/* Light theme semi-transparent background */
@media (prefers-color-scheme: light) {
    .top-bar.scrolled {
        background-color: rgba(255, 255, 255, 0.8);
    }
    .top-bar {
        background-color: rgba(255, 255, 255, 0.8);
    }
}


.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
    cursor: pointer;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .2rem;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-primary);
}

.search-container {
    flex: 1;
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    padding: 8px 16px;
    width: 100%;
    transition: all var(--transition-fast);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 1.75rem;    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    min-width: 0;
}

.search-input:focus {
    border: none;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background-color: var(--accent-color);
    border-radius: .4rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: .4rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    background: transparent;
    border: none;
    color: var(--text-primary);
}

#topBarProfileBtn {
    color: #ffffff!important;
}

.icon-btn:hover {
    background-color: var(--bg-hover);
}

.top-bar-actions .icon-btn:hover {
    background-color: transparent;
}

.icon-btn .material-icons-round {
    font-size: 2.5rem;}

/* ---------- MAIN CONTENT AREA ---------- */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* ---------- SIDEBAR (Desktop) ---------- */
.sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    background-color: var(--bg-primary);
    padding: calc(var(--top-bar-height) + var(--safe-top) + 12px) 0;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid var(--divider-color);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    border-radius: .6rem;
    margin: .4rem .5rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    width: calc(100% - 1rem);
    text-align: left;
    position: relative;
}

.nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 500;
}

.nav-item .material-icons-round {
    font-size: 2rem;    flex-shrink: 0;
}

.nav-label {
    font-size: 1.15rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- TAB CONTAINER ---------- */
.tab-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}


.tab-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: calc(24px + var(--top-bar-height) + var(--safe-top)) 24px;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-color: var(--bg-primary);
    will-change: transform, opacity;
}

.tab-section.active {
    opacity: 1;
    visibility: visible;
}

.tab-section h1 {
    font-size: 1.5rem;
    margin-bottom: .3rem;
}

.tab-section p {
    color: var(--text-secondary);
}

/* ---------- BOTTOM NAVIGATION (Mobile) ---------- */
.bottom-nav {
    display: none;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--divider-color);
    height: calc(var(--bottom-nav-height) + var(--safe-bottom) + 1.8rem);
    flex-shrink: 0;
    padding-bottom: calc(var(--safe-bottom) + .9rem);
    padding-top: .9rem;
    z-index: 100;
}

.bottom-nav .nav-item {
    flex-direction: column;
    gap: 2px;
    padding: 4px .5px;
    font-size: 1rem;    position: relative;
    color: var(--text-tertiary);
    font-weight: 400;
    margin: .4rem .05rem;
}

.bottom-nav .nav-item:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.bottom-nav .nav-item.active::before {
    display: none;
}

.bottom-nav .nav-item .material-icons-round {
    font-size: 1.1rem;    font-weight: 300;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.bottom-nav .nav-item .nav-label {
    font-size: .85rem;    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.bottom-nav .nav-item.active {
    background-color: transparent;
}

.bottom-nav .nav-item.active .material-icons-round {
    color: var(--text-primary);
    font-weight: 400;
}

.bottom-nav .nav-item.active .nav-label {
    color: var(--text-primary);
    font-weight: 500;
}

.bottom-nav .nav-item.active .material-icons-round {
    color: var(--text-primary);
}

/* ---------- DAILY DOSE CARD ---------- */
.daily-dose-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg,
            rgba(196, 198, 203, 0.15) 0%,
            rgba(200, 200, 205, 0.05) 50%,
            rgba(139, 139, 139, 0.189) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
}

/* Subtle glow effect */
.daily-dose-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 198, 203, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Icon container */
/* Icon - glowing bulb without container */
.daily-dose-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    min-width: 80px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
}

.daily-dose-icon .material-icons-round {
    font-size: 8rem;    color: #FFD54F;
    /* Warm yellow */
    filter: drop-shadow(0 0 24px rgba(255, 213, 79, 0.6)) drop-shadow(0 0 28px rgba(255, 213, 79, 0.4)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: filter var(--transition-base);
}

/* Stronger glow on card hover */
.daily-dose-card:hover .daily-dose-icon .material-icons-round {
    filter: drop-shadow(0 0 32px rgba(255, 213, 79, 0.8)) drop-shadow(0 0 64px rgba(255, 213, 79, 0.5)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* Content section */
.daily-dose-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.daily-dose-label {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    text-transform: uppercase;
}

@media (min-width: 710px) {
    .daily-dose-label {
    font-size: 2rem;
}

.daily-dose-title {
    font-size: 1.85rem;
    font-weight: 600;
}

.daily-dose-date {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    font-weight: 400;
}
}

.daily-dose-title {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.3;
}

.daily-dose-date {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Call to action button */
.daily-dose-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: .3rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    width: fit-content;
    transition: all var(--transition-fast);
}

.daily-dose-btn .material-icons-round {
    font-size: 1.625rem;}

/* Mobile responsive */
@media (max-width: 710px) {
    .daily-dose-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .daily-dose-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        border-radius: 14px;
    }

    .daily-dose-icon .material-icons-round {
        font-size: 2.25rem;    }

    .daily-dose-title {
        font-size: 1.3rem;
    }

    .daily-dose-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ---------- DAILY DOSE FULLSCREEN OVERLAY ---------- */
.daily-dose-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--bg-primary);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    visibility: hidden;
    will-change: transform;
}

.daily-dose-overlay.active {
    transform: translateY(0);
    visibility: visible;
}

/* Ambient background with red glow */
.daily-dose-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(244, 67, 54, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(244, 67, 54, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Content wrapper */
.daily-dose-overlay-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--bg-primary) 40%,
            var(--bg-primary) 100%);
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Drag handle */
.drag-handle {
    width: 40px;
    height: 4px;
    background: var(--text-tertiary);
    border-radius: 2px;
    margin: 12px auto 8px;
    flex-shrink: 0;
    cursor: grab;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    z-index: 2;
}

.drag-handle:active {
    cursor: grabbing;
    opacity: 1;
}

/* Overlay top bar */
.overlay-top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.overlay-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.overlay-back-btn:hover {
    background-color: var(--bg-hover);
}

.overlay-back-btn:active {
    background-color: var(--bg-active);
}

.overlay-back-btn .material-icons-round {
    font-size: 2rem;    color: var(--text-primary);
    pointer-events: none;
}

.overlay-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Article content */
.daily-dose-article {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    margin: 0 auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.article-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 32px;
}

.article-body {
    color: var(--text-primary);
}

.article-body p {
    font-size: 1.6rem;
    line-height: 1.8;
    letter-spacing: .03rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.article-quote {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin-top: 32px;
    margin-bottom: 32px;
}

/* Mobile responsive */
@media (max-width: 710px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-body p {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .daily-dose-article {
        padding: 16px 20px;
    }

    .overlay-top-bar {
        padding: 8px 12px;
    }
}

/* ---------- QUIZZES FOR YOU SECTION ---------- */
.quizzes-section {
    margin-top: 32px;
    width: 100%;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    width: 100%;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.section-nav-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.section-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    pointer-events: auto;
}

.section-arrow-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.section-arrow-btn:active {
    background-color: var(--bg-active);
}

.section-arrow-btn .material-icons-round {
    font-size: 2rem;    pointer-events: none;
}

/* Horizontal scroll container with 3 rows */
.quizzes-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    grid-auto-columns: 280px;
    gap: 8px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 16px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.quizzes-scroll::-webkit-scrollbar {
    display: none;
}

/* Individual quiz card - NO BACKGROUND, NO BORDER */
.quiz-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background-color var(--transition-fast);
    position: relative;
    border-radius: 8px;
}

.quiz-card:hover {
    background: var(--bg-surface-light);
}

.quiz-card:active {
    background: var(--bg-hover);
}

/* Quiz icon */
.quiz-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    flex-shrink: 0;
}

.quiz-card-icon .material-icons-round {
    font-size: 2.125rem;    color: #ffffff;
}

/* Quiz info */
.quiz-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quiz-tile-subject {
    font-size: .8rem;
}

.quiz-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.quiz-card-subject {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quiz-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.quiz-card-meta .meta-divider {
    width: 3px;
    height: 3px;
    background: var(--text-tertiary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* More button */
.quiz-card-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.quiz-card-more:hover {
    background-color: var(--bg-active);
    color: var(--text-primary);
}

.quiz-card-more .material-icons-round {
    font-size: 1.75rem;    pointer-events: none;
}

/* Mobile - narrower cards */
@media (max-width: 710px) {
    .quizzes-scroll {
        grid-auto-columns: 80vw;
        gap: 8px 12px;
    }

    .quiz-card {
        gap: 8px;
        padding: 6px 2px;
    }

    .quiz-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 6px;
    }

    .quiz-card-icon .material-icons-round {
        font-size: 1.875rem;    }

    .quiz-card-title {
        font-size: 1.05rem;
    }

    .quiz-card-subject {
        font-size: .9rem;
    }

    .quiz-card-meta {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* Tablet */
@media (min-width: 711px) and (max-width: 1024px) {
    .quizzes-scroll {
        grid-auto-columns: 260px;
    }
}

/* ---------- MATERIALS FOR YOU SECTION ---------- */
.materials-section {
    margin-top: 32px;
    width: 100%;
    overflow: hidden;
}

.materials-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 16px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.materials-scroll::-webkit-scrollbar {
    display: none;
}

/* Individual material card - NO BACKGROUND, NO BORDER */
.material-card {
    display: flex;
    flex-direction: column;
    width: 240px;
    min-width: 240px;
    background: transparent;
    border: none;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform var(--transition-fast);
    position: relative;
    border-radius: 12px;
    padding: 4px;
}

.material-card:hover {
    transform: translateY(-2px);
}

.material-card:active {
    transform: scale(0.97);
}

/* Material icon container - square */
.material-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.8 / 1;
    border-radius: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}
/* Thumbnail mode — image fills the container, icon hidden */
.material-card-icon.has-thumbnail {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.material-card-icon.has-thumbnail .material-icons-round {
    display: none;
}

.material-card-icon .material-icons-round {
    font-size: 5rem;    color: #ffffff;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Material info */
.material-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 4px;
}

.material-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.material-card-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.material-card-subject {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    margin-top: 2px;
}

.material-card-meta .meta-divider {
    width: 3px;
    height: 3px;
    background: var(--text-tertiary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Mobile - show one card with peek of next */
@media (max-width: 600px) {
    .material-card {
        width: calc(80vw - 40px);
        min-width: calc(80vw - 40px);
    }

    .materials-scroll {
        gap: 12px;
        padding-right: 20px;
        margin-right: -16px;
    }

    .material-card-icon .material-icons-round {
        font-size: 4.5rem;    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
    .material-card {
        width: 220px;
        min-width: 220px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .material-card {
        width: 260px;
        min-width: 260px;
    }

    .material-card-icon .material-icons-round {
        font-size: 5.5rem;    }
}

/* ---------- TODAY'S QUIZZES SECTION ---------- */
.daily-quizzes-section {
    margin-top: 32px;
    width: 100%;
}

.daily-quizzes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* See All button */
.see-all-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.see-all-btn:hover {
    background-color: var(--bg-hover);
}

.see-all-btn .material-icons-round {
    font-size: 1.625rem;    pointer-events: none;
}

.see-all-text {
    pointer-events: none;
}

/* Daily quiz card - same style as quizzes for you */
.daily-quiz-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--divider-color);
    padding: 14px 4px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    position: relative;
}

.daily-quiz-card:last-child {
    border-bottom: none;
}

.daily-quiz-card:hover {
    background: var(--bg-surface-light);
}

.daily-quiz-card:active {
    background: var(--bg-hover);
}

/* Quiz icon */
.daily-quiz-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: .4rem;
    flex-shrink: 0;
}

.daily-quiz-icon .material-icons-round {
    font-size: 2.25rem;    color: #ffffff;
}

/* Quiz info */
.daily-quiz-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.daily-quiz-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.daily-quiz-subject {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.daily-quiz-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.daily-quiz-meta .meta-divider {
    width: 3px;
    height: 3px;
    background: var(--text-tertiary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* More button */
.daily-quiz-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.daily-quiz-more:hover {
    background-color: var(--bg-active);
    color: var(--text-primary);
}

.daily-quiz-more .material-icons-round {
    font-size: 1.875rem;    pointer-events: none;
}

/* Mobile */
@media (max-width: 710px) {
    .daily-quiz-card {
        gap: 12px;
        padding: 12px 2px;
    }

    .daily-quiz-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .daily-quiz-icon .material-icons-round {
        font-size: 2rem;    }

    .daily-quiz-title {
        font-size: 1.05rem;
    }

    .daily-quiz-subject {
        font-size: 0.9rem;
    }

    .daily-quiz-meta {
        font-size: 0.85rem;
    }
}

/* ---------- TOOLTIP ---------- */
.card-tooltip {
    position: fixed;
    z-index: 10000;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

/* ---------- QUICK ACTIONS SECTION ---------- */
.quick-actions-section {
    margin-top: 32px;
    width: 100%;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

/* Individual quick action button */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 12px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.quick-action-btn:hover {
    background: var(--bg-surface-light);
    transform: translateY(-2px);
}

.quick-action-btn:active {
    transform: scale(0.96);
}

/* Icon container */
.quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: .4rem;
    background: var(--action-color);
    flex-shrink: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-action-btn:hover .quick-action-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.quick-action-icon .material-icons-round {
    font-size: 2.5rem;    color: #ffffff;
}

/* Label */
.quick-action-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

/* Arrow indicator */
.quick-action-arrow {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.5rem;    color: var(--text-tertiary);
    opacity: 0;
    transition: all var(--transition-fast);
}

.quick-action-btn:hover .quick-action-arrow {
    opacity: 1;
    color: var(--action-color);
    transform: translateX(2px);
}

/* Mobile - vertical flexbox */
@media (max-width: 710px) {
    .quick-actions-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .quick-action-btn {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 14px 4px;
        border-bottom: 1px solid var(--divider-color);
        border-radius: 0;
    }

    .quick-action-btn:last-child {
        border-bottom: none;
    }

    .quick-action-btn:hover {
        background: var(--bg-surface-light);
        transform: none;
    }

    .quick-action-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .quick-action-icon .material-icons-round {
        font-size: 2rem;    }

    .quick-action-label {
        font-size: 1.1rem;
        text-align: left;
        flex: 1;
    }

    .quick-action-arrow {
        opacity: 1;
        position: static;
        color: var(--text-tertiary);
    }
}

/* Tablet - 2 columns */
@media (min-width: 711px) and (max-width: 1024px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- RESPONSIVE DESIGN ---------- */
/* Mobile: Hide sidebar, show bottom nav */
@media (max-width: 710px) {
    :root {
        --top-bar-height: 3rem;
    }

    .sidebar {
        display: none;
    }

    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .top-bar {
        padding: var(--safe-top) .5rem 0 .5rem;
        gap: 12px;
        align-items: flex-end;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .search-container {
        max-width: none;
    }

    /* .top-bar-actions .icon-btn {
        display: none;
    } */

    .tab-section {
        padding: .5rem;
        padding-top: calc(var(--top-bar-height) + var(--safe-top) + 8px);
    }
}

/* Tablet: Show sidebar but narrower */
@media (min-width: 711px) and (max-width: 1024px) {
    :root {
        --sidebar-width: 72px;
    }

    .sidebar {
        border-right: 0;
        background-color: transparent;
    }

    .sidebar .nav-item {
        flex-direction: column;
        gap: 4px;
        padding: 10px 8px;
        justify-content: center;
        text-align: center;
    }

    .sidebar .nav-label {
        font-size: .6rem;    }

    .sidebar .nav-item.active::before {
        display: none;
    }
}

@media (max-width: 800px) {
    .search-box {
        display: none;
    }
}

/* ---------- MOBILE OPTIMIZATIONS ---------- */
@media (max-width: 710px) {
    body {
        font-size: 1.1rem;    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 1.1rem;
    }
}

.search-container {
    flex: 1;
    max-width: 430px;
    margin: 0 auto;
    justify-content: center;
    position: relative;
}

.search-box {
    align-items: center;
    gap: 12px;
    background-color: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    padding: 8px 16px;
    width: 100%;
    transition: all var(--transition-fast);
    position: relative;
}

/* Keep search icon and input inline */
.search-icon {
    color: var(--text-secondary);
    font-size: 1.75rem;    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    min-width: 0;
}

.search-input:focus {
    border: none;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

/* When search box is focused, expand border radius */
.search-box:focus-within {
    border-radius: .5rem .5rem 0 0;
}

/* Suggestion box - positioned absolutely below search box */
.desktop-search-suggestions {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    width: calc(100% + 2px);
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 .5rem .5rem;
    display: none;
    z-index: 999;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.desktop-search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.desktop-search-suggestions::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.desktop-search-suggestion-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.desktop-search-suggestion-tile:hover {
    background: var(--bg-hover);
}

.desktop-search-suggestion-tile:active {
    background: var(--bg-active);
}

.suggestion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 6px;
    flex-shrink: 0;
}

.suggestion-icon .material-icons-round {
    font-size: 1.625rem;    color: #ffffff;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.suggestion-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-subtitle {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desktop-search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    color: var(--text-tertiary);
}

.desktop-search-no-results .material-icons-round {
    font-size: 2.5rem;    color: var(--text-disabled);
}

.desktop-search-no-results p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
@media (max-width: 710px) {
    /* Hide scrollbars completely - they still scroll */
    * {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    *::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}
/* ---------- SPLASH SCREEN ---------- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483649;
    background: var(--bg-primary);
    display: flex;
    visibility: visible;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-quote {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    max-width: 600px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    animation: splashFadeIn 0.6s ease;
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 710px) {
    .splash-quote {
        font-size: 1.7rem;
    }
}
.window-controls {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 0 0 12px;
}

.window-controls.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.window-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    color: #ffffff;
    transition: background-color var(--transition-fast);
}

.window-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.window-control-btn.close-btn:hover {
    background: #f44336;
}

.window-control-btn .material-icons-round {
    font-size: 1.75rem;    pointer-events: none;
}

.quiz-card-title,
.daily-quiz-title {
    width: 100%;               /* or a specific max-width */
    max-width: 100%;
    overflow: hidden;          /* hides the overflowing duplicate text */
    white-space: nowrap;       /* prevents wrapping */
    display: block;            /* ensures block-level behaviour */
}

/* ============================================
   TOP BAR PROFILE BUTTON — NOTIFICATION BADGE
   ============================================ */

.top-bar-actions .icon-btn {
    position: relative;
}

.icon-btn-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent-color);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 0 2px var(--bg-primary);
    pointer-events: none;
    z-index: 1;
}

.suggestion-icon.has-thumbnail {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.suggestion-icon.has-thumbnail .material-icons-round {
    display: none;
}