.mobile-bottom-nav,
.mobile-theme-btn {
  display: none !important;
}

:root {
    /* Primary Colors */
    --primary-color: #10B981;
    --primary-dark: #047857;
    --primary-light: #A7F3D0;
    --accent-color: #34D399;
    
    /* Neutral Colors */
    --text-dark: #1F2937;
    --text-medium: #6B7280;
    --text-light: #F9FAFB;
    
    /* Background Colors */
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-dark: #111827;
    --bg-gradient: linear-gradient(135deg, #10B981 0%, #047857 100%);
    --bg-accent-gradient: linear-gradient(135deg, #34D399 0%, #059669 100%);
    
    /* Border Colors */
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    
    /* Other Colors */
    --error: #EF4444;
    --warning: #F59E0B;
    --success: #10B981;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px rgba(74, 223, 184, 0.5);
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms;
    --transition: 200ms;
    --transition-slow: 300ms;
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --color-main-bg: #1F2937;
    --color-sidebar-bg: #111827; /* Dark background for sidebar/cards */
    --color-text-primary: #F9FAFB; /* White text for dark backgrounds */
    --color-text-secondary: #D1D5DB; /* Light gray text for dark backgrounds */
    --color-border: #374151;
    --color-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    
    --primary-color: #4ADFB8;
}
[data-theme="dark"] ul a {
    /* * Targets all anchor tags inside an unordered list when the dark theme is active.
     * This sets both the text and the icons (which inherit the color) to white.
     */
    color: var(--color-text-primary);
}

[data-theme="dark"] {
    /* Theme Variables - Defined by User */
    --color-main-bg: #1F2937;
    --color-sidebar-bg: #111827;
    --color-text-primary: #F9FAFB;   /* Fully White */
    --color-text-secondary: #D1D5DB;
    --color-border: #374151;
    --color-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    --primary-color: #4ADFB8;
    --primary-light: #2c5a4d;        
    
    /* CRITICAL OVERRIDES: Map light theme variables (from main.css) to dark values */
    /* This makes all your card components, sections, and inputs dark mode aware */
    --bg-light: var(--color-main-bg);    /* Used by recommendation-card, etc. */
    --bg-white: var(--color-main-bg);    /* Used by stat-card, dashboard-section, user-profile-info, etc. */
    --border-light: var(--color-border); /* Used by activity list, recommendation card border */
    
    --text-dark: var(--color-text-primary);   /* Used by headers, stat values, user name */
    --text-medium: var(--color-text-secondary); /* Used by stat labels, user role */
    --border-medium: var(--color-border); /* Used by inputs, logout button border */
    
    /* FIX FOR PROFILE SHADOW AND OTHER CARDS: */
    /* Map the light-theme shadows to the defined dark-theme shadow */
    --shadow-sm: var(--color-card-shadow); 
    --shadow-md: var(--color-card-shadow); 
}

/* --- Dark Mode Button Overrides for Low Visibility Fix --- */

/* Fix general button hover, assuming the social buttons are secondary-style.
   We use the main background for the hover/active state with a slight border. */
[data-theme="dark"] .btn:hover {
    background-color: var(--color-sidebar-bg) !important; /* A very dark grey */
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Ensure secondary buttons (often white in light mode) stay dark on hover in dark mode */
[data-theme="dark"] .secondary-btn {
    background-color: var(--color-sidebar-bg);
    color: var(--color-text-primary); /* White text */
    border: 1px solid var(--color-border);
}

[data-theme="dark"] .secondary-btn:hover {
    /* Use the dark primary light color for a subtle hover glow/background */
    background-color: var(--primary-light) !important; 
    color: var(--primary-color) !important; /* Bright primary text/icon color */
    border-color: var(--primary-color) !important;
    transform: translateY(-2px); /* Keep the transform effect */
    box-shadow: var(--shadow-glow); /* Add a glow for pop */
}

/* If your social buttons are custom-styled and not using secondary-btn,
   you might need a specific style for them, like this: */
[data-theme="dark"] .google-btn:hover {
    background-color: var(--primary-light) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* --- CRITICAL FIX: Ensure Input Text is White in Dark Mode --- */

[data-theme="dark"] .form-group input,
[data-theme="dark"] .dropdown-select select,
[data-theme="dark"] .search-bar input {
    /* Set the text color to white for visibility */
    color: var(--color-text-primary) !important; 
    
    /* Also, ensure the background is dark to match the form/card */
    background-color: var(--color-sidebar-bg) !important;
    
    /* Ensure the border is the dark border color */
    border-color: var(--color-border) !important;
}

/* --- CRITICAL FIX: Ensure Headings, Sidebar Text, and Card Titles are Light in Dark Mode --- */

[data-theme="dark"] {
    /* Existing CRITICAL OVERRIDES: Ensure primary headings use the correct light variable */
    --text-dark: var(--color-text-primary);   /* Headings, stat values, user name */
    
    /* Ensure medium-dark text (like subtitles/description) also uses a light color */
    --text-medium: var(--color-text-secondary); /* Subtitles, stat labels, user role */
}

/* Explicitly set color for common structural elements */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .homepage-title {
    /* Force all main headings to use the primary light text color */
    color: var(--color-text-primary) !important;
}

/* Explicitly target the sidebar navigation links, which are a common issue */
[data-theme="dark"] .main-nav a {
    color: var(--color-text-primary) !important; /* Set to white text */
}

/* Explicitly target the card content/titles */
[data-theme="dark"] .card-content h3, 
[data-theme="dark"] .quiz-content h3 {
    color: var(--color-text-primary) !important; /* White title text */
}

/* Explicitly target the card description text */
[data-theme="dark"] .card-content p, 
[data-theme="dark"] .quiz-content p {
    color: var(--color-text-secondary) !important; /* Light gray description text */
}

/* Fix for the user profile details which uses --text-dark */
[data-theme="dark"] .user-name {
    color: var(--color-text-primary) !important;
}

/* Fix for the logout button text which uses --text-dark */
[data-theme="dark"] .logout-btn {
    color: var(--color-text-primary) !important;
}

/* Target the theme toggle button specifically */
[data-theme="dark"] .theme-toggle-btn {
    /* Use the adjusted light primary color for a slightly brighter background */
    background-color: var(--primary-light) !important; 
    
    /* Use the primary color for the text and icon */
    color: var(--primary-color) !important;
    
    /* Use the primary color for the border to make it pop */
    border: 1px solid var(--primary-color) !important;
}

/* Optional: Add a subtle hover effect */
[data-theme="dark"] .theme-toggle-btn:hover {
    filter: brightness(1.2); /* Slightly brightens the whole button on hover */
}

/* In main.css, add this after the main [data-theme="dark"] block */

/* FIX: Dark Mode Button Ripple (White Flash) */
[data-theme="dark"] .btn::after {
    /* Changes the radial gradient color from white (#fff) to a low-light primary shade 
       (using --primary-light, which is defined as #2c5a4d in your dark theme). */
    background-image: radial-gradient(circle, var(--primary-light) 10%, transparent 10.01%);
}

/* --- Dark Mode FIX: Category Cards --- */

[data-theme="dark"] .categories-section h2 {
    /* Fixes the "Explore Categories" header text color */
    color: var(--color-text-primary) !important;
}

[data-theme="dark"] .category-card {
    /* 1. Set the background to the dark sidebar/card color */
    background-color: var(--color-sidebar-bg) !important;
    
    /* 2. Update the shadow to the dark card shadow */
    box-shadow: var(--color-card-shadow);
}

[data-theme="dark"] .category-card h3 {
    /* 3. Ensure the main title is white */
    color: var(--color-text-primary) !important;
}

[data-theme="dark"] .category-card p {
    /* 4. Ensure the descriptive text is light gray */
    color: var(--color-text-secondary) !important;
}


/* --- Dark Mode FIX: Settings Form Elements (Label and Select Text) --- */

[data-theme="dark"] .form-group label {
    /* 1. Fix the label text color (e.g., "Interface Language") */
    color: var(--color-text-primary) !important;
}

[data-theme="dark"] select {
    /* 2. Fix the selected option text and dropdown background */
    color: var(--color-text-primary) !important;
    background-color: var(--color-sidebar-bg) !important;
    border-color: var(--color-border) !important;
}

[data-theme="dark"] .help-text {
    /* 3. Fix the helper text below the form group */
    color: var(--color-text-secondary) !important;
}


.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* --- Dark Mode FIX: Subject/Difficulty Badges Text Visibility --- */
[data-theme="dark"] .subject-badge,
[data-theme="dark"] .difficulty-badge {
    /* This overrides the light-theme text color (var(--primary-dark))
       and sets it to the dark theme's primary light text color (white/light gray) */
    color: var(--color-text-primary) !important; 
}

/* --- Dark Mode FIX: World Chat Icon Color --- */
[data-theme="dark"] .world-header-content h1 i {
    /* Set the icon color to the vibrant primary color */
    color: var(--primary-color) !important; 
    
    /* Ensure the icon doesn't inherit the main text color, which might be white */
}

/* --- Final Dark Mode FIX: World Chat Icon (Forced Accent Color) --- */
[data-theme="dark"] .world-header-content h1 i {
    /* Forcing the icon to use the vibrant green hex code (#10B981) 
       This ensures it is a proper accent color and not pure white body text. */
    color: #10B981 !important; 
}
.category-icon {
    font-size: var(--text-4xl);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    height: 48px; /* For consistent alignment */
    display: flex;
    justify-content: center;
    align-items: center;
}



/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: auto; /* Prevent double scrollbars */
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text-primary); /* Use variable */
    background-color: var(--color-main-bg); /* Use variable */
    transition: background-color 0.3s, color 0.3s;
}

/* Theme Styles */
body.light-theme {
    color: var(--text-dark);
    background-color: var(--bg-light);
}

body.dark-theme {
    color: var(--text-light);
    background-color: var(--bg-dark);
}

.container {
    display: flex;
    height: 100vh; /* RESTORED */
    overflow: hidden; /* RESTORED */
}

.sidebar {
    width: 260px;
    background-color: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    position: fixed; /* Make sidebar fixed */
    top: 0;
    left: 0;
    height: 100vh; /* Full viewport height */
    overflow-y: auto; /* Add scroll if content is too tall */
    z-index: 100; /* Ensure sidebar appears above other content */

    background-color: var(--color-sidebar-bg); /* Use variable */
    border-right: 1px solid var(--color-border); /* Use variable */
    overflow: auto;
    
}
.main-content {
    flex: 1;
    padding: var(--space-8);
    overflow-y: auto; /* Enable scrolling for main content */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    margin-left: 260px; /* Match sidebar width to prevent overlap */
    height: 100vh; /* RESTORED */
    position: relative; 
    box-sizing: border-box; 
    max-width: calc(100% - 260px); /* RESTORED */
}


.modern-homepage {
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding: 40px 24px 60px 24px;
  background: var(--background);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.homepage-header {
  text-align: center;
  margin-bottom: 16px;
}
.homepage-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.homepage-subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.homepage-features {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
.feature-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 32px 28px;
  width: 240px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.feature-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.homepage-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}
.homepage-action {
  font-size: 1.1rem;
  padding: 16px 36px;
  border-radius: 32px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.homepage-action.primary-btn {
  background: var(--primary);
  color: #fff;
  border: none;
}
.homepage-action.secondary-btn {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.homepage-action:hover {
  filter: brightness(0.95);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.homepage-showcase {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.showcase-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  padding: 24px 18px 18px 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.showcase-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 16px;
}
.showcase-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.showcase-info p {
  color: var(--text-secondary);
  font-size: 1rem;
}
.showcase-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

@media (max-width: 900px) {
  .homepage-features {
    flex-direction: column;
    align-items: center;
  }
  .homepage-showcase {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .modern-homepage {
    padding: 18px 4px 32px 4px;
    border-radius: 12px;
  }
  .feature-card, .showcase-card {
    width: 95vw;
    min-width: unset;
    padding: 18px 8px;
  }
  .homepage-title {
    font-size: 2rem;
  }
}

/* Logo */
.logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: var(--space-8);
}

/* User Info */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-8);
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-bottom: var(--space-2);
}

.user-role {
    color: var(--text-medium);
    font-size: var(--text-sm);
}

/* Navigation */
.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: var(--space-2);
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--transition);
}

.main-nav a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.main-nav i {
    margin-right: var(--space-3);
    width: 20px;
    text-align: center;
}

.main-nav li.active a {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Button Styles - Update to remove underlines */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-xl);
    border: none;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underlines */
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Ripple effect for buttons */
.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.btn:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Style for link buttons to ensure no underlines */
a.btn,
button.btn,
.btn a {
    text-decoration: none;
}

.primary-btn {
    background: var(--bg-gradient);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(75, 108, 183, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(75, 108, 183, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
    box-shadow: 0 4px 10px rgba(24, 40, 72, 0.1);
}

.secondary-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(24, 40, 72, 0.15);
}

.secondary-btn i {
    margin-right: var(--space-2);
}

/* Authentication Section */
.auth-section {
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-light);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.auth-buttons .btn {
    width: 100%;
}

/* User Profile Section */
.user-profile-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.user-profile-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.user-profile-info:hover {
    background-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.user-profile-info .avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.user-role {
    font-size: var(--text-sm);
    color: var(--text-medium);
}

.logout-btn {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-medium);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.logout-btn:hover {
    background-color: var(--error);
    color: var(--text-light);
    border-color: var(--error);
}

.logout-btn i {
    font-size: var(--text-sm);
}

/* Headers */
header {
    margin-bottom: var(--space-8);
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-6);
}

h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

/* Sections */
.featured-section, 
.all-quizzes-section,
.settings-section {
    margin-bottom: var(--space-12);
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.card, .quiz-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover, .quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card img, .quiz-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content, .quiz-content {
    padding: var(--space-4);
}

.card-content p, .quiz-content p {
    color: var(--text-medium);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

/* Featured quizzes */
.featured-quizzes {
    grid-template-columns: repeat(3, 1fr);
}

/* Search Bar */
.search-bar {
    position: relative;
    margin-bottom: var(--space-8);
}

.search-bar input {
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-medium);
    font-size: var(--text-base);
    background-color: var(--bg-white);
}

.search-bar i {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

/* Tabs */
.category-tabs {
    display: flex;
    margin-bottom: var(--space-6);
    border-bottom: 2px solid var(--border-light);
}

.tab {
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: -2px;
} 

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Settings Form */
.settings-form {
    background-color: var(--bg-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: var(--space-3);
    border-radius: var(--radius);
    border: 1px solid var(--border-medium);
    font-size: var(--text-base);
}

/* Settings Options */
.settings-options {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.setting-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.setting-option:last-child {
    border-bottom: none;
}

.setting-info h3 {
    margin-bottom: var(--space-1);
}

.setting-info p {
    color: var(--text-medium);
    font-size: var(--text-sm);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-medium);
    transition: var(--transition);
    border-radius: 34px;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.toggle-switch input:checked + label {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + label:before {
    transform: translateX(30px);
}

/* Dropdown Select */
.dropdown-select {
    min-width: 150px;
}

.dropdown-select select {
    width: 100%;
    padding: var(--space-3);
    border-radius: var(--radius);
    border: 1px solid var(--border-medium);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: var(--text-base);
}

/* New Quiz Button */
.new-quiz-button {
    margin-top: var(--space-8);
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding-top: 50px;
        flex-direction: column;
        /* NEW: Remove min-height on mobile so it only takes content height */
        min-height: auto; 
        overflow: visible; 
    }
     
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: var(--space-4);
        position: sticky; 
        top: 0;
        height: auto;
        z-index: 100;
        overflow-y: visible;
    }
    
    .main-content {
        margin-left: 0 !important; /* CRITICAL FIX: Ensure no left margin on mobile */
        /* CRITICAL: Remove fixed height and width constraints for mobile */
        height: auto !important; /* CRITICAL FIX: Let content define height */
        max-width: 100% !important; /* CRITICAL FIX: Use full width */
        overflow-y: visible !important; 
        padding: var(--space-8); 

        /* * REMOVE THIS LINE: margin-top: 280px; * */
    }
    
    /* Remove the redundant main-content mobile rule */
    /* ...existing code... */
}

/* Hamburger button */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 1.3rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Overlay */
#sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Mobile Sidebar */
@media (max-width: 992px) {
  .hamburger-btn {
    display: block;
  }

  .sidebar {
    position: fixed !important; /* ensure it overlays main content */
    top: 0;
    left: -260px; /* hidden initially */
    width: 260px;
    height: 100vh;
    z-index: 1001;
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  .sidebar.open {
    left: 0;
  }

  #sidebar-overlay.active {
    display: block;
  }

  .main-content {
    margin-left: 0 !important; /* reset for mobile */
    padding-top: 60px; /* optional spacing if needed */
  }
}

@media (max-width: 576px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .setting-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toggle-switch, .dropdown-select {
        margin-top: var(--space-3);
    }
}
/* --- Global Dark Mode FIX: Text visibility for subject badges and other tags --- */
[data-theme="dark"] .subject-badge,
[data-theme="dark"] .difficulty-badge,
[data-theme="dark"] .badge {
    /* Forcing the text color to the vibrant primary color to ensure visibility 
       against the dark badge background. */
    color: #10B981 !important; 
}

/* --- CRITICAL FINAL FIX: Text visibility for all small badges/tags --- */

/* This targets the text color of ANY span or badge-like element within the quiz details 
   section when in dark mode, ensuring the text is visible. */
[data-theme="dark"] .quiz-details span,
[data-theme="dark"] .quiz-details a,
[data-theme="dark"] .quiz-info-container span,
[data-theme="dark"] .badge-like-element { /* Covers the specific badge class if known */
    /* Use the vibrant green hex code to ensure it's not pure white/black */
    color: #10B981 !important; 
}

/* --- ULTIMATE DARK MODE FIX: Badge Text Visibility across Quiz Cards --- */

/* This targets any small text element (like a badge or tag) 
   inside a quiz card when the dark theme is active, forcing the color to the vibrant accent. */
[data-theme="dark"] .quiz-card * span,
[data-theme="dark"] .quiz-card span {
    color: #10B981 !important;
}

/* ---------------------------
   MOBILE LAYOUT OVERRIDES
   --------------------------- */

/* Put this after existing CSS (end of file) */
@media (max-width: 992px) {

  /* hide desktop sidebar on mobile */
  .sidebar {
    display: none !important;
  }

  /* move hamburger to top-right */
  .hamburger-btn {
    display: block;
    position: fixed;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 2200;
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 6px 8px;
    font-size: 1.25rem;
    border-radius: 8px;
    box-shadow: none;
  }
  .hamburger-btn i { font-size: 1.25rem; }

  /* small-screen main content spacing */
  .main-content {
    margin-left: 0 !important;
    padding-top: 64px; /* ensure header area free */
    padding-bottom: 92px; /* room for bottom nav */
  }

  /* mobile top-right dropdown menu */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    right: 12px;
    width: 220px;
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 2100;
    transition: transform 180ms var(--transition-bounce), opacity 120ms;
  }
  .mobile-menu.open {
    display: block;
  }
  .mobile-menu .mobile-menu-item {
    margin-bottom: 6px;
  }
  .mobile-menu .theme-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .mobile-menu .theme-icon {
    margin-right: 8px;
  }

  /* mobile bottom nav */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
    padding: 6px 2px;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
  }
  .mobile-bottom-nav a.mobile-nav-link {
    text-align: center;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 12px;
    width: 64px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 4px;
  }
  .mobile-bottom-nav a.mobile-nav-link .icon {
    font-size: 18px;
    display: block;
  }
  .mobile-bottom-nav a.mobile-nav-link .nav-label {
    display: block;
    line-height: 1;
  }
  .mobile-bottom-nav a.mobile-nav-link.active,
  .mobile-bottom-nav a.mobile-nav-link:focus {
    color: var(--primary-color);
  }

  /* ensure forms & inputs look ok on dark-theme as well */
  body.dark-theme .mobile-menu {
    background: var(--color-sidebar-bg);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
  }
  body.dark-theme .mobile-bottom-nav {
    background: var(--color-sidebar-bg);
    border-top-color: var(--color-border);
  }

  /* make sure main content isn't hidden behind the bottom nav */
  main.main-content {
    /* already padded above, but ensure large screens get enough */
    padding-bottom: 96px;
  }
}

/* small tweaks for the theme toggle icon */
.theme-icon.fas.fa-sun,
.theme-icon.fas.fa-moon {
  font-size: 1rem;
}

/* ============================
   MOBILE THEME TOGGLE BUTTON
   ============================ */

@media (max-width: 992px) {

  .mobile-theme-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 2200;

    background: var(--bg-white);
    color: var(--primary-color);
    border: 1px solid var(--border-light);
    border-radius: 999px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, background 0.2s ease;
  }

  .mobile-theme-btn:active {
    transform: scale(0.92);
  }

  .mobile-theme-btn i {
    font-size: 1.1rem;
  }

  /* Dark mode styling */
  body.dark-theme .mobile-theme-btn {
    background: var(--color-sidebar-bg);
    color: #ffd966; /* soft sun color */
    border-color: var(--color-border);
  }
}

@media (max-width: 992px) {

  /* Show mobile-only UI */
  .mobile-bottom-nav {
    display: flex !important;
  }

  .mobile-theme-btn {
    display: flex !important;
  }

}
/* --- Global Scrollbar Hiding --- */

/* For Webkit (Chrome, Safari, Edge) - Targets all elements */
::-webkit-scrollbar {
    width: 0px;  /* Vertical scrollbar width */
    height: 0px; /* Horizontal scrollbar height */
}

/* For Firefox - Targets all elements */
* {
    /* Hide scrollbar by setting its width/color to none/transparent */
    scrollbar-width: none;  /* Firefox */
    scrollbar-color: transparent transparent; /* Firefox */
}


html, body {
  overflow-x: hidden;
}

.btn:active {
  transform: scale(0.98);
}

/* ---------------------------
   MOBILE TOP BAR & BRAND
   --------------------------- */
.mobile-top-bar {
  display: none; /* desktop: hidden */
  position: fixed;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 2300;
  align-items: center;
  justify-content: space-between;
  pointer-events: none; /* allow inner controls to keep their own pointer-events */
}

@media (max-width: 992px) {
  .mobile-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    /* ✅ SOLID BACKGROUND */
    background: var(--bg-white);
    
    /* Optional polish */
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    backdrop-filter: none;

    z-index: 2500;
  }

  /* Dark theme support */
  body.dark-theme .mobile-top-bar {
    background: var(--color-sidebar-bg);
    border-bottom: 1px solid var(--color-border);
  }
}

/* brand control */
.mobile-top-bar .mobile-brand {
  pointer-events: auto;
  font-weight: 700;
  color: var(--primary-color);
  background: transparent;
  padding: -10px 8px;
  
  border-radius: 8px;
  font-size: 1.125rem; /* slightly smaller on mobile */
  letter-spacing: -0.3px;
  display: inline-block;
}

/* ensure hamburger remains clickable on right */
.mobile-top-bar .hamburger-btn {
  pointer-events: auto;
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 1.25rem;
  padding: 6px;
}

/* MOBILE: show the top-brand and hide sidebar */
@media (max-width: 992px) {
  .mobile-top-bar {
    display: flex;
    pointer-events: auto;
    padding-right: 56px; /* room for hamburger and theme toggle at right */
  }

  /* hide sidebar (already in your file, but make sure) */
  .sidebar {
    display: none !important;
  }

  /* make sure both the mobile theme button and hamburger are visible */
  .mobile-theme-btn {
    display: flex !important;
    position: fixed;
    right: 12px;
    top: 12px;
    z-index: 2400;
  }

  /* move hamburger slightly left if both exist */
  .hamburger-btn {
    display: block;
    right: 56px; /* keep theme button at 12px, hamburger left of it */
    top: 12px;
    position: fixed;
    z-index: 2401;
  }
}

/* If you prefer the brand to appear *only* on very small phones, change 992px to 700px in the media query above */

.pending-badge {
  display: inline-block;
  margin: 4px 0;
  color: #ff4d4d;
  font-weight: 600;
}

/*
 * Theme-aware variables for the entire app.
 * The variables for the splash screen will use these.
 */

/* LIGHT THEME (Default) */
:root,
[data-theme='light'] {
    /* General colors */
    --bg-color: var(--bg-light); 
    --text-color: var(--text-dark); 
    
    /* Splash screen specific */
    /* Light border for the spinner when the background is light */
    --splash-border-color: rgba(0,0,0,0.15); 
}

/* DARK THEME */
[data-theme='dark'] {
    /* General colors */
    --bg-color: var(--bg-dark); 
    --text-color: var(--text-light); 
    
    /* Splash screen specific */
    /* Dark border for the spinner when the background is dark */
    --splash-border-color: rgba(255,255,255,0.15); 
}


/* Make the profile section look interactive */
.user-profile-section {
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border-radius: 8px; /* Optional: matches your UI */
    padding: 8px;       /* Optional: gives some breathing room */
}

.user-profile-section:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Light gray overlay on hover */
}

[data-theme='dark'] .user-profile-section:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle light overlay for dark mode */
}

