/* Modern Theme System for BYAMN */

/* Light Theme Variables - Clean white mode */
:root {
  /* Base Colors */
  --color-white: #ffffff;
  --color-black: #000000;

  /* Primary Brand Colors */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;

  /* Secondary Colors */
  --secondary-50: #f5f3ff;
  --secondary-100: #ede9fe;
  --secondary-200: #ddd6fe;
  --secondary-300: #c4b5fd;
  --secondary-400: #a78bfa;
  --secondary-500: #8b5cf6;
  --secondary-600: #7c3aed;
  --secondary-700: #6d28d9;
  --secondary-800: #5b21b6;
  --secondary-900: #4c1d95;

  /* Neutral Colors - Pure white background with dark text */
  --neutral-50: #ffffff;
  /* Pure white */
  --neutral-100: #fafafa;
  --neutral-200: #f3f4f6;
  --neutral-300: #e5e7eb;
  --neutral-400: #d1d5db;
  --neutral-500: #9ca3af;
  --neutral-600: #6b7280;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;

  /* Success Colors */
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-200: #bbf7d0;
  --success-300: #86efac;
  --success-400: #4ade80;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;
  --success-800: #166534;
  --success-900: #14532d;

  /* Warning Colors */
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-200: #fde68a;
  --warning-300: #fcd34d;
  --warning-400: #fbbf24;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;
  --warning-800: #92400e;
  --warning-900: #78350f;

  /* Error Colors */
  --error-50: #fef2f2;
  --error-100: #fee2e2;
  --error-200: #fecaca;
  --error-300: #fca5a5;
  --error-400: #f87171;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;
  --error-800: #991b1b;
  --error-900: #7f1d1d;

  /* Backgrounds - Pure white for clean look */
  --bg-page: var(--neutral-50);
  /* Pure white */
  --bg-surface: var(--color-white);
  /* Pure white */
  --bg-card: var(--color-white);
  /* Pure white */
  --bg-header: rgba(255, 255, 255, 0.95);
  /* Nearly pure white with slight transparency */
  --bg-footer: var(--neutral-900);
  /* Dark footer for contrast */

  /* Text Colors - High contrast for readability */
  --text-primary: var(--neutral-900);
  /* Nearly black for headings */
  --text-secondary: var(--neutral-700);
  /* Dark gray for body text */
  --text-tertiary: var(--neutral-600);
  /* Medium gray for less important text */
  --text-inverse: var(--neutral-50);
  /* Pure white for dark backgrounds */
  --text-heading: var(--neutral-900);
  /* Nearly black for headings */
  --text-body: var(--neutral-700);
  /* Dark gray for body text */
  --text-muted: var(--neutral-500);
  /* Light gray for muted text */
  --text-link: var(--primary-600);
  /* Blue for links */
  --text-link-hover: var(--primary-800);
  /* Darker blue for link hover */

  /* Borders - Light borders for clean separation */
  --border-base: var(--neutral-200);
  /* Very light gray */
  --border-card: var(--neutral-200);
  /* Very light gray */
  --border-divider: var(--neutral-200);
  /* Very light gray */

  /* Shadows - Subtle shadows for depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* Focus Ring */
  --focus-ring: var(--primary-500);

  /* Transitions */
  --transition-fast: 150ms;
  --transition-medium: 300ms;
  --transition-slow: 500ms;

  /* Theme Transition */
  --theme-transition-duration: 0.3s;
}

/* Base Body Styles - Clean white background */
body {
  color: var(--text-body);
  background-color: var(--bg-page);
  /* Pure white background */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  transition: background-color var(--transition-medium) ease, color var(--transition-medium) ease;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Smooth theme transition */
body.theme-transition,
body.theme-transition * {
  transition: background-color var(--theme-transition-duration) ease,
    color var(--theme-transition-duration) ease,
    border-color var(--theme-transition-duration) ease,
    fill var(--theme-transition-duration) ease,
    stroke var(--theme-transition-duration) ease !important;
  transition-delay: 0ms !important;
}

/* Improved scrollbar for modern look */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border-base);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Certificate signature font */
.certificate-signature {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.5rem;
}

/* Review System Styles */
.review-card {
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.review-rating-stars {
  color: #fbbf24;
  /* amber-400 */
}

.review-user-avatar {
  background-color: #e0f2fe;
  /* primary-100 */
  color: #0284c7;
  /* primary-700 */
}

/* Text visibility utilities */
.text-visible {
  color: var(--text-secondary);
}

.text-visible-light {
  color: var(--text-primary);
}

.text-visible-dark {
  color: var(--text-primary);
}

.text-visible-tertiary {
  color: var(--text-tertiary);
}

/* Card styles for pure white theme */
.card {
  background-color: var(--bg-card);
  /* Pure white */
  border: 1px solid var(--border-card);
  /* Light border */
  border-radius: 0.75rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow);
}

/* Modern Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all var(--transition-fast) ease;
  cursor: pointer;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-link {
  line-height: 1.25rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* Button Variants */
