/* Import Font Awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
/* Import Google Fonts - Sci-Fi style */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&family=Orbitron:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  /* Global Font Variables */
  --font-primary: 'Exo 2', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  /* Animation Speed */
  --transition-speed: 0.3s;
  
  /* Theme: Light (Default) */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9ecef;
  --color-primary: #2b3a67;
  --color-secondary: #495057;
  --color-accent: #6c63ff;
  --color-accent-hover: #5046e5;
  --border-color: #dee2e6;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --header-bg: linear-gradient(135deg, #6c63ff 0%, #5046e5 100%);
  --card-bg: rgba(255, 255, 255, 0.9);
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  
  /* Header decoration elements - Light theme */
  --header-decoration: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  
  /* Base font sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Space variables */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index layers */
  --z-below: -1;
  --z-normal: 1;
  --z-above: 10;
  --z-tooltip: 20;
  --z-overlay: 30;
  --z-modal: 40;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --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);
  
  /* Fonts */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', 'Roboto', sans-serif;
  --font-mono: 'Courier New', monospace;
  
  /* Default theme - Sci-Fi */
  --primary-color: #00b4d8;
  --secondary-color: #0077b6;
  --accent-color: #90e0ef;
  --background-color: #f0f3f5;
  --text-color: #2e3440;
  --card-color: #ffffff;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --info-color: #3498db;
  
  /* Status colors */
  --status-pending: #f39c12;
  --status-submitted: #3498db;
  --status-graded: #2ecc71;
  --status-overdue: #e74c3c;
  
  /* Layout */
  --header-height: 70px;
  --sidebar-width: 280px;
  --content-max-width: 1600px;
  --card-min-width: 300px;
}

/* Theme: Dark */
[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2d2d2d;
  --color-primary: #e9e9e9;
  --color-secondary: #b0b0b0;
  --color-accent: #6c63ff;
  --color-accent-hover: #8a84ff;
  --border-color: #444444;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --header-bg: linear-gradient(135deg, #36096d 0%, #37375b 100%);
  --card-bg: rgba(30, 30, 30, 0.9);
  
  /* Header decoration elements - Dark theme */
  --header-decoration: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  
  --background-color: #1e1e24;
  --text-color: #caf0f8;
  --card-color: #2c2c34;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
}