.user-profile-section:active {
    transform: scale(0.98); /* Slight click effect */
}

/* ==========================================================================
   GLOBAL PROFILE POPUP STYLES (Moved from world.css for global access)
   ========================================================================== */

.profile-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.profile-popup.active {
    display: flex;
}

.profile-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65); /* Darker backdrop for focus */
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
}

.profile-popup-card {
    position: relative;
    background: var(--bg-white); /* Uses main.css var */
    color: var(--text-dark);     /* Uses main.css var */
    border-radius: 24px;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    padding: 24px;
    z-index: 10000;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.2s ease-out, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark mode overrides for the card */
[data-theme="dark"] .profile-popup-card {
    background: var(--color-sidebar-bg); /* Dark background */
    border: 1px solid var(--border-medium);
    color: var(--text-light);
}

.profile-popup.active .profile-popup-card {
    opacity: 1;
    transform: scale(1);
}

.profile-popup-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

[data-theme="dark"] .profile-popup-close {
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
}

.profile-popup-close:hover {
    background: var(--error);
    color: white;
}

/* Layout */
.profile-popup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.profile-popup .profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    padding: 3px;
    background: var(--bg-white);
}

.profile-popup .profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}
[data-theme="dark"] .profile-popup .profile-name {
    color: var(--text-light);
}

