/* Import Google Fonts for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties for Modern Color Palette */
:root {
  /* Primary Colors - Soft Blues */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Neutral Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Accent Colors */
  --accent-500: #6366f1;
  --accent-600: #4f46e5;

  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Layout */
  --max-width: 1200px;
  --border-radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
  color: var(--gray-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 5rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  width: 100%;
  max-width: var(--max-width);
  min-height: 5rem; /* Ensure consistent header height */
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-shrink: 0; /* Prevent brand from shrinking */
  padding: 0.5rem 1rem;
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.logo {
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  padding: 0.25rem;
  margin: 0.125rem 0.25rem 0.125rem 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.logo:hover::before {
  left: 100%;
}

.title {
  margin: 0 0.25rem;
  padding: 0.125rem 0;
  flex-shrink: 0;
}

.title a {
  color: var(--gray-900);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  display: block;
  line-height: 1.2;
  transition: color 0.2s ease;
  position: relative;
}

.title a:hover {
  color: var(--primary-600);
}

.title a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  transition: width 0.3s ease;
}

.title a:hover::after {
  width: 100%;
}

.main-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex-shrink: 0;
  padding: 0 1rem;
  z-index: 10;
}

.nav-link {
  color: var(--gray-600);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.8rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem; /* Ensure consistent link height */
  white-space: nowrap;
  gap: 0.5rem;
}

.nav-link::before {
  content: '';
  width: 16px;
  height: 16px;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-link:hover::before {
  opacity: 1;
}

/* Dashboard icon */
.nav-link:nth-child(1)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Entry icon */
.nav-link:nth-child(2)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* Students icon */
.nav-link:nth-child(3)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

/* Reports icon */
.nav-link:nth-child(4)::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10,9 9,9 8,9'/%3E%3C/svg%3E");
}

.nav-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-100);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--primary-500);
  border-radius: 1px;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--gray-600);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  white-space: nowrap;
  gap: 0.5rem;
}

.dropdown-toggle:hover {
  color: var(--primary-600);
  background: var(--primary-50);
  transform: translateY(-1px);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 200px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0.25rem;
}

.dropdown-item:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  transform: translateX(2px);
}

.dropdown-item svg {
  flex-shrink: 0;
}


/* Main Content Area */
.page {
  padding: 6rem 0 3rem 0;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  background-size: 400% 400%;
  color: white;
  padding: 1rem 0;
  margin: 0.25rem 0 0.25rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: gradientShift 8s ease infinite;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  opacity: 0.6;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: white !important;
  line-height: 1.1;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  color: white;
  line-height: 1.6;
  font-weight: 700;
}

/* Navigation Profile */
.nav-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  position: relative;
}

.nav-profile-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-profile-info:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-profile-avatar svg {
  width: 18px;
  height: 18px;
  color: white;
}

.nav-profile-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.nav-profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.nav-profile-role {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.nav-profile-dropdown {
  position: relative;
}

.nav-profile-toggle {
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-profile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-900);
}

.nav-profile-toggle svg {
  width: 14px;
  height: 14px;
}

.nav-profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 0.5rem;
}

.nav-profile:hover .nav-profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-profile-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0.25rem;
}

.nav-profile-item:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  transform: translateX(2px);
}

.nav-profile-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.nav-profile-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.5rem 0;
}

/* Profile Card Styles */
.profile-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.profile-avatar svg {
  width: 40px;
  height: 40px;
  color: white;
}

.profile-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-info p {
  margin: 0 0 0.5rem 0;
  color: var(--gray-600);
  font-size: 1rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Responsive Profile Section */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem;
  }
}

/* Top Section */
.top-section {
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
  border-bottom: 1px solid var(--gray-200);
}

.top-section .stats-grid {
  grid-column: span 1;
  max-width: 100%;
}

/* Bottom Grid */
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 4rem 3rem 3rem 3rem;
  padding: 3rem 2rem;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Entry Card Modern Styles */
#entry-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;
}

/* Students Card Styles */
#students-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 30px auto;
  padding: 40px;
}

/* QR Button Styles */
#openQrBtn {
  margin-top: -0.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

#entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.03), transparent);
  transition: left 0.8s ease;
}

#entry-card:hover::before {
  left: 100%;
}

#entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card h3,
.card h4 {
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.links-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 10px 10px 10px 10px;
  padding: 10px 10px 10px 10px;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.links-card h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  border-radius: 2px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.5rem 0 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.card-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stats Grid */
.stats-grid {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), var(--shadow-sm);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stats-grid .stat-value {
  color: white !important;
}

.stats-grid:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(0);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Unique gradients for each stat card */
.stat-card:nth-child(1) {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
  color: white;
  border: 1px solid var(--primary-300);
}

.stat-card:nth-child(1) .stat-value,
.stat-card:nth-child(1) h4 {
  color: white;
}

.stat-card:nth-child(1) .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: 1px solid #f59e0b;
}

.stat-card:nth-child(2) .stat-value,
.stat-card:nth-child(2) h4 {
  color: white;
}

.stat-card:nth-child(2) .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 1px solid #10b981;
}

.stat-card:nth-child(3) .stat-value,
.stat-card:nth-child(3) h4 {
  color: white;
}

.stat-card:nth-child(3) .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.stat-card:nth-child(4) {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border: 1px solid #8b5cf6;
}

.stat-card:nth-child(4) .stat-value,
.stat-card:nth-child(4) h4 {
  color: white;
}

.stat-card:nth-child(4) .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  flex-shrink: 0;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, var(--primary-200), var(--primary-300));
}

.stat-card h4 {
  margin: 0;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.75rem 0 0.5rem 0;
  color: white;
  position: relative;
  z-index: 2;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

.btn.secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
  backdrop-filter: blur(8px);
}

.btn.secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
  border-color: var(--gray-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn.ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.btn.ghost:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

.btn.danger {
  background: var(--danger);
  color: white;
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  min-height: 2rem;
}

.btn.danger:hover {
  background: #dc2626;
}

/* Forms and Inputs */
.form-group {
  margin-bottom: 2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Compact Form Styles */
.compact-form .form-row {
  margin-bottom: 1rem;
}

.compact-form .form-row label {
  min-height: 1.25rem;
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.compact-form .form-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.compact-form .form-group .form-row {
  flex: 1;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.compact-form .form-actions {
  margin-top: 1.5rem;
}

.compact-form input,
.compact-form select {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  height: 2.5rem;
  max-width: 150px;
}

.compact-form input[type="date"] {
  max-width: 550px;
}

.form-row label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  padding: 1rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(8px);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
  font-style: italic;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 10;
}

tbody td {
  padding: 0.1rem 0.5rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

tbody tr:hover {
  background: var(--gray-50);
}

.total-row {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary-700);
}

.total-row td {
  border-top: 2px solid var(--primary-200);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  max-height: 350px;
  overflow-y: auto;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  margin: 0;
}

/* Custom scrollbar for activity list */
.activity-list::-webkit-scrollbar {
  width: 6px;
}

.activity-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

.activity-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}


.activity-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
  border-color: var(--primary-200);
  transform: translateX(-2px);
}

/* Shortcuts */
.shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 0.5rem 0;
}

.shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 1.75rem 1.5rem;
  margin: 0.25rem;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(10px);
  font-weight: 600;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shortcut::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.shortcut:hover::before {
  left: 100%;
}