/* Theme: Space */
[data-theme="space"] {
  --bg-primary: #0a0e17;
  --bg-secondary: #141b29;
  --bg-tertiary: #1c2333;
  --color-primary: #e2e8f0;
  --color-secondary: #a0aec0;
  --color-accent: #60a5fa;
  --color-accent-hover: #3b82f6;
  --border-color: #2d3748;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --header-bg: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  --card-bg: rgba(20, 27, 41, 0.8);
  
  /* Header decoration - Space theme has stars */
  --header-decoration: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10l5 5M15 5l-5 5M90 10l5 5M95 5l-5 5M10 90l5 5M15 85l-5 5M90 90l5 5M95 85l-5 5M30 30l1 1M31 29l-1 1M70 30l1 1M71 29l-1 1M30 70l1 1M31 69l-1 1M70 70l1 1M71 69l-1 1' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Theme: Nature */
[data-theme="nature"] {
  --bg-primary: #f4f9f4;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8f5e9;
  --color-primary: #1b5e20;
  --color-secondary: #388e3c;
  --color-accent: #4caf50;
  --color-accent-hover: #43a047;
  --border-color: #c8e6c9;
  --shadow-color: rgba(0, 77, 64, 0.1);
  --header-bg: linear-gradient(135deg, #52b788 0%, #2d6a4f 100%);
  --card-bg: rgba(255, 255, 255, 0.85);
  
  /* Header decoration - Nature theme has leaves */
  --header-decoration: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Theme: Paradise */
[data-theme="paradise"] {
  --bg-primary: #fff5eb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ffe0cc;
  --color-primary: #6b4226;
  --color-secondary: #c26401;
  --color-accent: #ff9e2c;
  --color-accent-hover: #e88c25;
  --border-color: #ffd2a1;
  --shadow-color: rgba(201, 131, 0, 0.1);
  --header-bg: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
  --card-bg: rgba(255, 252, 248, 0.9);
  
  /* Header decoration - Paradise theme has tropical pattern */
  --header-decoration: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Theme: Sci-Fi */
[data-theme="scifi"] {
  --bg-primary: #080b14;
  --bg-secondary: #101726;
  --bg-tertiary: #192133;
  --color-primary: #5de4ff;
  --color-secondary: #b3e5fc;
  --color-accent: #00bcd4;
  --color-accent-hover: #00acc1;
  --border-color: #263248;
  --shadow-color: rgba(0, 188, 212, 0.15);
  --header-bg: linear-gradient(135deg, #0a2342 0%, #126e82 100%);
  --card-bg: rgba(16, 23, 38, 0.9);
  
  /* Header decoration - Sci-Fi theme has tech circuit pattern */
  --header-decoration: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0V0zm40 40h20v20H40V40zm25 0h10v10H65V40zM40 65h10v10H40V65zm35-35h10v10H75V30zm10 35h10v10H85V65zM30 85h10v10H30V85z' fill='%2300bcd4' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Add fallback patterns for all themes */

.theme-heaven {
  --bg-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="white" opacity="0.05"/><circle cx="50" cy="50" r="20" fill="%238ecae6" opacity="0.2"/><circle cx="20" cy="20" r="10" fill="%23cdb4db" opacity="0.15"/><circle cx="80" cy="80" r="15" fill="%23ffafcc" opacity="0.15"/></svg>');
}

.theme-space {
  --bg-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="black" opacity="0.05"/><circle cx="10" cy="10" r="1" fill="white" opacity="0.5"/><circle cx="30" cy="40" r="1" fill="white" opacity="0.5"/><circle cx="70" cy="20" r="1" fill="white" opacity="0.5"/><circle cx="90" cy="50" r="1" fill="white" opacity="0.5"/><circle cx="50" cy="80" r="1" fill="white" opacity="0.5"/><circle cx="20" cy="90" r="1" fill="white" opacity="0.5"/><circle cx="80" cy="70" r="1" fill="white" opacity="0.5"/></svg>');
}

.theme-scifi {
  --bg-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%2300b4d8" opacity="0.03"/><path d="M0 0h100v100H0V0zm40 40h20v20H40V40zm25 0h10v10H65V40zM40 65h10v10H40V65zm35-35h10v10H75V30zm10 35h10v10H85V65zM30 85h10v10H30V85z" fill="%2300b4d8" opacity="0.1"/></svg>');
}

.theme-nature {
  --bg-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f8f9fa"/><path d="M20,30 Q30,10 40,30 T60,30 Q50,50 30,40 Z" fill="%23588157" opacity="0.2"/><path d="M70,60 Q90,50 80,70 T60,80 Q40,70 60,60 Z" fill="%233a5a40" opacity="0.15"/><path d="M10,80 Q20,60 30,80 T40,70 Q30,90 10,80 Z" fill="%23a3b18a" opacity="0.2"/><circle cx="15" cy="15" r="2" fill="%23344e41" opacity="0.1"/><circle cx="85" cy="25" r="2" fill="%23344e41" opacity="0.1"/><circle cx="35" cy="95" r="2" fill="%23344e41" opacity="0.1"/><circle cx="75" cy="85" r="2" fill="%23344e41" opacity="0.1"/><circle cx="50" cy="50" r="2" fill="%23344e41" opacity="0.1"/></svg>');
}

/* Add fallback CSS for default-avatar.png */
.sidebar-avatar, .user-avatar, .avatar-large {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAOA0lEQVR4nO2de3BU1R3HP3d3s5vdTTbZPHkLCY8QkKcBFAQEqlWrtmqtjs86ttU6ner0MR3HmU5n2vGPdqyjnU7rwzpW69hqnxYfVWuVoqJCeAQSQgIkJJvXZrObZLO72XvP6R8hWALZzWbv3bub3M9MJpO5957f+e39nnvuOef3+x1FCCEQCBxKldUCBIKsIVDZbUBwKWIQKLAtwgEEtkU4gMC2CAcQ2BbhAALbIhxAYFuEAwhsi3AAgW0RDiCwLcIBBLZFOIDAtggHENgW4QAC2yIcQGBbhAMIbItwAIFtEQ4gsC3CAQS2RTiAwLYIBxDYFuEAAtsiHEBgW4QDCGyLcACBbREOILAtwgEEtkU4gMC2CAcQ2BbhAALbIhxAYFuEAwhsi3AAgW0RDiCwLcIBBLZFOIDAtggHENgW4QAC2yIcQGBbhAMIbItwAIFtEQ4gsC3CAQS2RTiAwLYIBxDYFuEAAtsiHEBgW4QDCGyLcACBbREOILAtwgEEtkU4gMC2CAcQ2BbhAALbIhxAYFuEAwhsi3AAgW0RDiCwLcIBBLZFOIDAtggHENgW4QAC2yIcQGBbhAMIbItwAIFtEQ4gsC3CAQS2RTiAwLYIBxDYFuEAAtsiHEBgW4QDCGyLcACBbREOILAtwgEEtkU4gMC2CAcQ2BbhAALbIhxAYFuEAwhsi3AAgW0RDiCwLcIBBLZFOIDAtggHENgW4QAC2yIcQGBbhAMIbItwAIFtEQ4gsC3CAQS2RTiAwLYIBxDYFuEAAtsiHEBgW4QDCGzL/wHiU2Xn9lJvmQAAAABJRU5ErkJggg==');
  background-size: cover;
  background-position: center;
}

/* Add missing image style fix */
img[src*="default-avatar.png"] {
  background-color: #f0f0f0;
  border-radius: 50%;
}

/* Add fallback for welcome-illustration.svg */
.welcome-image img[src*="welcome-illustration.svg"] {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 400" width="500" height="400"><rect x="0" y="0" width="500" height="400" fill="%23f5f7fa" /><rect x="150" y="150" width="200" height="140" rx="5" fill="%232d3748" /><rect x="160" y="160" width="180" height="110" fill="%234299e1" /><rect x="140" y="290" width="220" height="10" rx="3" fill="%232d3748" /><rect x="130" y="300" width="240" height="10" rx="3" fill="%234a5568" /><rect x="170" y="170" width="100" height="5" fill="%23ffffff" opacity="0.7" /><rect x="170" y="185" width="160" height="5" fill="%23ffffff" opacity="0.7" /><rect x="170" y="200" width="80" height="5" fill="%23ffffff" opacity="0.7" /><rect x="170" y="215" width="140" height="5" fill="%23ffffff" opacity="0.7" /><rect x="170" y="230" width="120" height="5" fill="%23ffffff" opacity="0.7" /><rect x="170" y="245" width="90" height="5" fill="%23ffffff" opacity="0.7" /><circle cx="400" cy="100" r="30" fill="%239f7aea" opacity="0.5" /><circle cx="100" cy="300" r="40" fill="%2348bb78" opacity="0.5" /><circle cx="450" cy="350" r="25" fill="%23f56565" opacity="0.5" /><line x1="350" y1="130" x2="400" y2="100" stroke="%239f7aea" stroke-width="2" opacity="0.7" /><line x1="150" y1="250" x2="100" y2="300" stroke="%2348bb78" stroke-width="2" opacity="0.7" /><line x1="350" y1="290" x2="450" y2="350" stroke="%23f56565" stroke-width="2" opacity="0.7" /><circle cx="80" cy="80" r="15" fill="%233182ce" /><text x="80" y="85" fill="white" text-anchor="middle" font-family="Arial" font-size="16">Q</text><circle cx="420" cy="200" r="15" fill="%2338b2ac" /><text x="420" y="205" fill="white" text-anchor="middle" font-family="Arial" font-size="16">?</text><circle cx="320" cy="80" r="15" fill="%23ed8936" /><text x="320" y="85" fill="white" text-anchor="middle" font-family="Arial" font-size="16">!</text></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 300px;
  min-width: 300px;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color var(--transition-speed) ease,
              color var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--color-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--background-color);
  color: var(--text-color);
  background-image: var(--bg-pattern, none);
  background-attachment: fixed;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
  color: var(--secondary-color);
}

button, .btn {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: none;
  background-color: var(--primary-color);
  color: white;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-sm);
}

button:hover, .btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

button:active, .btn:active {
  transform: translateY(0);
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-fast);
}

.dark-mode input, .dark-mode select, .dark-mode textarea {
  background-color: rgba(30, 30, 36, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.3);
}

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--space-md);
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Main wrapper structure */
.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: padding-left var(--transition-speed) ease;
  margin-left: 0;
  transition: margin-left var(--transition-normal);
  position: relative;
  z-index: var(--z-normal);
}

@media (min-width: 1024px) {
  .main-wrapper {
    margin-left: var(--sidebar-width);
  }
}

.main-content {
  flex: 1;
  padding: 20px;
  margin-top: 70px; /* Header height */
  padding: var(--space-md);
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Mobile-friendly sidebar styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background-color: var(--bg-secondary);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform var(--transition-speed) ease;
  box-shadow: 2px 0 10px var(--shadow-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--card-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: var(--z-overlay);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.sidebar.active {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }
  
  .sidebar-toggle {
    display: none;
  }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .sidebar-header {
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  height: 30px;
  width: auto;
}

.sidebar-title {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-left: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
}

.sidebar-close {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-speed) ease;
  background-color: transparent;
  color: var(--text-color);
  font-size: var(--font-size-lg);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: none;
}

@media (min-width: 1024px) {
  .sidebar-close {
    display: none;
  }
}

.sidebar-close:hover {
  color: var(--color-accent);
}

.sidebar-user {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background-color: var(--bg-tertiary);
  border-radius: 10px;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .sidebar-user {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.sidebar-user-info {
  margin-left: 10px;
  flex: 1;
}

.sidebar-user-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  margin: 0;
  font-weight: 600;
}

.user-status {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-secondary);
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4CAF50;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) 0;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--color-primary);
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-color);
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background-color: var(--bg-tertiary);
  color: var(--color-accent);
  transform: translateX(5px);
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .sidebar-nav a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav a.active {
  background-color: rgba(0, 180, 216, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--primary-color);
}