/* Stats Grid */
.profile-popup .profile-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    text-align: left;
}

.profile-popup .profile-meta > div {
    background: rgba(0,0,0,0.03);
    padding: 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .profile-popup .profile-meta > div {
    background: rgba(255,255,255,0.05);
}

.profile-popup .profile-meta strong {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.profile-popup .profile-meta span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Bio */
.profile-popup .profile-bio {
    width: 100%;
    font-style: italic;
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid var(--border-light);
}

/* Actions */
.profile-popup .profile-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.profile-popup .btn {
    flex: 1;
    justify-content: center;
}


/* ==========================================
   LOGOUT MODAL STYLING
   ========================================== */

/* The box containing the text */
#logout-modal .modal-content {
    background-color: #ffffff !important; /* Forces white background for black text visibility */
    border: 3px solid #00000049;           /* Solid black border */
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Title: "Log Out?" */
#logout-modal h3 {
    color: #000000 !important;           /* Fully black */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

/* Description: "Are you sure..." */
#logout-modal p {
    color: #000000 !important;           /* Fully black */
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 1;                          /* Ensures no transparency */
}

/* Container for buttons */
.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* "Cancel" Button */
#logout-modal .secondary-btn {
    background-color: #f0f0f0;
    color: #000000;
    border: 1px solid #00000036;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#logout-modal .secondary-btn:hover {
    background-color: #e0e0e0;
}