.btn-primary {
  background-color: var(--primary-600);
  color: var(--color-white);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--neutral-200);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--neutral-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

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

.btn-outline:hover:not(:disabled) {
  background-color: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline:active:not(:disabled) {
  transform: translateY(0);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--neutral-100);
}

/* Icon Buttons */
.btn-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.btn-icon-sm {
  padding: 0.25rem;
  border-radius: 0.375rem;
}

.btn-icon-lg {
  padding: 0.75rem;
  border-radius: 0.75rem;
}

/* Review System Styles */
.review-card {
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.review-rating-stars {
  color: #fbbf24;
  /* amber-400 */
}

.review-user-avatar {
  background-color: #e0f2fe;
  /* primary-100 */
  color: #0284c7;
  /* primary-700 */
}

/* Modern Form Elements */
.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border-base);
  background-color: var(--bg-surface);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast) ease;
  color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-help {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.875rem;
  color: var(--error-500);
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Enhanced Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseSlow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes bounceSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn var(--transition-medium) ease-out;
}

.fade-in-up {
  animation: fadeInUp var(--transition-medium) ease-out;
}

.fade-in-left {
  animation: fadeInLeft var(--transition-medium) ease-out;
}

.fade-in-right {
  animation: fadeInRight var(--transition-medium) ease-out;
}

.pulse-slow {
  animation: pulseSlow 2s ease-in-out infinite;
}

.bounce-soft {
  animation: bounceSoft 2s ease-in-out infinite;
}

.scale-in {
  animation: scaleIn var(--transition-fast) ease-out;
}

.animate-fade-in {
  animation: fadeIn var(--transition-fast) ease-out;
}

.slide-in-left {
  animation: slideInFromLeft var(--transition-medium) ease-out;
}

.slide-in-right {
  animation: slideInFromRight var(--transition-medium) ease-out;
}

.slide-in-top {
  animation: slideInFromTop var(--transition-medium) ease-out;
}

.slide-in-bottom {
  animation: slideInFromBottom var(--transition-medium) ease-out;
}

/* Global Smooth Transitions */
*,
*::before,
*::after {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: var(--theme-transition-duration);
}

/* Theme transition override for instant changes when needed */
.no-transition,
.no-transition * {
  transition: none !important;
}

/* Interactive Effects */
.hover-lift {
  transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
}

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

.hover-scale {
  transition: transform var(--transition-medium) ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

.glow-primary {
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.glow-secondary {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Focus Styles */
.focus-ring {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus-ring:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Spacing Utilities */
.space-y-1> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-2> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-3> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-5> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}

.space-y-6> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.space-x-1> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-2> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-3> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-5> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.25rem * var(--tw-space-x-reverse));
  margin-left: calc(1.25rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-6> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

/* Text Utilities */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gradient Text Utilities */
.text-gradient-primary {
  background: linear-gradient(to right, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradient-secondary {
  background: linear-gradient(to right, var(--secondary-500), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradient-success {
  background: linear-gradient(to right, var(--success-500), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Consistent Border Radius */
.rounded-xs {
  border-radius: 0.125rem;
}

.rounded-sm {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Consistent Shadow Levels */
.shadow-consistent {
  box-shadow: var(--shadow);
}

.shadow-consistent-hover:hover {
  box-shadow: var(--shadow-md);
}

.shadow-consistent-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-consistent-lg-hover:hover {
  box-shadow: var(--shadow-xl);
}

/* Theme Utility Classes */
.text-theme-primary {
  color: var(--text-primary);
}

.text-theme-secondary {
  color: var(--text-secondary);
}

.text-theme-tertiary {
  color: var(--text-tertiary);
}

.text-theme-heading {
  color: var(--text-heading);
}

.text-theme-body {
  color: var(--text-body);
}

.text-theme-muted {
  color: var(--text-muted);
}

.text-theme-link {
  color: var(--text-link);
}

.text-theme-link:hover {
  color: var(--text-link-hover);
}

.bg-theme-page {
  background-color: var(--bg-page);
}

.bg-theme-surface {
  background-color: var(--bg-surface);
}

.bg-theme-card {
  background-color: var(--bg-card);
}

.border-theme {
  border-color: var(--border-base);
}

.border-theme-divider {
  border-color: var(--border-divider);
}

/* Background Gradients */
.bg-gradient-theme {
  background: linear-gradient(to bottom right, var(--bg-page), var(--neutral-100));
}

/* Placeholder Fix */
::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* Typography System */
.typography-display {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 800;
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: -0.025em;
}

.typography-h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

.typography-h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

.typography-h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--text-heading);
}

.typography-h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--text-heading);
}

.typography-h5 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--text-heading);
}

.typography-h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--text-heading);
}

.typography-body-large {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--text-body);
}

.typography-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--text-body);
}

.typography-body-small {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-body);
}

.typography-caption {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--text-body);
}

.typography-overline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-body);
}

/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-primary {
  background-color: var(--primary-100);
  color: var(--primary-800);
}