.sidebar-nav a i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.sidebar-themes {
  margin: 1.5rem 0;
  padding: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .sidebar-themes {
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-themes h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-md);
}

.theme-options {
  display: flex;
  gap: 10px;
  margin-bottom: 0.75rem;
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  background-color: var(--bg-tertiary);
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
  box-shadow: none;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  transform: scale(1.1);
  background-color: rgba(0, 0, 0, 0.1);
  transform: none;
  box-shadow: none;
}

.dark-mode .theme-btn {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .theme-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  border-color: var(--primary-color);
}

.theme-mode {
  margin-top: 10px;
  margin-top: var(--space-md);
}

.theme-mode-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background-color: var(--bg-tertiary);
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  width: 100%;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  box-shadow: none;
}

.dark-mode .theme-mode-btn {
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-mode-btn:hover {
  background-color: var(--bg-tertiary);
  transform: translateX(5px);
  background-color: rgba(0, 0, 0, 0.05);
  transform: none;
  box-shadow: none;
}

.dark-mode .theme-mode-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.dark-mode .sidebar-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: var(--color-secondary);
  transition: all var(--transition-speed) ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.sidebar-footer-link:hover {
  color: var(--color-accent);
  transform: translateX(5px);
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

.dark-mode .sidebar-footer-link {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .sidebar-footer-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-footer-link i {
  margin-right: 10px;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 10px var(--shadow-color);
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 0 20px;
  transition: left var(--transition-speed) ease, width var(--transition-speed) ease;
  background-color: var(--card-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: var(--z-above);
  transition: all var(--transition-normal);
}

@media (min-width: 992px) {
  .header {
    left: 260px;
  }
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 20px;
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 var(--space-md);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-left: 10px;
  display: none;
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

@media (min-width: 576px) {
  .logo-text {
    display: block;
  }
}

.search-container {
  position: relative;
  max-width: 500px;
  width: 100%;
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--color-primary);
  font-family: var(--font-primary);
  transition: all var(--transition-speed) ease;
  padding-left: var(--space-xl);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.dark-mode .search-input {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-secondary);
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.6;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  margin-left: 10px;
  background-color: transparent;
  color: var(--text-color);
  box-shadow: none;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--color-accent);
  background-color: rgba(0, 0, 0, 0.05);
  transform: none;
  box-shadow: none;
}

.dark-mode .action-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-xs);
}

.user-menu {
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  border-radius: 50px;
  transition: background-color var(--transition-speed) ease;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.user-info:hover {
  background-color: var(--bg-tertiary);
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .user-info:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

#headerUsername {
  margin-right: 10px;
  font-weight: 500;
  display: none;
}

@media (min-width: 768px) {
  #headerUsername {
    display: block;
  }
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 200px;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background-color: var(--card-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: var(--z-tooltip);
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
  animation: fadeIn 0.3s ease;
}

.user-dropdown ul {
  list-style: none;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--color-primary);
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  color: var(--text-color);
  transition: background-color var(--transition-fast);
}

.user-dropdown a:hover {
  background-color: var(--bg-tertiary);
  color: var(--color-accent);
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .user-dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.user-dropdown a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Overlay for mobile sidebar */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  backdrop-filter: blur(3px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  display: none;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Hamburger Button for mobile */
.menu-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 10px var(--shadow-color);
  border: none;
  transition: background-color var(--transition-speed) ease, 
              transform var(--transition-speed) ease;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  box-shadow: var(--shadow-lg);
  display: none;
}

@media (max-width: 1023px) {
  .menu-toggle {
    display: flex;
  }
}

.menu-toggle:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.05);
  background-color: var(--secondary-color);
}