/* "Yes, Log Out" Button */
#logout-modal .primary-btn#confirm-logout-btn {
    background-color: #dc3545;           /* Professional red */
    color: #ffffff;
    border: 1px solid #800000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#logout-modal .primary-btn#confirm-logout-btn:hover {
    background-color: #a71d2a;
    transform: translateY(-2px);
}


/* =================================================== */
/* ABSOLUTE FIX: NAVBAR TRANSPARENCY & OVERLAP         */
/* =================================================== */
@media screen and (max-width: 768px) {
    /* 1. Force Header to be Solid and on Top */
    header.main-header, .top-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 65px !important;
        background: #ffffff !important; /* Pure white - no transparency */
        z-index: 9999999 !important;   /* Higher than everything */
        display: flex !important;
        align-items: center !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 2. Push all content down so it's not "under" the nav */
    body {
        padding-top: 65px !important;
        margin: 0 !important;
    }

    /* 3. Specifically fix the 'Back to Forum' and Post area */
    .post-view-container, 
    .back-link,
    main {
        margin-top: 0 !important;
        position: relative !important;
        z-index: 10 !important; /* Lower than header */
    }

    /* Dark theme support */
    body.dark-theme header.main-header,
    body.dark-theme .top-nav {
        background: #111827 !important; /* Solid Dark */
        border-bottom: 1px solid #374151 !important;
    }
}