.badge-secondary {
  background-color: var(--secondary-100);
  color: var(--secondary-800);
}

.badge-success {
  background-color: var(--success-100);
  color: var(--success-800);
}

.badge-warning {
  background-color: var(--warning-100);
  color: var(--warning-800);
}

.badge-error {
  background-color: var(--error-100);
  color: var(--error-800);
}

/* Alert Component */
.alert {
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.alert-error {
  background-color: var(--error-50);
  color: var(--error-800);
  border: 1px solid var(--error-200);
}

.alert-success {
  background-color: var(--success-50);
  color: var(--success-800);
  border: 1px solid var(--success-200);
}

.alert-warning {
  background-color: var(--warning-50);
  color: var(--warning-800);
  border: 1px solid var(--warning-200);
}

/* Course Card Specific Styles */
.course-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #c7d2fe;
}

/* Keyboard Navigation Focus Styles */
.course-card:focus {
  transform: translateY(-8px);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.5), 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #4f46e5;
}

.course-card:focus-visible {
  outline: 3px solid #4f46e5;
  outline-offset: 2px;
}

/* Course image container with improved styling */
.course-image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .course-image {
  transform: scale(1.05);
}

/* Course content styling with improved typography */
.course-card-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.course-card-description {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Course meta styling with improved layout */
.course-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.course-card-price {
  font-weight: 800;
  color: #111827;
  font-size: 1.25rem;
}

/* Badge styling with enhanced design */
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: #e0e7ff;
  color: #4f46e5;
}

.badge-secondary {
  background-color: var(--secondary-100);
  color: var(--secondary-800);
}

.badge-success {
  background-color: var(--success-100);
  color: var(--success-800);
}

.badge-warning {
  background-color: var(--warning-100);
  color: var(--warning-800);
}

.badge-error {
  background-color: var(--error-100);
  color: var(--error-800);
}

/* Alert Component */
.alert {
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.alert-error {
  background-color: var(--error-50);
  color: var(--error-800);
  border: 1px solid var(--error-200);
}

.alert-success {
  background-color: var(--success-50);
  color: var(--success-800);
  border: 1px solid var(--success-200);
}

.alert-warning {
  background-color: var(--warning-50);
  color: var(--warning-800);
  border: 1px solid var(--warning-200);
}

/* Course Card Specific Styles */
.course-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}

/* Category Filter Buttons */
.category-btn {
  transition: all 0.2s ease;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  background: var(--neutral-100);
  color: var(--text-secondary);
  border: 1px solid var(--border-base);
  font-size: 0.9rem;
}