.menu-toggle i {
  font-size: 1.5rem;
  transition: transform var(--transition-speed) ease;
  transition: transform var(--transition-fast);
}

.menu-toggle.active i {
  transform: rotate(90deg);
}

/* Welcome Section */
.welcome-section {
  padding: 1.5rem;
  margin-bottom: 2rem;
  min-height: calc(100vh - var(--header-height) - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.welcome-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-color);
  animation: fadeIn 0.8s ease;
  background-color: var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

.welcome-header {
  background: var(--header-bg);
  padding: 2rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
}

.welcome-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--header-decoration);
  opacity: 0.6;
  z-index: 0;
}

.welcome-header h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.welcome-subtitle {
  position: relative;
  z-index: 1;
  opacity: 0.9;
  opacity: 0.9;
  font-size: var(--font-size-lg);
}

.welcome-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .welcome-content {
    flex-direction: row;
    align-items: center;
  }
}

.welcome-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-image img {
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
  max-width: 100%;
  height: auto;
  max-height: 300px;
}

.welcome-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.welcome-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* Test Code Section */
.test-code-section {
  padding: 1.5rem;
  margin-bottom: 2rem;
  min-height: calc(100vh - var(--header-height) - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.test-code-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-color);
  animation: fadeIn 0.8s ease;
  background-color: var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  animation: fadeInUp 0.5s ease;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark-mode .card-header {
  border-color: rgba(255, 255, 255, 0.1);
}

.card-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-body {
  padding: 1.5rem;
  padding: var(--space-lg);
}

.test-code-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

@media (min-width: 576px) {
  .test-code-input-group {
    flex-direction: row;
  }
}

@media (min-width: 500px) {
  .test-code-input-group {
    flex-direction: row;
  }
}

.test-code-input-group input {
  flex: 1;
}

.test-code-actions {
  display: flex;
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Dashboard Section */
.dashboard-section {
  animation: fadeIn 0.8s ease;
  animation: fadeIn 0.5s ease;
}

.dashboard-header {
  margin-bottom: 2rem;
  margin-bottom: var(--space-lg);
}

.dashboard-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var (--color-primary);
}

.greeting-text {
  color: var(--color-secondary);
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow-color);
  display: flex;
  align-items: center;
  transition: transform var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
  background-color: var(--card-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--color-accent);
  font-size: 1.5rem;
  border-radius: 50%;
  background-color: rgba(0, 180, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--primary-color);
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  font-family: var(--font-heading);
}