/* --- BANNED CONTENT STYLING (Themed) --- */

/* Base (Light Mode) */
:root {
    --banned-bg: #FEF2F2;
    --banned-border: #EF4444;
    --banned-text: #991B1B;
    --banned-icon: #DC2626;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --banned-bg: #450a0a; /* Very dark red */
    --banned-border: #7f1d1d;
    --banned-text: #fca5a5; /* Light red text */
    --banned-icon: #ef4444;
}

/* Banned Card Style (Channels List) */
.channel-card-banned {
    border: 2px solid var(--banned-border) !important;
    background-color: var(--banned-bg) !important;
    opacity: 0.9;
}

.banned-badge {
    font-size: 0.7em;
    background: var(--banned-border);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

/* Banned Post Warning (Inside Channel) */
.banned-post-card {
    border: 2px solid var(--banned-border) !important;
    background: var(--banned-bg) !important; 
    opacity: 0.8;
}

.banned-header {
    background: var(--banned-border);
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 4px 4px 0 0;
}

/* --- BANNED CONTENT STYLING --- */

/* Light Mode Defaults */
:root {
    --banned-bg: #FEF2F2;
    --banned-border: #EF4444;
    --banned-text: #991B1B;
    --banned-icon: #DC2626;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --banned-bg: #450a0a; /* Dark Red Background */
    --banned-border: #7f1d1d; /* Darker Red Border */
    --banned-text: #fca5a5; /* Light Red Text */
    --banned-icon: #ef4444;
}

/* Channel Card in List */
.channel-card-banned {
    border: 2px solid var(--banned-border) !important;
    background-color: var(--banned-bg) !important;
    opacity: 0.9;
    cursor: not-allowed !important;
}

.banned-badge {
    background-color: var(--banned-border);
    color: #fff;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Banner inside Channel View */
.banned-warning-banner {
    background: var(--banned-bg);
    border: 1px solid var(--banned-border);
    color: var(--banned-text);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}


/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    animation: slideUp 0.3s ease-out forwards;
    font-size: 0.95rem;
}

.toast.success { background: #10B981; }
.toast.error { background: #EF4444; }
.toast.info { background: #3B82F6; }

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