.category-btn:hover {
  background: var(--neutral-200);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.category-btn.active {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Loading Spinner */
.loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 4px solid rgba(79, 70, 229, 0.2);
  border-top: 4px solid var(--primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-xs {
  gap: 0.25rem;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

.gap-xl {
  gap: 2rem;
}

.w-full {
  width: 100%;
}

.max-w-xs {
  max-width: 20rem;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-xs {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-sm {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-md {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-lg {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.my-xl {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.p-xs {
  padding: 0.25rem;
}

.p-sm {
  padding: 0.5rem;
}

.p-md {
  padding: 1rem;
}

.p-lg {
  padding: 1.5rem;
}

.p-xl {
  padding: 2rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.transition-all {
  transition: all var(--transition-fast) cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Ensure grid items are always visible */
.grid>* {
  display: block !important;
}

/* Ensure course cards are always visible */
.course-card {
  display: block !important;
}

/* Special styling for Android Development courses */
.android-course {
  border: 2px solid var(--success-500);
  /* Android green color */
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.android-badge {
  background-color: var(--success-500) !important;
  color: white !important;
}

/* Typography System */
.typography-display {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 800;
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: -0.025em;
}

.typography-h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: -0.025em;
}

.typography-h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
}

.typography-h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
}

.typography-h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.typography-h5 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.typography-h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
}

.typography-body-large {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.typography-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
}

.typography-body-small {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.typography-caption {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1rem;
}

.typography-overline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}



.stat-value {
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

/* Dark mode override removed */

.stat-label {
  font-weight: 500;
  color: var(--text-body);
}

/* Footer Styles */
.footer-links h3 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: color var(--transition-fast) ease;
}

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

/* Social Icons */
.footer-social {
  display: flex;
  justify-content: center;
  /* center horizontally */
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--neutral-800);
  color: var(--neutral-400);
  transition: all var(--transition-fast) ease;
}

.footer-social a:hover {
  background-color: var(--neutral-700);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* --- NEW FIXES FOR CENTERING COPYRIGHT + LINKS + ICONS --- */

/* Footer bottom wrapper (everything centered) */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--neutral-800);
  gap: 1rem;
}

/* Centered copyright */
.footer-copyright {
  color: var(--neutral-500);
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Small footer navigation links below copyright */
.footer-small-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.footer-small-nav a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

.footer-small-nav a:hover {
  color: var(--color-white);
}




/* Modern Form Styles */
.form-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 42rem;
  margin: 0 auto;
}

.form-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transform: translateX(100%);
  transition: transform var(--transition-medium) ease;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background-color: var(--success-500);
  color: var(--color-white);
}

.notification-error {
  background-color: var(--error-500);
  color: var(--color-white);
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--neutral-200);
  border-top: 3px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--border-divider);
  margin: 1.5rem 0;
}

/* Container */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding-right: 2rem;
    padding-left: 2rem;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Modern Button System (already defined above, removing duplicate) */

/* Alert Component (already defined above, removing duplicate) */

/* Progress Bar (already defined above, removing duplicate) */

/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-md {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.p-sm {
  padding: 0.5rem;
}

.p-md {
  padding: 1rem;
}

.p-lg {
  padding: 1.5rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.transition-all {
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Ensure grid items are always visible */
.grid>* {
  display: block !important;
}

/* Ensure course cards are always visible */
.course-card {
  display: block !important;
}

/* Modern Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all var(--transition-fast) ease;
  cursor: pointer;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-link {
  line-height: 1.25rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* Button Variants */
.btn-primary {
  background-color: var(--primary-600);
  color: var(--color-white);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--neutral-200);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--neutral-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

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

.btn-outline:hover:not(:disabled) {
  background-color: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline:active:not(:disabled) {
  transform: translateY(0);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--neutral-100);
}

/* Icon Buttons */
.btn-icon {
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.btn-icon-sm {
  padding: 0.25rem;
  border-radius: 0.375rem;
}

.btn-icon-lg {
  padding: 0.75rem;
  border-radius: 0.75rem;
}

/* Review System Styles */
.review-card {
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.review-rating-stars {
  color: #fbbf24;
  /* amber-400 */
}

.review-user-avatar {
  background-color: #e0f2fe;
  /* primary-100 */
  color: #0284c7;
  /* primary-700 */
}

/* Modern Form Elements */
.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border-base);
  background-color: var(--bg-surface);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast) ease;
  color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-help {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.875rem;
  color: var(--error-500);
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Enhanced Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseSlow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes bounceSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn var(--transition-medium) ease-out;
}

.fade-in-up {
  animation: fadeInUp var(--transition-medium) ease-out;
}

.fade-in-left {
  animation: fadeInLeft var(--transition-medium) ease-out;
}

.fade-in-right {
  animation: fadeInRight var(--transition-medium) ease-out;
}

.pulse-slow {
  animation: pulseSlow 2s ease-in-out infinite;
}

.bounce-soft {
  animation: bounceSoft 2s ease-in-out infinite;
}

.scale-in {
  animation: scaleIn var(--transition-fast) ease-out;
}

.animate-fade-in {
  animation: fadeIn var(--transition-fast) ease-out;
}

.slide-in-left {
  animation: slideInFromLeft var(--transition-medium) ease-out;
}

.slide-in-right {
  animation: slideInFromRight var(--transition-medium) ease-out;
}

.slide-in-top {
  animation: slideInFromTop var(--transition-medium) ease-out;
}

.slide-in-bottom {
  animation: slideInFromBottom var(--transition-medium) ease-out;
}

/* Global Smooth Transitions */
*,
*::before,
*::after {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: var(--theme-transition-duration);
}

/* Theme transition override for instant changes when needed */
.no-transition,
.no-transition * {
  transition: none !important;
}

/* Interactive Effects */
.hover-lift {
  transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
}

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

.hover-scale {
  transition: transform var(--transition-medium) ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

.glow-primary {
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.glow-secondary {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Focus Styles */
.focus-ring {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus-ring:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Spacing Utilities */
.space-y-1> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-2> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-3> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-5> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}

.space-y-6> :not([hidden])~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.space-x-1> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-2> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-3> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-5> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.25rem * var(--tw-space-x-reverse));
  margin-left: calc(1.25rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-6> :not([hidden])~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

/* Text Utilities */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gradient Text Utilities */
.text-gradient-primary {
  background: linear-gradient(to right, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradient-secondary {
  background: linear-gradient(to right, var(--secondary-500), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradient-success {
  background: linear-gradient(to right, var(--success-500), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Consistent Border Radius */
.rounded-xs {
  border-radius: 0.125rem;
}

.rounded-sm {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Consistent Shadow Levels */
.shadow-consistent {
  box-shadow: var(--shadow);
}

.shadow-consistent-hover:hover {
  box-shadow: var(--shadow-md);
}

.shadow-consistent-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-consistent-lg-hover:hover {
  box-shadow: var(--shadow-xl);
}

/* Theme Utility Classes */
.text-theme-primary {
  color: var(--text-primary);
}

.text-theme-secondary {
  color: var(--text-secondary);
}

.text-theme-tertiary {
  color: var(--text-tertiary);
}

.text-theme-heading {
  color: var(--text-heading);
}

.text-theme-body {
  color: var(--text-body);
}

.text-theme-muted {
  color: var(--text-muted);
}

.text-theme-link {
  color: var(--text-link);
}

.text-theme-link:hover {
  color: var(--text-link-hover);
}

.bg-theme-page {
  background-color: var(--bg-page);
}

.bg-theme-surface {
  background-color: var(--bg-surface);
}

.bg-theme-card {
  background-color: var(--bg-card);
}

.border-theme {
  border-color: var(--border-base);
}

.border-theme-divider {
  border-color: var(--border-divider);
}

/* Background Gradients */
.bg-gradient-theme {
  background: linear-gradient(to bottom right, var(--bg-page), var(--neutral-100));
}

/* Dark mode override removed */

/* Placeholder Fix */
::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* Typography System */
.typography-display {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 800;
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: -0.025em;
}

.typography-h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 2.5rem;
  letter-spacing: -0.025em;
}

.typography-h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
}

.typography-h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
}

.typography-h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.typography-h5 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.typography-h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
}

.typography-body-large {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.typography-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
}

.typography-body-small {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.typography-caption {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1rem;
}

.typography-overline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-primary {
  background-color: var(--primary-100);
  color: var(--primary-800);
}

/* Dark mode override removed */

.badge-secondary {
  background-color: var(--secondary-100);
  color: var(--secondary-800);
}

/* Dark mode override removed */

.badge-success {
  background-color: var(--success-100);
  color: var(--success-800);
}

/* Dark mode override removed */

.badge-warning {
  background-color: var(--warning-100);
  color: var(--warning-800);
}

/* Dark mode override removed */

.badge-error {
  background-color: var(--error-100);
  color: var(--error-800);
}

/* Dark mode override removed */

/* Alert Component */
.alert {
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.alert-error {
  background-color: var(--error-50);
  color: var(--error-800);
  border: 1px solid var(--error-200);
}

/* Dark mode override removed */

.alert-success {
  background-color: var(--success-50);
  color: var(--success-800);
  border: 1px solid var(--success-200);
}

/* Dark mode override removed */

.alert-warning {
  background-color: var(--warning-50);
  color: var(--warning-800);
  border: 1px solid var(--warning-200);
}

/* Dark mode override removed */

.alert-info {
  background-color: var(--primary-50);
  color: var(--primary-800);
  border: 1px solid var(--primary-200);
}

/* Dark mode override removed */

/* Skip to Main Content Link - Accessibility */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-600);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-to-main:focus {
  top: 0;
  outline: 3px solid var(--primary-300);
  outline-offset: 2px;
}

/* Progress Bar */
.progress-bar {
  height: 0.75rem;
  border-radius: 9999px;
  background-color: var(--neutral-200);
  overflow: hidden;
}

/* Dark mode override removed */

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width var(--transition-medium) cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill-primary {
  background-color: var(--primary-500);
}

.progress-fill-success {
  background-color: var(--success-500);
}

.progress-fill-warning {
  background-color: var(--warning-500);
}

.progress-fill-error {
  background-color: var(--error-500);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-xs {
  gap: 0.25rem;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

.gap-xl {
  gap: 2rem;
}

.w-full {
  width: 100%;
}

.max-w-xs {
  max-width: 20rem;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-xs {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-sm {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-md {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-lg {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.my-xl {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.p-xs {
  padding: 0.25rem;
}

.p-sm {
  padding: 0.5rem;
}

.p-md {
  padding: 1rem;
}

.p-lg {
  padding: 1.5rem;
}

.p-xl {
  padding: 2rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.transition-all {
  transition: all var(--transition-fast) cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Ensure grid items are always visible */
.grid>* {
  display: block !important;
}

/* Ensure course cards are always visible */
.course-card {
  display: block !important;
}

/* Special styling for Android Development courses */
.android-course {
  border: 2px solid var(--success-500);
  /* Android green color */
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.android-badge {
  background-color: var(--success-500) !important;
  color: white !important;
}

/* Responsive Utilities */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-center {
    align-items: center;
  }

  .sm\:justify-between {
    justify-content: space-between;
  }

  .sm\:text-left {
    text-align: left;
  }

  .sm\:text-center {
    text-align: center;
  }

  .sm\:text-right {
    text-align: right;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  /* Ensure courses are always visible on desktop */
  .course-card {
    display: block !important;
  }
}

/* Modern Header Styles */
.header {
  background-color: var(--bg-header);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-base);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all var(--transition-medium) ease;
}

/* Modern Footer Styles */
.footer {
  background-color: var(--bg-footer);
  color: var(--text-inverse);
  margin-top: auto;
}

.footer a {
  color: var(--neutral-300);
  transition: color var(--transition-fast) ease;
}

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

/* Theme Toggle Button - Modern Design */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--neutral-200);
  color: var(--text-primary);
  border: 2px solid var(--border-base);
  cursor: pointer;
  transition: all var(--transition-medium) ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* Dark mode override removed */

.theme-toggle:hover {
  background-color: var(--neutral-300);
  transform: rotate(12deg) scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Dark mode override removed */

.theme-toggle:active {
  transform: rotate(0deg) scale(0.95);
  transition: all var(--transition-fast) ease;
}

/* Theme Toggle Icon Animation */
.theme-toggle svg {
  transition: all var(--transition-medium) ease;
  transform-origin: center;
}

.theme-toggle:hover svg {
  transform: scale(1.1);
}

/* Sun and Moon Icons */
#theme-toggle-dark-icon,
#theme-toggle-light-icon {
  transition: all var(--transition-medium) ease;
}

/* When in light mode, show sun icon */
.theme-toggle #theme-toggle-light-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle:hover #theme-toggle-light-icon {
  transform: rotate(15deg);
}

/* When in dark mode, show moon icon */
/* Dark mode overrides removed */

/* Hidden icons */
.theme-toggle #theme-toggle-dark-icon:not(.hidden),
.theme-toggle #theme-toggle-light-icon:not(.hidden) {
  opacity: 1;
}

.theme-toggle #theme-toggle-dark-icon.hidden,
.theme-toggle #theme-toggle-light-icon.hidden {
  opacity: 0;
  position: absolute;
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background-color: var(--neutral-200);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

/* Dark mode override removed */

.mobile-menu-button:hover {
  background-color: var(--neutral-300);
}

/* Dark mode override removed */

/* Navigation Links */
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast) ease;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--neutral-100);
}

/* Dark mode override removed */

.nav-link.active {
  color: var(--primary-600);
  font-weight: 600;
}

/* Dark mode override removed */

/* Course Card Modern Design */
.course-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition-medium) ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.course-card-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.course-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-card-title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.course-card-description {
  color: var(--text-body);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.course-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.course-card-price {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-heading);
}

/* Hero Section */
.hero {

  /* Enhanced Category Chart Styles */
  .category-chart-container {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-card);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .category-chart-container:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
  }

  .category-chart-bars {
    display: flex;
    align-items: flex-end;
    height: 200px;
    gap: 1rem;
    padding: 1rem;
  }

  .category-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
  }

  .category-chart-bar:hover {
    transform: translateY(-5px);
  }

  .category-chart-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
  }

  .category-chart-bar-fill {
    width: 80%;
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
  }

  .category-chart-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Animated ping indicator */
  .animate-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  }

  @keyframes ping {

    75%,
    100% {
      transform: scale(1.5);
      opacity: 0;
    }
  }

  /* Hover effects for chart elements */
  .chart-element:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }

  /* Responsive adjustments for charts */
  @media (max-width: 768px) {
    .category-chart-bars {
      height: 150px;
      gap: 0.5rem;
    }

    .category-chart-value,
    .category-chart-label {
      font-size: 0.625rem;
    }
  }

  /* Chart container styles */
  .chart-container {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-card);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .chart-container:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
  }

  /* Donut chart styles */
  .donut-chart {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .donut-segment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: inset(0);
  }

  .donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  /* Bar chart styles */
  .bar-chart-container {
    display: flex;
    align-items: flex-end;
    height: 200px;
    gap: 1rem;
    padding: 1rem;
  }

  .bar-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
  }

  .bar-chart-bar:hover {
    transform: translateY(-5px);
  }

  .bar-chart-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
  }

  .bar-chart-bar-fill {
    width: 80%;
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
  }

  .bar-chart-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Chart legend styles */
  .chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .legend-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
  }

  .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
  }

  /* Responsive chart adjustments */
  @media (max-width: 768px) {
    .bar-chart-container {
      height: 150px;
      gap: 0.5rem;
    }

    .bar-chart-value,
    .bar-chart-label {
      font-size: 0.625rem;
    }

    .donut-chart {
      width: 150px;
      height: 150px;
    }
  }

  padding: 4rem 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 1rem;
  }
}

.hero-title {
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--text-body);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

/* Features Section */
.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition-medium) ease;
  height: 100%;
}

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

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon-primary {
  background-color: var(--primary-100);
  color: var(--primary-600);
}

/* Dark mode override removed */

.feature-icon-secondary {
  background-color: var(--secondary-100);
  color: var(--secondary-600);
}

/* Dark mode override removed */

.feature-icon-success {
  background-color: var(--success-100);
  color: var(--success-600);
}

/* Dark mode override removed */

.feature-title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--text-body);
}

/* Stats Section */
.stat-card {
  background-color: var(--bg-card, #fff);
  border: 1px solid var(--border-card, #ddd);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow, 0 4px 8px rgba(0, 0, 0, 0.1));
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  /* lift effect */
  box-shadow: var(--shadow-hover, 0 12px 20px rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

.stat-value {
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

/* Dark mode override removed */

.stat-label {
  font-weight: 500;
  color: var(--text-body);
}

/* Footer Styles */
.footer-links h3 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: color var(--transition-fast) ease;
}

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

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--neutral-800);
  color: var(--neutral-400);
  transition: all var(--transition-fast) ease;
  margin-right: 0.5rem;
}

.footer-social a:hover {
  background-color: var(--neutral-700);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-copyright {
  color: var(--neutral-500);
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-top: 1px solid var(--neutral-800);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* Modern Form Styles */
.form-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 42rem;
  margin: 0 auto;
}

.form-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transform: translateX(100%);
  transition: transform var(--transition-medium) ease;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background-color: var(--success-500);
  color: var(--color-white);
}

.notification-error {
  background-color: var(--error-500);
  color: var(--color-white);
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--neutral-200);
  border-top: 3px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--border-divider);
  margin: 1.5rem 0;
}

/* Container */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding-right: 2rem;
    padding-left: 2rem;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Hero Section Enhancements */
.hero {
  position: relative;
  overflow: hidden;
}

/* Blob animation for hero section */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Mix blend mode fix for Firefox */
@-moz-document url-prefix() {
  .mix-blend-multiply {
    mix-blend-mode: normal;
  }
}

/* Trust indicators */
.text-theme-muted {
  color: var(--text-muted);
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Bookmark Button Styles */
.bookmark-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.bookmark-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.bookmark-btn.bookmarked .bookmark-icon {
  fill: currentColor;
  color: #f59e0b;
  /* amber-500 */
}

.bookmark-btn.not-bookmarked .bookmark-icon {
  stroke: currentColor;
  color: #6b7280;
  /* gray-500 */
}

.bookmark-btn-text {
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  transition: all 0.3s ease;
  min-width: 120px;
}

.bookmark-btn-text:hover {
  background: #f9fafb;
}

.bookmark-btn-text.bookmarked {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.bookmark-btn-text.bookmarked:hover {
  background: #fef3c7;
}

/* Bookmarks Filter Button */
#bookmarks-filter.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

#bookmarks-filter.active svg {
  fill: currentColor;
}

/* Offline Sync Styles */
.sync-status-online {
  background-color: #10B981;
  animation: pulse 2s infinite;
}

.sync-status-offline {
  background-color: #F59E0B;
}

.sync-status-syncing {
  background-color: #3B82F6;
  animation: pulse 1s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.offline-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 12px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-notification {
  background: #D1FAE5;
  border: 1px solid #10B981;
}

/* Streak Animation Styles */
.streak-flame {
  animation: flame-flicker 2s ease-in-out infinite alternate;
}

@keyframes flame-flicker {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.9;
  }

  100% {
    transform: scale(1) rotate(-2deg);
    opacity: 1;
  }
}

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

@keyframes streak-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }
}

/* Streak milestone celebrations */
.streak-milestone {
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: white;
  border: none;
  animation: milestone-glow 3s ease-in-out infinite;
}

@keyframes milestone-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  }

  50% {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8), 0 0 40px rgba(220, 38, 38, 0.6);
  }
}