.shortcut:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.shortcut:nth-child(1) {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.shortcut:nth-child(2) {
  background: linear-gradient(135deg, var(--success), #059669);
}

.shortcut:nth-child(3) {
  background: linear-gradient(135deg, var(--warning), #d97706);
}

.shortcut:nth-child(4) {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
}

.shortcut:nth-child(1):hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

.shortcut:nth-child(2):hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.shortcut:nth-child(3):hover {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.shortcut:nth-child(4):hover {
  background: linear-gradient(135deg, var(--accent-600), #4c1d95);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* QR Modal Styles */
.qr-modal .modal-content {
  max-width: 400px;
  text-align: center;
}

.qr-modal #qrDisplay img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 1rem 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: var(--gray-600);
  background: var(--gray-100);
}

/* Loading States */
.loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 5;
  border-radius: var(--border-radius);
}

.loading::after {
  content: '';
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--primary-500);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error Messages */
.error-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--gray-500);
  width: 100%;
  padding: 2rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
}

.error-message button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary-500);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.error-message button:hover {
  background: var(--primary-600);
}

/* Chart Containers */
.card canvas {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  max-height: 400px;
  display: block;
  margin: 1.5rem 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  transition: all 0.3s ease;
}

.card canvas:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Reveal Animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Utility Classes */
.muted {
  color: var(--gray-500);
}

.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .card canvas {
    aspect-ratio: 16 / 10;
    max-height: 300px;
  }

  .top-section {
    padding: 1.5rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.5rem 0;
    /* position: relative; */
  }

  .site-header .container {
    padding: 0 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .brand {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    order: 1;
    flex-shrink: 0;
    margin: 0;
  }

  .main-nav {
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 3rem;
    justify-content: flex-start;
    text-align: left;
    border-radius: 8px;
    margin: 0;
    flex: none;
    min-width: auto;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 3rem;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
    border-radius: 8px;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .nav-profile {
    order: 2;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    padding: 0 0.5rem;
  }

  .brand {
    padding: 0.25rem 0.5rem;
  }

  .logo {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .title a {
    font-size: 1rem;
  }

  .main-nav .nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    min-height: 2.5rem;
  }

  .dropdown-toggle {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    min-height: 2.5rem;
  }

  .menu-toggle {
    right: 0.5rem;
  }

  .brand {
    left: 0.5rem;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
  }

  .stat-card {
    padding: 0.75rem 0.5rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-icon {
    width: 24px;
    height: 24px;
  }

  .stat-icon svg {
    width: 16px;
    height: 16px;
  }

  .card canvas {
    aspect-ratio: 4 / 3;
    max-height: 250px;
  }

  .shortcuts {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
    margin: 0.25rem 0;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .site-header {
    padding: 0.25rem 0;
  }

  .site-header .container {
    padding: 0 0.5rem;
  }

  .brand {
    padding: 0.25rem 0.5rem;
  }

  .logo {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .title a {
    font-size: 1rem;
  }

  .main-nav .nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    min-height: 2.5rem;
  }

  .dropdown-toggle {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    min-height: 2.5rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .card {
    padding: 1rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  table {
    font-size: 0.75rem;
  }

  thead th,
  tbody td {
    padding: 0.75rem;
  }
}

/* Student Form Styles */
#studentForm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 500px;
}

/* Manage Students Page Layout */
.students-page-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.students-form-section {
  display: flex;
  flex-direction: column;
}

.students-list-section {
  display: flex;
  flex-direction: column;
}

/* Top Section Grid for Form and List */
.top-section-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.students-list-section .table-wrap {
  max-height: 270px;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem;
}

/* Manage Students Page Styles */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  border-radius: 2px;
}

.total-students-badge {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 1rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.total-students-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.05));
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.total-students-label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.total-students-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Students Page Background Enhancement */
.page:has(.students-content) {
  background: linear-gradient(135deg, var(--gray-50) 0%, rgba(255, 255, 255, 0.98) 100%);
  min-height: 100vh;
}

/* Student Actions Bar */
.student-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.student-actions .btn svg {
  width: 16px;
  height: 16px;
}

.student-actions::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.02), transparent);
  transition: left 1s ease;
}

.student-actions:hover::before {
  left: 100%;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.875rem;
  width: 200px;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  min-width: 120px;
}

/* Student Statistics - New Modern Design */
.student-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0 3rem 0;
  padding: 0;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 2rem;
  margin: 0.5rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
  min-height: 140px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500), var(--primary-600));
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: rotate 8s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 15px 35px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card:nth-child(1) {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
  color: white;
  border: 1px solid var(--primary-300);
}

.stat-card:nth-child(1) .stat-value,
.stat-card:nth-child(1) h4 {
  color: white;
}

.stat-card:nth-child(1) .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: 1px solid #f59e0b;
}

.stat-card:nth-child(2) .stat-value,
.stat-card:nth-child(2) h4 {
  color: white;
}

.stat-card:nth-child(2) .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: 1px solid #10b981;
}

.stat-card:nth-child(3) .stat-value,
.stat-card:nth-child(3) h4 {
  color: white;
}

.stat-card:nth-child(3) .stat-label {
  color: rgba(255, 255, 255, 0.9);
}


.stat-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.stat-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  z-index: 1;
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.stat-info {
  flex: 1;
  margin-left: 1.5rem;
  text-align: right;
}

.stat-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: relative;
}

.stat-value::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.stat-card:hover .stat-value::after {
  width: 100%;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.stat-trend.up {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.stat-trend.down {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.students-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.form-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 0.7rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  margin: 0px 0;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.02), transparent);
  transition: left 1s ease;
}

.form-card:hover::before {
  left: 100%;
}