.stat-label {
  color: var (--color-secondary);
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.7;
  font-size: var(--font-size-sm);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: var (--space-lg);
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 2fr 1fr;
  }
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-color);
  background-color: var(--card-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.homework-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-select {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--color-primary);
  font-family: var(--font-primary);
  min-width: 180px;
  cursor: pointer;
  flex: 1;
  min-width: 150px;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.homework-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
  max-height: 500px;
  padding-right: var(--space-sm);
}

@media (min-width: 768px) {
  .homework-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.homework-item {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  box-shadow: 0 4px 6px var(--shadow-color);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-fast);
  opacity: 0;
  transform: translateY(10px);
}

.dark-mode .homework-item {
  background-color: rgba(30, 30, 36, 0.5);
}

.homework-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.homework-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--shadow-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.homework-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.homework-title {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin: var(--space-sm) 0;
  font-size: var(--font-size-lg);
}

.subject-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: white;
  background-color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
}

.dark-mode .subject-badge {
  background-color: rgba(255, 255, 255, 0.1);
}

.homework-description {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  margin: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.homework-progress {
  margin: 1rem 0;
  margin: var(--space-sm) 0;
}

.progress-bar {
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.dark-mode .progress-bar {
  background-color: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  height: 100%;
  background-color: var(--color-accent);
  border-radius: 4px;
  transition: width 0.5s ease;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.progress-text {
  display: block;
  font-size: 0.8rem;
  color: var(--color-secondary);
  margin-top: 5px;
  text-align: right;
  font-size: var(--font-size-xs);
  opacity: 0.7;
}

.homework-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
}

.homework-due {
  color: var(--color-secondary);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

.days-remaining {
  font-size: 0.8rem;
  margin-top: 5px;
  font-weight: 500;
}

.urgent {
  color: var(--warning-color);
}

.overdue {
  color: var(--danger-color);
  color: var(--status-overdue);
}

.days-remaining.urgent {
  color: var(--status-pending);
}

.homework-actions {
  display: flex;
  gap: 0.5rem;
  display: flex;
  gap: var(--space-xs);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: var(--bg-tertiary);
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background-color: var(--color-accent);
  color: white;
  transform: scale(1.1);
}

.no-homework {
  text-align: center;
  padding: var(--space-lg);
  opacity: 0.7;
}

/* Chart card */
.chart-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chart-card .card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md) var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Quick access card */
.quick-access-card {
  margin-bottom: 1.5rem;
}

.quick-access-item {
  margin-bottom: 1.5rem;
  margin-bottom: var(--space-lg);
}

.quick-access-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Teacher card */
.teacher-card {
  margin-bottom: 1.5rem;
}

.teacher-search {
  position: relative;
  margin-bottom: 1rem;
  position: relative;
  margin-bottom: var(--space-md);
}

.teacher-search input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--color-primary);
  font-family: var(--font-primary);
  width: 100%;
  padding-left: var(--space-xl);
}

.teacher-search i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-secondary);
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

.teacher-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 300px;
  overflow-y: auto;
}

.teacher-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background-color: var(--bg-tertiary);
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  padding: var(--space-sm);
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.dark-mode .teacher-item {
  background-color: rgba(255, 255, 255, 0.02);
}