/* Weekly pattern grid */
.learning-day {
  transition: all 0.3s ease;
}

.learning-day.learned {
  background: linear-gradient(135deg, #10b981, #059669);
}

.learning-day.missed {
  background: #e5e7eb;
}

.learning-day.today {
  border: 2px solid #f59e0b;
}

/* Streak card hover effects */
.streak-card:hover .streak-flame {
  animation-duration: 1s;
  transform: scale(1.1);
}

/* Learning Challenges Styles */
.challenge-completion-notification {
  animation: slideInRight 0.5s ease-out;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.confetti-particle {
  pointer-events: none;
  position: fixed;
  z-index: 9999;
}

/* Challenge card animations */
.challenge-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.challenge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.challenge-card:hover::before {
  left: 100%;
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Progress bar animations */
.progress-bar-fill {
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Challenge status styles */
.challenge-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.challenge-status-completed {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.challenge-status-active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.challenge-status-upcoming {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
}

/* Responsive design for challenges */
@media (max-width: 768px) {
  .challenges-header {
    text-align: center;
  }

  .challenges-header .flex {
    flex-direction: column;
    gap: 1rem;
  }

  .challenge-card {
    margin-bottom: 1rem;
  }
}

/* Celebration animations */
@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }

  70% {
    transform: translate3d(0, -15px, 0);
  }

  90% {
    transform: translate3d(0, -4px, 0);
  }
}

.bounce {
  animation: bounce 1s ease infinite;
}

/* Learning Path Visualization Styles */

.learning-path-container {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-node {
  transition: all 0.3s ease;
  position: relative;
}

.course-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-node::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e7eb;
}

.course-node.completed::before {
  background: #10b981;
}

.course-node.in-progress::before {
  background: #3b82f6;
}

.recommendation-card {
  transition: all 0.3s ease;
}

.recommendation-card:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
}

.recommendation-card .enroll-btn {
  transition: all 0.2s ease;
}

.recommendation-card .enroll-btn:hover {
  transform: scale(1.05);
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top: 3px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .learning-path-container .grid {
    grid-template-columns: 1fr;
  }

  .course-node::before {
    left: -20px;
    width: 8px;
    height: 8px;
  }
}

/* Add these styles to the end of styles.css */

/* Print-specific styles */
@media print {

  /* Hide navigation and unnecessary elements */
  header,
  footer,
  .user-actions-desktop,
  .user-actions-mobile,
  .mobile-menu-button,
  #mobile-menu,
  nav:not(.print-nav),
  .theme-toggle,
  .btn:not(.print-btn),
  .video-player,
  .video-container,
  .search-bar,
  .category-filters,
  #sort-options,
  .hero-section,
  .feature-cards,
  .stats-cards,
  .social-sharing,
  .newsletter-section {
    display: none !important;
  }

  /* Reset body for printing */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 20px !important;
  }

  /* Print container */
  .print-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  /* Headings */
  h1,
  h2,
  h3,
  h4 {
    color: black !important;
    page-break-after: avoid !important;
  }

  h1 {
    font-size: 24pt !important;
    margin-bottom: 20px !important;
  }

  h2 {
    font-size: 18pt !important;
    margin: 15px 0 10px 0 !important;
  }

  h3 {
    font-size: 16pt !important;
    margin: 12px 0 8px 0 !important;
  }

  /* Links */
  a {
    color: #0000EE !important;
    text-decoration: underline !important;
  }

  /* Show URLs after links */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  /* Lists */
  ul,
  ol {
    margin: 10px 0 !important;
    padding-left: 30px !important;
  }

  li {
    margin: 5px 0 !important;
    page-break-inside: avoid !important;
  }

  /* Tables */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 15px 0 !important;
    page-break-inside: avoid !important;
  }

  th,
  td {
    border: 1px solid #000 !important;
    padding: 8px !important;
    text-align: left !important;
  }

  th {
    background-color: #f2f2f2 !important;
    font-weight: bold !important;
  }

  /* Page breaks */
  .page-break {
    page-break-before: always !important;
  }

  .avoid-break {
    page-break-inside: avoid !important;
  }

  /* Print header and footer */
  .print-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
    margin-bottom: 25px;
  }

  .print-footer {
    text-align: center;
    border-top: 1px solid #000;
    padding-top: 10px;
    margin-top: 20px;
    font-size: 10pt;
    color: #666;
  }

  /* Progress bars for print */
  .progress-bar-print {
    height: 20px;
    background-color: #f0f0f0;
    border: 1px solid #000;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
  }

  .progress-fill-print {
    height: 100%;
    background-color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10pt;
  }

  /* Certificate preview for print */
  .certificate-preview-print {
    border: 2px solid #000;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
  }

  /* Notes sections */
  .lesson-notes {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 15px 0;
    background-color: #f9f9f9;
    page-break-inside: avoid;
  }

  .notes-timestamp {
    font-size: 10pt;
    color: #666;
    margin-bottom: 10px;
  }
}