.form-card h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#studentForm {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#studentForm .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#studentForm label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#studentForm input {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#studentForm input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

#studentForm input::placeholder {
  color: var(--gray-400);
  font-style: italic;
}

#studentForm .form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.selected-info {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* Enhanced Table Styles for Students */
#studentsTable th:first-child,
#studentsTable td:first-child {
  width: 40px;
  text-align: center;
}

#studentsTable th:first-child input[type="checkbox"],
#studentsTable td:first-child input[type="checkbox"] {
  margin: 0;
}

#studentsTable th:nth-child(2),
#studentsTable td:nth-child(2) {
  width: 80px;
  text-align: center;
}

#studentsTable th:nth-child(3),
#studentsTable td:nth-child(3) {
  min-width: 150px;
}

#studentsTable th:nth-child(4),
#studentsTable td:nth-child(4) {
  width: 120px;
}

#studentsTable th:nth-child(5),
#studentsTable td:nth-child(5) {
  width: 100px;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 10;
}

tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

tbody tr:hover {
  background: var(--gray-50);
}

tbody tr.selected {
  background: rgba(59, 130, 246, 0.1);
}

/* Import/Export Modal */
.import-modal .modal-content {
  max-width: 500px;
}

.import-preview {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin: 1rem 0;
}

.import-preview table {
  font-size: 0.75rem;
}

.import-preview th,
.import-preview td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.page h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
  text-align: center;
}

.page h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
  position: relative;
}

.page h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  border-radius: 1px;
}

#studentForm label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#studentForm input {
  padding: 0.5rem 0.75rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: 2.25rem;
}

#studentForm input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

#studentForm .row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

/* Choices.js Overrides */
.choices__inner {
  padding: 1rem 1.25rem;
  margin: 0.5rem 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(8px);
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
}

.choices__inner:focus-within {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.choices__list--single .choices__item {
  padding: 0.5rem 0;
  color: var(--gray-700);
  font-weight: 500;
}

.choices__list--dropdown {
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0.25rem;
}

.choices__list--dropdown .choices__item {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.choices__list--dropdown .choices__item:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.choices__list--dropdown .choices__item--selectable {
  color: var(--gray-700);
}

.choices__list--dropdown .choices__item--selectable:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

/* Report Page Styles */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.page-header h1 {
  margin: 0;
  flex-shrink: 0;
}

.compact-filters {
  flex: 1;
  max-width: 800px;
  padding: 30px;
}

.filter-row {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 120px;
}

.filter-item label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-item input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: white;
}

.filter-item input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  min-height: 32px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.03), transparent);
  transition: left 0.8s ease;
}

.summary-card:hover::before {
  left: 100%;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.summary-content {
  flex: 1;
}

.summary-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.summary-trend.up {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.summary-trend.down {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.chart-section {
  margin-bottom: 2rem;
}

.chart-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-container h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
}

.chart-container canvas {
  width: 100% !important;
  height: 400px !important;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.data-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.table-actions {
  display: flex;
  gap: 0.75rem;
}

/* Enhanced Table Styles */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Detailed Report Table Scroll */
.data-section .table-wrap {
  max-height: 300px;
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 10;
}

tbody td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background: var(--gray-50);
}

.total-row {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary-700);
}

.total-row td {
  border-top: 2px solid var(--primary-200);
}

/* Print Styles */
@media print {
  .site-header,
  .menu-toggle,
  .btn,
  .modal-backdrop,
  .filters-section,
  .chart-section {
    display: none !important;
  }

  .summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .summary-card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
    page-break-inside: avoid;
  }

  .data-section {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }

  .table-wrap {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }

  body {
    background: white;
  }

  .page {
    padding: 0;
  }

  .container {
    max-width: none;
    padding: 0;
  }
}

/* Responsive Design for Reports */
@media (max-width: 1024px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .compact-filters {
    max-width: none;
  }

  .filter-row {
    justify-content: center;
  }

  .summary-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .chart-container canvas {
    height: 300px !important;
  }
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-item {
    min-width: auto;
  }

  .filter-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .summary-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .summary-icon {
    width: 40px;
    height: 40px;
  }

  .summary-value {
    font-size: 1.5rem;
  }

  .chart-container canvas {
    height: 250px !important;
  }

  .data-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .filter-row {
    gap: 0.75rem;
  }

  .filter-item input {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .btn-sm {
    flex: 1;
    min-width: 80px;
  }
/* Service List Styles */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  transition: left 0.8s ease;
}

.service-item:hover::before {
  left: 100%;
}

.service-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.service-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: inherit;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  z-index: 1;
  position: relative;
}