.teacher-item:hover {
  background-color: var(--bg-secondary);
  transform: translateX(5px);
  box-shadow: 0 4px 10px var(--shadow-color);
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .teacher-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.teacher-name {
  font-weight: 500;
  margin-right: var(--space-sm);
}

.teacher-subject {
  flex: 1;
  opacity: 0.7;
  font-size: var(--font-size-sm);
}

.btn-add-friend, .btn-remove-friend {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  box-shadow: none;
}

.btn-add-friend:hover {
  background-color: var(--primary-color);
  color: white;
  transform: none;
  box-shadow: none;
}

.btn-remove-friend {
  border-color: var(--error-color);
  color: var(--error-color);
}

.btn-remove-friend:hover {
  background-color: var (--error-color);
  color: white;
  transform: none;
  box-shadow: none;
}

.no-teachers {
  text-align: center;
  padding: var(--space-md);
  opacity: 0.7;
}

.footer {
  background-color: var(--card-color);
  padding: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.dark-mode .footer {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-content p {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  margin: 0;
}

@media (min-width: 768px) {
  .footer-content p {
    margin-bottom: 0;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  color: var(--color-secondary);
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Toast container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow-color);
  display: flex;
  align-items: center;
  animation: slideIn 0.3s ease forwards;
  max-width: 300px;
  background-color: var(--card-color);
  color: var (--text-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  max-width: 90%;
  margin: 0 auto;
}

.toast.success {
  background-color: var(--success-color);
  color: white;
  border-left: 4px solid var(--success-color);
}

.toast.success i {
  margin-right: 10px;
  font-size: 1.2rem;
  color: var(--success-color);
}

.toast.error {
  background-color: var(--danger-color);
  color: white;
  border-left: 4px solid var(--error-color);
}

.toast.error i {
  margin-right: 10px;
  font-size: 1.2rem;
  color: var(--error-color);
}

.toast.info {
  background-color: var(--info-color);
  color: white;
  border-left: 4px solid var(--info-color);
}

.toast.warning {
  background-color: var(--warning-color);
  color: black;
  border-left: 4px solid var(--warning-color);
}

.toast.warning i {
  margin-right: 10px;
  font-size: 1.2rem;
  color: var(--warning-color);
}

.toast i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  outline: none;
  white-space: nowrap;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn i {
  margin-right: 8px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: 0 4px 6px rgba(108, 99, 255, 0.25);
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(108, 99, 255, 0.3);
  background-color: var(--secondary-color);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var (--color-primary);
  box-shadow: 0 4px 6px var(--shadow-color);
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px var(--shadow-color);
  background-color: var(--primary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--border-color);
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
  background-color: var(--primary-color);
  color: white;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Theme-specific animations for sci-fi theme */
[data-theme="scifi"] .btn-primary, 
[data-theme="scifi"] .stat-icon,
[data-theme="scifi"] .sidebar-avatar,
[data-theme="scifi"] .user-avatar {
  position: relative;
  overflow: hidden;
}

[data-theme="scifi"] .btn-primary::after,
[data-theme="scifi"] .stat-icon::after,
[data-theme="scifi"] .sidebar-avatar::after,
[data-theme="scifi"] .user-avatar::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    transparent 0%,
    rgba(93, 228, 255, 0.2) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: hologram-scan 3s linear infinite;
}

@keyframes hologram-scan {
  0% {
    top: -50%;
    left: -50%;
  }
  100% {
    top: 100%;
    left: 100%;
  }
}

/* Apply animations based on delay for homework items */
.homework-item:nth-child(1) { animation-delay: 0.1s; }
.homework-item:nth-child(2) { animation-delay: 0.2s; }
.homework-item:nth-child(3) { animation-delay: 0.3s; }
.homework-item:nth-child(4) { animation-delay: 0.4s; }
.homework-item:nth-child(5) { animation-delay: 0.5s; }
.homework-item:nth-child(6) { animation-delay: 0.6s; }

/* Dashboard specific styles */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.homework-list-column,
.testcode-column,
.teacher-container {
  flex: 1;
  min-width: 300px;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all var(--transition-speed) ease;
}

/* Apply dark mode colors */
.dark-mode {
  --background-color: #1e1e24;
  --text-color: #caf0f8;
  --card-color: #2c2c34;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
}

/* Theme-specific styles */
.theme-heaven .btn-primary {
  background: linear-gradient(135deg, #8ecae6, #cdb4db);
}

.theme-heaven .btn-secondary {
  background: linear-gradient(135deg, #cdb4db, #ffafcc);
}

.theme-space .btn-primary {
  background: linear-gradient(135deg, #7209b7, #3a0ca3);
}

.theme-space .btn-secondary {
  background: linear-gradient(135deg, #3a0ca3, #f72585);
}

.theme-scifi .btn-primary {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
}

.theme-scifi .btn-secondary {
  background: linear-gradient(135deg, #0077b6, #90e0ef);
}

.theme-nature .btn-primary {
  background: linear-gradient(135deg, #588157, #3a5a40);
}

.theme-nature .btn-secondary {
  background: linear-gradient(135deg, #3a5a40, #a3b18a);
}

/* Special effects for sci-fi theme */
.theme-scifi.dark-mode {
  background-image: radial-gradient(circle at 50% 50%, rgba(0, 180, 216, 0.1) 0%, transparent 80%);
}

.theme-scifi .header {
  border-bottom: 1px solid rgba(0, 180, 216, 0.2);
}

.theme-scifi .sidebar {
  border-right: 1px solid rgba(0, 180, 216, 0.2);
}

.theme-scifi .card {
  border: 1px solid rgba(0, 180, 216, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 180, 216, 0.05));
  backdrop-filter: blur(10px);
}

.theme-scifi.dark-mode .card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 180, 216, 0.1));
}

.theme-scifi .homework-item {
  border-left: 4px solid rgba(0, 180, 216, 0.5);
  background: linear-gradient(90deg, rgba(0, 180, 216, 0.05), transparent);
}

.theme-scifi.dark-mode .stat-card .stat-icon {
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.3);
}

.theme-scifi .progress-fill {
  background: linear-gradient(90deg, #00b4d8, #90e0ef);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* Sci-fi specific animations */
.theme-scifi .btn:hover {
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.theme-scifi .user-avatar,
.theme-scifi .sidebar-avatar {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(to right, #00b4d8, #90e0ef) border-box;
}

.theme-scifi.dark-mode .user-avatar,
.theme-scifi.dark-mode .sidebar-avatar {
  background: linear-gradient(#2c2c34, #2c2c34) padding-box,
              linear-gradient(to right, #00b4d8, #90e0ef) border-box;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

.bounce-animation {
  animation: bounce 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 180, 216, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Animated list with staggered effects */
.animated-list > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animated-list > *:nth-child(1) { transition-delay: 0.1s; }
.animated-list > *:nth-child(2) { transition-delay: 0.2s; }
.animated-list > *:nth-child(3) { transition-delay: 0.3s; }
.animated-list > *:nth-child(4) { transition-delay: 0.4s; }
.animated-list > *:nth-child(5) { transition-delay: 0.5s; }

.animated-list.fade-in > *,
.homework-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Theme specific glow effects */
.theme-scifi input:focus, 
.theme-scifi select:focus, 
.theme-scifi textarea:focus {
  box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.3), 0 0 15px rgba(0, 180, 216, 0.2);
}

.theme-scifi.dark-mode .homework-status {
  text-shadow: 0 0 5px currentColor;
}

.theme-scifi.dark-mode .stat-value {
  text-shadow: 0 0 10px var(--primary-color);
}

/* Enhanced Theme Support */
/* Improve theme transitions */
body, .card, .sidebar, .header, .homework-item, .stat-card, .teacher-item,
.btn, input, select, textarea, .progress-bar, .progress-fill {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Improved Dark Mode Base Styles */
.dark-mode {
  --background-color: #121212;
  --text-color: #e0e0e0;
  --card-color: #1e1e24;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
}

/* Theme: Heaven - Enhanced */
.theme-heaven {
  --primary-color: #8ecae6;
  --secondary-color: #cdb4db;
  --accent-color: #ffafcc;
  --bg-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="white" opacity="0.05"/><circle cx="50" cy="50" r="20" fill="%238ecae6" opacity="0.2"/><circle cx="20" cy="20" r="10" fill="%23cdb4db" opacity="0.15"/><circle cx="80" cy="80" r="15" fill="%23ffafcc" opacity="0.15"/></svg>');
}

.theme-heaven.dark-mode {
  --primary-color: #48cae4;
  --secondary-color: #9d4edd;
  --accent-color: #ff85a1;
  --bg-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23121212" opacity="0.05"/><circle cx="50" cy="50" r="20" fill="%2348cae4" opacity="0.2"/><circle cx="20" cy="20" r="10" fill="%239d4edd" opacity="0.15"/><circle cx="80" cy="80" r="15" fill="%23ff85a1" opacity="0.15"/></svg>');
}

.theme-heaven .header,
.theme-heaven .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.theme-heaven .homework-item {
  border-left: 4px solid var(--primary-color);
}

.theme-heaven .stat-icon {
  background-color: rgba(142, 202, 230, 0.2);
}

.theme-heaven.dark-mode .stat-icon {
  background-color: rgba(72, 202, 228, 0.2);
}

/* Theme: Space - Enhanced */
.theme-space {
  --primary-color: #7209b7;
  --secondary-color: #3a0ca3;
  --accent-color: #f72585;
}

.theme-space.dark-mode {
  --primary-color: #8338ec;
  --secondary-color: #5a189a;
  --accent-color: #ff006e;
  background-color: #03071e;
  --bg-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23030720" opacity="0.05"/><circle cx="10" cy="10" r="1" fill="white" opacity="0.7"/><circle cx="30" cy="40" r="1" fill="white" opacity="0.7"/><circle cx="70" cy="20" r="1" fill="white" opacity="0.7"/><circle cx="90" cy="50" r="1" fill="white" opacity="0.7"/><circle cx="50" cy="80" r="1" fill="white" opacity="0.7"/><circle cx="20" cy="90" r="1" fill="white" opacity="0.7"/><circle cx="80" cy="70" r="1" fill="white" opacity="0.7"/></svg>');
}

.theme-space .card {
  backdrop-filter: blur(8px);
}

.theme-space .homework-item {
  border-left: 4px solid var(--primary-color);
  background: linear-gradient(90deg, rgba(114, 9, 183, 0.05), transparent);
}

.theme-space.dark-mode .homework-item {
  background: linear-gradient(90deg, rgba(131, 56, 236, 0.1), transparent);
}

.theme-space .header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.theme-space .stat-icon {
  background-color: rgba(114, 9, 183, 0.15);
}

.theme-space.dark-mode .stat-icon {
  background-color: rgba(131, 56, 236, 0.2);
  box-shadow: 0 0 15px rgba(131, 56, 236, 0.3);
}

/* Theme: Sci-Fi - Enhanced */
.theme-scifi {
  --primary-color: #00b4d8;
  --secondary-color: #0077b6;
  --accent-color: #90e0ef;
}

.theme-scifi.dark-mode {
  background-image: radial-gradient(circle at 50% 50%, rgba(0, 180, 216, 0.1) 0%, transparent 80%), var(--bg-pattern);
}

.theme-scifi .header {
  border-bottom: 1px solid rgba(0, 180, 216, 0.2);
}

.theme-scifi.dark-mode .header {
  border-bottom: 1px solid rgba(0, 180, 216, 0.3);
}

.theme-scifi .card {
  border: 1px solid rgba(0, 180, 216, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 180, 216, 0.05));
  backdrop-filter: blur(10px);
}

.theme-scifi.dark-mode .card {
  border: 1px solid rgba(0, 180, 216, 0.2);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 180, 216, 0.05));
}

.theme-scifi .btn-primary, 
.theme-scifi .btn-secondary,
.theme-scifi .progress-fill {
  position: relative;
  overflow: hidden;
}

.theme-scifi .btn-primary::after,
.theme-scifi .btn-secondary::after,
.theme-scifi .progress-fill::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    transparent 0%,
    rgba(144, 224, 239, 0.3) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: hologram-scan 3s linear infinite;
}

.theme-scifi.dark-mode .progress-fill::after {
  background: linear-gradient(
    transparent 0%,
    rgba(144, 224, 239, 0.5) 50%,
    transparent 100%
  );
}

/* Theme: Nature - Enhanced */
.theme-nature {
  --primary-color: #588157;
  --secondary-color: #3a5a40;
  --accent-color: #a3b18a;
}

.theme-nature.dark-mode {
  --bg-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23283618"/><path d="M20,30 Q30,10 40,30 T60,30 Q50,50 30,40 Z" fill="%23588157" opacity="0.2"/><path d="M70,60 Q90,50 80,70 T60,80 Q40,70 60,60 Z" fill="%233a5a40" opacity="0.15"/><path d="M10,80 Q20,60 30,80 T40,70 Q30,90 10,80 Z" fill="%23a3b18a" opacity="0.2"/></svg>');
}

.theme-nature .header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fefae0;
}

.theme-nature .card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(88, 129, 87, 0.2);
}

.theme-nature.dark-mode .card {
  border: 1px solid rgba(88, 129, 87, 0.3);
}

.theme-nature .homework-item {
  border-left: 4px solid var(--primary-color);
  background: linear-gradient(90deg, rgba(88, 129, 87, 0.05), transparent);
}

.theme-nature.dark-mode .homework-item {
  background: linear-gradient(90deg, rgba(88, 129, 87, 0.1), transparent);
}

.theme-nature .sidebar-avatar,
.theme-nature .user-avatar {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 0 2px rgba(88, 129, 87, 0.2);
}

/* Status colors for all themes */
.homework-status.status-pending {
  color: var(--status-pending);
}

.homework-status.status-submitted {
  color: var(--status-submitted);
}

.homework-status.status-graded {
  color: var(--status-graded);
}

.dark-mode .homework-status {
  text-shadow: 0 0 5px currentColor;
}

/* Loading indicators for each theme */
.theme-heaven .loading-indicator {
  border: 3px solid rgba(142, 202, 230, 0.3);
  border-top: 3px solid var(--primary-color);
}

.theme-space .loading-indicator {
  border: 3px solid rgba(114, 9, 183, 0.3);
  border-top: 3px solid var(--primary-color);
}

.theme-scifi .loading-indicator {
  border: 3px solid rgba(0, 180, 216, 0.3);
  border-top: 3px solid var(--primary-color);
}

.theme-nature .loading-indicator {
  border: 3px solid rgba(88, 129, 87, 0.3);
  border-top: 3px solid var(--primary-color);
}

/* Animation for holographic scan effect */
@keyframes hologram-scan {
  0% {
    top: -50%;
    left: -50%;
  }
  100% {
    top: 100%;
    left: 100%;
  }
}

/* Message display styles for different themes */
.message-display {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: var(--z-tooltip);
  color: white;
  display: flex;
  align-items: center;
  max-width: 90%;
}

.message-display.info {
  background-color: var(--info-color);
}

.message-display.success {
  background-color: var(--success-color);
}

.message-display.error {
  background-color: var(--error-color);
}

.message-display.warning {
  background-color: var(--warning-color);
  color: #000;
}

.message-display.slide-in {
  animation: slideInUp 0.3s forwards;
}

.message-display.slide-out {
  animation: slideOutDown 0.3s forwards;
}

@keyframes slideInUp {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
}

/* Theme-specific message styles */
.theme-heaven .message-display {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.theme-space .message-display {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.theme-scifi .message-display {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: 1px solid rgba(0, 180, 216, 0.3);
}

.theme-scifi.dark-mode .message-display {
  border: 1px solid rgba(0, 180, 216, 0.5);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.3);
}

.theme-nature .message-display {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