/* Screen-only styles for print buttons */
@media screen {
  .print-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 5px;
  }

  .print-btn:hover {
    background-color: #f0f0f0;
  }

  .print-options {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
  }
}

/* Calendar Integration Styles */
.calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: #10b981;
  color: white;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.calendar-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.calendar-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.calendar-btn-outline {
  background: transparent;
  border: 1px solid #6366f1;
  color: #6366f1;
}

.calendar-btn-outline:hover {
  background: #6366f1;
  color: white;
}

.quick-schedule-btn {
  padding: 0.5rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-schedule-btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.calendar-event-item {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #6366f1;
  transition: all 0.2s ease;
}

.calendar-event-item:hover {
  background: #f3f4f6;
  transform: translateX(2px);
}

/* Calendar Modal Styles (already added via JS, but here as backup) */
.calendar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.calendar-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Animation for calendar buttons */
@keyframes pulse-calendar {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

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

/* Responsive styles */
@media (max-width: 640px) {
  .calendar-options-grid {
    grid-template-columns: 1fr !important;
  }

  .quick-schedule-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Learning Journal Styles */
.reflection-card {
  transition: all 0.2s ease;
  border-left: 4px solid #6366f1;
}

.reflection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

/* Contact Page Card Hover Effects */
.contact-card {
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, box-shadow;
  box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.18);
}

.contact-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 55px -18px rgba(15, 23, 42, 0.35),
    0 14px 28px -10px rgba(15, 23, 42, 0.25);
}

/* Smooth transition for contact cards */
.contact-card-interactive {
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: pointer;
}

.contact-card-interactive:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.4),
    0 18px 35px -12px rgba(15, 23, 42, 0.3);
}

.reflection-date {
  color: #6b7280;
  font-size: 0.875rem;
}

.reflection-text {
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Reflection Modal Styles */
#reflection-modal textarea {
  resize: vertical;
  min-height: 150px;
}

#reflection-modal textarea:focus {
  outline: none;
  ring: 2px solid #6366f1;
}

/* Journal Entry Styles */
.journal-entry {
  position: relative;
  padding-left: 1.5rem;
}

.journal-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6366f1;
}

/* Animation for new reflection */
@keyframes highlightReflection {
  0% {
    background-color: rgba(99, 102, 241, 0.1);
  }

  100% {
    background-color: transparent;
  }
}

.highlight-new {
  animation: highlightReflection 2s ease-out;
}