.service-info {
  flex: 1;
}

.service-info h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.student-count {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.student-count::before {
  content: '👥';
  font-size: 1.25rem;
}

.total-amount {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.total-amount::before {
  content: '💰';
  font-size: 1.5rem;
}

/* Specific service colors */
.service-item:nth-child(1) .service-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.service-item:nth-child(2) .service-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.service-item:nth-child(3) .service-icon {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* Settings Page Styles */
.settings-nav {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.settings-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--gray-600);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-tab:hover {
  color: var(--primary-600);
}

.settings-tab.active {
  color: var(--primary-600);
  border-bottom-color: var(--primary-500);
}

.settings-tab-content {
  display: none;
}

.settings-tab-content.active {
  display: block;
}

.profile-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Enhanced Form Organization */
.settings-form {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.settings-form h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  position: relative;
}

.settings-form h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  border-radius: 2px;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row label::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary-500);
  border-radius: 50%;
  flex-shrink: 0;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 1rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(8px);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.form-row input::placeholder,
.form-row select::placeholder,
.form-row textarea::placeholder {
  color: var(--gray-400);
  font-style: italic;
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.form-actions .btn {
  min-width: 120px;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Form Grid Layouts */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.form-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.form-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .form-grid,
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Helper Text */
.helper-text {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.helper-text::before {
  content: 'ℹ️';
  font-size: 0.875rem;
}

/* Error States */
.form-row.error input,
.form-row.error select,
.form-row.error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.error-message {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.error-message::before {
  content: '⚠️';
  font-size: 0.875rem;
}

/* Success States */
.form-row.success input,
.form-row.success select,
.form-row.success textarea {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Form Sections */
.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-100);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.form-section-icon svg {
  width: 18px;
  height: 18px;
}

.form-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.form-section-description {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0.25rem 0 0 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .profile-forms {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .settings-nav {
    flex-wrap: wrap;
  }

  .settings-tab {
    flex: 1;
    text-align: center;
  }

  .nav-profile-name {
    max-width: 80px;
  }

  .nav-profile-menu {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .nav-profile-name {
    display: none;
  }

  .nav-profile-role {
    display: none;
  }

  .nav-profile-info {
    padding: 0.25rem;
  }
}

/* Settings Page Styles */
.settings-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-radius: 12px 12px 0 0;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-btn:hover {
  color: var(--primary-600);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.03));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.tab-btn.active {
  color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-color: var(--primary-300);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  border-radius: 1px;
}

.tab-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content .card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.tab-content .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.02), transparent);
  transition: left 1s ease;
}

.tab-content .card:hover::before {
  left: 100%;
}

.tab-content .card-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.tab-content .card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content .card-header p {
  color: var(--gray-600);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

.tab-content .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.tab-content .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tab-content .form-group label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.tab-content .form-group input,
.tab-content .form-group select {
  padding: 1rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-content .form-group input:focus,
.tab-content .form-group select:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.tab-content .form-group small {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 0.25rem;
}

.tab-content .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.tab-content .form-actions .btn {
  min-width: 140px;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.tab-content .form-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
  .settings-tabs {
    padding: 1rem 0;
  }

  .tabs-nav {
    gap: 0.25rem;
    padding: 0 1rem;
  }

  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .tab-btn svg {
    width: 18px;
    height: 18px;
  }

  .tab-content .card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .tab-content .card-header h3 {
    font-size: 1.25rem;
  }

  .tab-content .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tab-content .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-content .form-actions .btn {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .tabs-nav {
    padding: 0 0.5rem;
  }

  .tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .tab-btn svg {
    width: 16px;
    height: 16px;
  }

  .tab-content .card {
    padding: 1rem;
  }

  .tab-content .card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .tab-content .card-header h3 {
    font-size: 1.125rem;
  }

  .tab-content .form-group input,
  .tab-content .form-group select {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Profile Section */
.profile-section {
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
  border-bottom: 1px solid var(--gray-200);
}

.profile-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.profile-avatar svg {
  width: 40px;
  height: 40px;
  color: white;
}

.profile-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-info p {
  margin: 0 0 0.5rem 0;
  color: var(--gray-600);
  font-size: 1rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}
