/* Student Dashboard - Premium Responsive CSS */
:root {
    /* Color System */
    --primary: #6366f1;
    --primary-light: #e0e7ff;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #1e293b;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    
    /* Spacing & Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --glass-bg: rgba(255, 255, 255, 0.96);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-effect: blur(16px);
  }
  
  /* Modern Reset & Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--slate-100);
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle at 10% 20%, rgba(224, 231, 255, 0.5) 0%, rgba(241, 245, 249, 1) 90%);
  }
  
  /* Glassmorphism Container */
  .container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-effect);
    -webkit-backdrop-filter: var(--glass-effect);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: var(--glass-border);
    animation: fadeIn 0.6s ease-out;
  }
  
  /* Typography with Gradient Accents */
  h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.025em;
  }
  
  h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
  }
  
  h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2.5rem 0 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
  }
  
  h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
  }
  
  /* Welcome Message */
  .welcome-message {
    font-size: 1.25rem;
    color: var(--slate-500);
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    border-left: 4px solid var(--primary);
  }
  
  /* Premium Alerts with Icons */
  .alert {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 5px solid transparent;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
  }
  
  .alert::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.5rem;
    min-width: 24px;
  }
  
  .alert::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0.05;
    z-index: 0;
  }
  
  .alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left-color: var(--danger);
  }
  
  .alert-danger::before {
    content: '\f06a';
  }
  
  .alert-info {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    border-left-color: var(--primary-dark);
  }
  
  .alert-info::before {
    content: '\f05a';
  }
  
  /* Debug Information */
  .debug-info {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background-color: rgba(30, 41, 59, 0.05);
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
  }
  
  /* Premium Table Design */
  .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
  }
  
  .table thead {
    background: white; /* Changed from gradient to white */
  }
  
  .table th {
    padding: 1.25rem;
    text-align: left;
    color: var(--dark); /* Changed from white to dark text */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--slate-200); /* Added border for separation */
  }
  
  .table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--slate-200);
    vertical-align: middle;
    transition: var(--transition);
  }
  
  .table tbody tr:last-child td {
    border-bottom: none;
  }
  
  .table tbody tr:hover td {
    background-color: rgba(99, 102, 241, 0.03);
  }
  
  /* Status Indicators */
  .status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
    font-size: 0.875rem;
  }
  
  .status-pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
  }
  
  .status-completed {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent);
  }
  
  /* Luxury Buttons with Hover Effects */
  .btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-sm);
  }
  
  .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
  }
  
  .btn:hover::after {
    opacity: 0.1;
  }
  
  .btn-primary {
    background: var(--gradient-primary);
    color: white;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .btn-secondary {
    background-color: white;
    color: var(--slate-500);
    border: 1px solid var(--slate-300);
  }
  
  .btn-secondary:hover {
    background-color: var(--slate-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
  
  /* Enhanced Logout Button */
  .btn-logout {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .btn-logout:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: white;
  }
  
  .btn-logout::before {
    content: '\f2f5'; /* Font Awesome logout icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
  }
  
  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Empty State */
  .empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--slate-500);
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
  }
  
  .empty-state p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .container {
      margin: 1.5rem;
      padding: 2rem;
    }
  }
  
  @media (max-width: 768px) {
    .container {
      margin: 1rem;
      padding: 1.5rem;
    }
    
    h2 {
      font-size: 2rem;
    }
    
    h3 {
      font-size: 1.5rem;
    }
    
    .table {
      display: block;
      overflow-x: auto;
    }
    
    .btn, .btn-logout {
      width: 100%;
      margin-bottom: 0.5rem;
    }
  }
  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--slate-100);
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
  }