/*
 * Dark Theme Stylesheet for Grading System
 * Optimized for Black Background with Glass-morphism Effects
 * Features: Vibrant gradients, glow effects, and comprehensive Tailwind overrides
 */

/* ============================================
   CSS VARIABLES - Color System
   ============================================ */
:root {
  /* Primary Colors */
  --color-bg-primary: #0A0A0A;
  --color-bg-secondary: #1A1A1B;
  --color-bg-tertiary: #252527;

  /* Accent Colors */
  --color-accent-blue: #3B82F6;
  --color-accent-blue-dark: #2563EB;
  --color-accent-blue-light: #60A5FA;

  /* Status Colors */
  --color-success: #10B981;
  --color-success-light: #34D399;
  --color-warning: #F59E0B;
  --color-warning-light: #FBBF24;
  --color-error: #EF4444;
  --color-error-light: #F87171;

  /* Text Colors */
  --color-text-primary: #F5F5F5;
  --color-text-secondary: #A1A1AA;
  --color-text-tertiary: #71717A;

  /* Border & Divider */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.05);

  /* Overlay & Shadow */
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 입력 필드 명시적 활성화 및 가시성 */
input, textarea, select {
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  color: #F5F5F5 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* 입력 필드 포커스 시 */
input:focus, textarea:focus, select:focus {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Placeholder 텍스트 색상 */
input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Select 옵션 색상 */
select option {
  background: #1A1A1B !important;
  color: #F5F5F5 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, #1A1A2E 100%);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--color-accent-blue);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-blue-light);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

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

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

/* ============================================
   GLASS-MORPHISM CARD & BG-WHITE OVERRIDE
   ============================================ */
.card,
.bg-white {
  background: rgba(26, 26, 27, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
  border-color: rgba(59, 130, 246, 0.3) !important;
}

.card-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

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

/* ============================================
   BUTTON CLASSES WITH GRADIENTS & GLOWS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-height: 44px; /* Accessibility: touch target */
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

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

.btn:active {
  transform: scale(0.98);
}

/* Primary Button (Blue) - Tailwind Override */
.btn-primary,
.bg-primary-500,
button.bg-primary-500,
a.bg-primary-500,
.bg-blue-500,
button.bg-blue-500,
a.bg-blue-500 {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
  color: white !important;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  transition: all var(--transition-base) !important;
}

.btn-primary:hover,
.bg-primary-500:hover,
button.bg-primary-500:hover,
a.bg-primary-500:hover,
.bg-blue-500:hover,
button.bg-blue-500:hover,
a.bg-blue-500:hover {
  box-shadow: var(--shadow-lg), 0 0 25px rgba(59, 130, 246, 0.5) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
}

/* Secondary Button */
.btn-secondary {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent-blue);
  border: 1px solid var(--color-accent-blue);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* Success Button (Green) - Tailwind Override */
.btn-success,
.bg-green-500,
button.bg-green-500,
a.bg-green-500 {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: white !important;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  transition: all var(--transition-base) !important;
}

.btn-success:hover,
.bg-green-500:hover,
button.bg-green-500:hover,
a.bg-green-500:hover {
  box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
}

/* Danger Button (Red) - Tailwind Override */
.btn-danger,
.bg-red-500,
button.bg-red-500,
a.bg-red-500 {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  color: white !important;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  transition: all var(--transition-base) !important;
}

.btn-danger:hover,
.bg-red-500:hover,
button.bg-red-500:hover,
a.bg-red-500:hover {
  box-shadow: var(--shadow-lg), 0 0 25px rgba(239, 68, 68, 0.5) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
}

/* Purple Button - Tailwind Override */
.bg-purple-500,
button.bg-purple-500,
a.bg-purple-500 {
  background: linear-gradient(135deg, #A855F7 0%, #9333EA 100%) !important;
  color: white !important;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  transition: all var(--transition-base) !important;
}

.bg-purple-500:hover,
button.bg-purple-500:hover,
a.bg-purple-500:hover {
  box-shadow: var(--shadow-lg), 0 0 25px rgba(168, 85, 247, 0.5) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
}

/* Yellow Button - Tailwind Override */
.bg-yellow-500,
button.bg-yellow-500,
a.bg-yellow-500 {
  background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%) !important;
  color: #1A1A1B !important;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(234, 179, 8, 0.3) !important;
  transition: all var(--transition-base) !important;
}

.bg-yellow-500:hover,
button.bg-yellow-500:hover,
a.bg-yellow-500:hover {
  box-shadow: var(--shadow-lg), 0 0 25px rgba(234, 179, 8, 0.5) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(234, 179, 8, 0.6) !important;
}

/* Orange Button - Tailwind Override */
.bg-orange-500,
button.bg-orange-500,
a.bg-orange-500 {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%) !important;
  color: white !important;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(249, 115, 22, 0.3) !important;
  transition: all var(--transition-base) !important;
}

.bg-orange-500:hover,
button.bg-orange-500:hover,
a.bg-orange-500:hover {
  box-shadow: var(--shadow-lg), 0 0 25px rgba(249, 115, 22, 0.5) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(249, 115, 22, 0.6) !important;
}

/* Gray Button - Tailwind Override */
.bg-gray-500,
button.bg-gray-500,
a.bg-gray-500 {
  background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%) !important;
  color: white !important;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(107, 114, 128, 0.3) !important;
  transition: all var(--transition-base) !important;
}

.bg-gray-500:hover,
button.bg-gray-500:hover,
a.bg-gray-500:hover {
  box-shadow: var(--shadow-lg), 0 0 25px rgba(107, 114, 128, 0.5) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(107, 114, 128, 0.6) !important;
}

/* Outlined Button */
.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-accent-blue);
}

/* ============================================
   TAILWIND TEXT COLOR OVERRIDES
   ============================================ */
.text-gray-900,
.text-gray-800,
.text-gray-700 {
  color: var(--color-text-primary) !important;
}

.text-gray-600,
.text-gray-500 {
  color: var(--color-text-secondary) !important;
}

.text-gray-400,
.text-gray-300 {
  color: var(--color-text-tertiary) !important;
}

.text-gray-200,
.text-gray-100,
.text-gray-50 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.text-blue-600,
.text-blue-500 {
  color: var(--color-accent-blue-light) !important;
}

.text-green-600,
.text-green-500 {
  color: var(--color-success-light) !important;
}

.text-red-600,
.text-red-500 {
  color: var(--color-error-light) !important;
}

.text-yellow-600,
.text-yellow-500 {
  color: var(--color-warning-light) !important;
}

.text-purple-600,
.text-purple-500 {
  color: #C084FC !important;
}

.text-orange-600,
.text-orange-500 {
  color: #FB923C !important;
}

/* ============================================
   TAILWIND BACKGROUND COLOR OVERRIDES
   ============================================ */
.bg-gray-50 {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.bg-gray-100 {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-gray-200 {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.bg-gray-300 {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

.bg-gray-400 {
  background-color: rgba(255, 255, 255, 0.16) !important;
}

.bg-gray-600 {
  background-color: rgba(255, 255, 255, 0.24) !important;
}

.bg-gray-700 {
  background-color: rgba(255, 255, 255, 0.28) !important;
}

.bg-gray-800 {
  background-color: rgba(255, 255, 255, 0.32) !important;
}

.bg-gray-900 {
  background-color: rgba(255, 255, 255, 0.36) !important;
}

/* ============================================
   BADGES WITH SEMI-TRANSPARENT BACKGROUNDS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.badge-success,
.bg-green-100 {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #6EE7B7 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.badge-warning,
.bg-yellow-100 {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.badge-error,
.bg-red-100 {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #FCA5A5 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.badge-info,
.bg-blue-100 {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.bg-purple-100 {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #D8B4FE !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

.bg-orange-100 {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #FDBA74 !important;
  border: 1px solid rgba(249, 115, 22, 0.3) !important;
}

.bg-pink-100 {
  background: rgba(236, 72, 153, 0.15) !important;
  color: #F9A8D4 !important;
  border: 1px solid rgba(236, 72, 153, 0.3) !important;
}

.bg-indigo-100 {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #A5B4FC !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
}

/* Text colors for badges */
.text-green-800,
.text-green-700 {
  color: #6EE7B7 !important;
}

.text-yellow-800,
.text-yellow-700 {
  color: #FCD34D !important;
}

.text-red-800,
.text-red-700 {
  color: #FCA5A5 !important;
}

.text-blue-800,
.text-blue-700 {
  color: #93C5FD !important;
}

.text-purple-800,
.text-purple-700 {
  color: #D8B4FE !important;
}

.text-orange-800,
.text-orange-700 {
  color: #FDBA74 !important;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
  color: var(--color-text-tertiary);
}

/* ============================================
   TABLE WITH DARK BACKGROUND & HOVER EFFECTS
   ============================================ */
.table-container {
  background: rgba(26, 26, 27, 0.6);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: rgba(255, 255, 255, 0.05);
}

.table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.table td {
  padding: 1rem;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
}

.table tbody tr {
  transition: all var(--transition-fast);
  background: transparent;
}

.table tbody tr:hover {
  background: rgba(59, 130, 246, 0.08) !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

/* Alternate row colors */
.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:nth-child(even):hover {
  background: rgba(59, 130, 246, 0.08) !important;
}

/* ============================================
   ALERTS / FLASH MESSAGES
   ============================================ */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  animation: slideInDown 0.3s ease-out;
}

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

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border-left: 4px solid var(--color-success);
  color: var(--color-success-light);
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border-left: 4px solid var(--color-error);
  color: var(--color-error-light);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border-left: 4px solid var(--color-warning);
  color: var(--color-warning-light);
}

.alert-info {
  background: rgba(59, 130, 246, 0.15);
  border-left: 4px solid var(--color-accent-blue);
  color: var(--color-accent-blue-light);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-blue) 0%, var(--color-accent-blue-light) 100%);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

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

.modal {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: var(--spacing-xl);
}

.modal-footer {
  padding: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

/* ============================================
   LOADING STATES
   ============================================ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--color-accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   ADDITIONAL TAILWIND OVERRIDES
   ============================================ */
/* Border colors */
.border-gray-200,
.border-gray-300 {
  border-color: var(--color-border) !important;
}

.border-gray-400,
.border-gray-500 {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Hover states for backgrounds */
.hover\:bg-gray-50:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.hover\:bg-gray-100:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.hover\:bg-blue-50:hover {
  background-color: rgba(59, 130, 246, 0.1) !important;
}

/* Focus states */
.focus\:ring-blue-500:focus {
  --tw-ring-color: rgba(59, 130, 246, 0.5) !important;
}

.focus\:border-blue-500:focus {
  border-color: var(--color-accent-blue) !important;
}

/* Divide colors for lists */
.divide-gray-200 > * + * {
  border-color: var(--color-border-light) !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }

.hidden { display: none; }
.opacity-50 { opacity: 0.5; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 1.5rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .card {
    padding: var(--spacing-lg);
  }
}
