/* Modern Theme for Graduation Ceremony Project */

:root {
  /* Primary Colors - Brighter Navy Blue */
  --primary-50: #f8fafc;
  --primary-100: #f1f5f9;
  --primary-200: #e2e8f0;
  --primary-300: #cbd5e1;
  --primary-400: #94a3b8;
  --primary-500: #475569;
  --primary-600: #334155;
  --primary-700: #1e40af;
  --primary-800: #1e3a8a;
  --primary-900: #172554;

  /* Secondary Colors - Vibrant Teal */
  --secondary-50: #f0fdfa;
  --secondary-100: #ccfbf1;
  --secondary-200: #99f6e4;
  --secondary-300: #5eead4;
  --secondary-400: #2dd4bf;
  --secondary-500: #14b8a6;
  --secondary-600: #0d9488;
  --secondary-700: #0f766e;
  --secondary-800: #115e59;
  --secondary-900: #134e4a;

  /* Neutral Colors */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Semantic Colors */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Background Colors */
  --bg-primary: var(--neutral-50);
  --bg-secondary: var(--white);
  --bg-tertiary: var(--neutral-100);

  /* Text Colors */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-tertiary: var(--neutral-400);

  /* Border Colors */
  --border-light: var(--neutral-200);
  --border-medium: var(--neutral-300);
  --border-dark: var(--neutral-400);

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

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

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Add new color variables */
  --surface-dark: #1a1f36;
  --surface-light: #ffffff;
  --brand-primary: #1e40af;
  --brand-secondary: #3b82f6;
  --text-bright: #ffffff;
  --text-dim: #94a3b8;
  --border-color: #e2e8f0;

  /* Base Variables */
  --color-white: #ffffff;
  --color-black: #000000;

  /* Theme Colors */
  --surface-dark: #1a1f36;
  --surface-light: var(--color-white);
  --brand-primary: #1e40af;
  --brand-secondary: #3b82f6;

  /* Text Colors */
  --text-bright: var(--color-white);
  --text-dim: #94a3b8;
  --text-dark: #1a1f36;

  /* Border & Shadow */
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Transitions */
  --transition: 0.2s ease-in-out;

  --surface-light: #ffffff;
  --surface-dark: #f8f9fa;
  --surface-hover: #f0f0f0;
  --text-dark: #2d3748;
  --border-color: #e2e8f0;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--text-4xl);
}
h2 {
  font-size: var(--text-3xl);
}
h3 {
  font-size: var(--text-2xl);
}
h4 {
  font-size: var(--text-xl);
}
h5 {
  font-size: var(--text-lg);
}
h6 {
  font-size: var(--text-base);
}
.graduation-button-container {
  width: 100%;
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.graduation-apply-btn {
  width: 100%;
  padding: var(--spacing-lg);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  background-color: var(--warning);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.graduation-apply-btn:hover {
  background-color: var(--warning);
  transform: translateY(-2px);
}

.graduation-apply-btn svg {
  transition: transform 0.2s ease;
}

.graduation-apply-btn:hover svg {
  transform: translateX(4px);
}

.graduation-info {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.info-title {
  color: #1a237e;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5em;
}

.info-section {
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.info-section h4 {
  color: #303f9f;
  margin-bottom: 15px;
  border-bottom: 2px solid #303f9f;
  padding-bottom: 5px;
}

.info-section ul {
  list-style-type: none;
  padding-left: 0;
}

.info-section li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.info-section li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #303f9f;
}

.info-section strong {
  color: #1a237e;
}

.info-section-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 16px 0; /* Optional: adds spacing above/below */
  border-radius: 8px; /* Optional: matches card style if you use rounded corners */
  object-fit: contain; /* or 'cover' if you want to crop to fill */
}

@media (max-width: 768px) {
  .graduation-info {
    padding: 10px;
  }

  .info-section {
    padding: 10px;
  }
}

/* Login Page Specific Styles */
.login-page {
  min-height: 100vh;
  background: var(--surface-dark);
  display: grid;
  place-items: center;
  padding: var(--space-md);
}

.login-wrapper {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.login-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--surface-light);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px var(--shadow-color);
}

.login-left {
  padding: var(--space-xl);
}

.login-right {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-bright);
}

.brand-logo {
  width: 200px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Remove or comment out the existing login-header styles */
/*.login-header {
  margin-bottom: var(--spacing-2xl);
}

.login-header h1 {
  color: var(--surface-dark);
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-sm);
}

.login-header p {
  color: var(--text-dim);
}*/

.form-group {
  margin-bottom: var(--space-lg);
}

.form-input-group {
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-dim);
  font-size: var(--text-sm);
  position: static;
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  transition: var(--transition);
  background: transparent;
  font-size: var(--text-sm);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: none;
  font-size: var(--text-sm);
  color: var(--brand-primary);
}

.form-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.forgot-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-normal);
}

.forgot-link:hover {
  color: var(--brand-secondary);
}

.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--brand-primary);
  color: var(--text-bright);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-login:hover {
  background: var(--brand-secondary);
  transform: translateY(-2px);
}

.btn-login svg {
  transition: transform var(--transition-normal);
}

.btn-login:hover svg {
  transform: translateX(4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  gap: var(--spacing-sm);
}

.btn-primary {
  background-color: var(--primary-600);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-700);
}

.btn-secondary {
  background-color: var(--secondary-600);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-700);
}

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

.btn-outline:hover {
  background-color: var(--primary-600);
  color: white;
}

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

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

.form-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  font-size: var(--text-base);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-700);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Form input placeholder styles */
.form-input::placeholder {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

/* Home Page Styles */
.home-container {
  max-width: 1200px;
  margin: var(--spacing-xl) auto;
  padding: var(--spacing-xl);
  animation: fadeIn var(--transition-normal);
}

.personal-info-card {
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-xl);
  animation: slideUp var(--transition-normal);
}

.personal-info-card h2 {
  color: var(--text-primary);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--spacing-lg);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.info-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
}

.info-item label {
  min-width: 100px;
  font-weight: var(--font-medium);
  color: var(--text-secondary);
}

.info-item span {
  color: var(--text-primary);
  font-size: var(--text-base);
  flex: 1;
}

.information-text {
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  animation: slideUp var(--transition-normal);
}

.information-text h2 {
  color: var(--text-primary);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--spacing-lg);
}

.text-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

.text-content p {
  margin-bottom: var(--spacing-lg);
}

/* Responsive adjustments for home page */
@media (max-width: 768px) {
  .home-container {
    padding: var(--spacing-md);
    margin: var(--spacing-md);
  }

  .personal-info-card,
  .information-text {
    padding: var(--spacing-lg);
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .info-item label {
    min-width: auto;
    margin-bottom: var(--spacing-xs);
  }

  .info-item span {
    width: 100%;
    padding-bottom: var(--spacing-sm);
  }
}

/* Cards */
.card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

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

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

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

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

.fade-in {
  animation: fadeIn var(--transition-normal);
}

.slide-up {
  animation: slideUp var(--transition-normal);
}

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

  .login-right {
    display: none;
  }

  .login-left {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .login-left {
    padding: var(--space-md);
  }

  .form-options {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* Utility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.popup {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 5px;
  color: white;
  font-weight: 500;
  transform: translateX(150%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

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

.popup.success {
  background-color: var(--success-color, #28a745);
}

.popup.error {
  background-color: var(--error-color, #dc3545);
}

.popup-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.popup-message {
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.popup-message.success {
  background: #4caf50;
}

.popup-message.error {
  background: #f44336;
}

.popup-message.warning {
  background: #ff9800;
}

.popup-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Admin Page Styles */
.admin-card {
  background: var(--surface-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.admin-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: white;
}

.export-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
}

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

.export-btn i {
  font-size: 1.1em;
}

.admin-table-wrapper {
  padding: var(--spacing-md);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table thead th {
  background-color: var(--surface-dark);
  color: var(--text-dark);
  font-weight: var(--font-bold);
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 2px solid var(--primary);
}

.admin-table tbody tr {
  transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
  background-color: var(--surface-hover);
}

.admin-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .admin-table-wrapper {
    padding: var(--spacing-sm);
  }

  .admin-table thead th,
  .admin-table td {
    padding: var(--spacing-sm);
    font-size: 0.9em;
  }

  .admin-title {
    font-size: var(--text-xl);
  }
}

/* Updated Pagination Styles */
.card-footer {
  background-color: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pagination-info {
  font-size: 14px;
  color: #6c757d;
  padding: 0 15px;
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  margin: 0;
  width: auto;
}

.page-item {
  margin: 0 2px;
  display: inline-block;
}

.page-item:first-child,
.page-item:last-child {
  margin: 0;
}

.page-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  line-height: 1.25;
  color: #007bff;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.page-link:hover {
  z-index: 2;
  color: #0056b3;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* Font Awesome Icons in pagination */
.page-link i {
  font-size: 12px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .card-footer {
    padding: 12px;
  }

  .pagination-info {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }

  .pagination {
    justify-content: center;
    width: 100%;
  }

  .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0.4rem 0.6rem;
  }

  /* Show limited page numbers on mobile */
  .page-item:not(:first-child):not(:last-child):not(.active):not(.disabled) {
    display: none;
  }
}

.pagination .page-item.active {
  display: block;
}

/* Container width styles */
.container-fluid {
  max-width: 1600px; /* or any wider width you prefer */
  margin: 0 auto;
}

@media (max-width: 1700px) {
  .container-fluid {
    max-width: 95%;
  }
}

/* Role Switch Styles */
.role-switch-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.role-switch {
  position: relative;
  width: 300px;
  height: 40px;
  background-color: #f0f0f0; /* Light background */
  border-radius: 20px;
  padding: 3px;
}

.role-switch input[type="radio"] {
  display: none;
}

.role-switch .role-label {
  position: relative;
  z-index: 1;
  width: 50%;
  float: left;
  text-align: center;
  line-height: 34px;
  cursor: pointer;
  color: var(--text-dim); /* Dimmed text for inactive state */
  font-weight: 500;
  transition: color 0.3s ease;
}

.switch-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background-color: var(--brand-primary); /* Your primary brand color */
  border-radius: 17px;
  transition: transform 0.3s ease; /* Changed from left to transform for smoother animation */
}

/* Move slider when admin is selected */
#role-admin:checked ~ .switch-slider {
  transform: translateX(100%); /* Use transform instead of left */
}

/* Active state colors */
#role-student:checked ~ label[for="role-student"],
#role-admin:checked ~ label[for="role-admin"] {
  color: white;
}

/* Hover effect */
.role-label:hover {
  opacity: 0.9;
}

/* Welcome Text Styles */
.welcome-title {
  color: #000; /* Very dark gray, almost black */
  font-weight: 600;
  margin-bottom: 8px;
}

.welcome-subtitle {
  color: #4a4a4a; /* Dark gray for subtitle */
  font-size: 0.95rem;
}

.login-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

/* Add these new styles at the end of your CSS file */
.login-header .welcome-title {
  color: #000000;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.login-header .welcome-subtitle {
  color: #4a4a4a;
  font-size: 1.1rem;
  font-weight: 400;
}

/* Search Box Styles */
.search-box {
  position: relative;
  min-width: 300px;
}

.search-input {
  padding-right: 35px;
  padding-left: 15px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  background-color: white;
  color: #495057;
  width: 100%;
}

.search-input::placeholder {
  color: #6c757d;
  font-size: 14px;
}

.search-input:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: 0;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-header .d-flex {
    flex-direction: column;
    gap: 1rem !important;
  }

  .search-box {
    min-width: 100%;
  }

  .export-btn {
    width: 100%;
  }
}

/* Add or update these styles */
.admin-header .d-flex.gap-3 {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.search-box {
  position: relative;
  min-width: 300px;
  margin-right: 0; /* Remove any margin if present */
}

.export-btn {
  white-space: nowrap; /* Prevent button text from wrapping */
  margin-left: 0; /* Remove any margin if present */
}

/* Update responsive styles */
@media (max-width: 768px) {
  .admin-header .d-flex.gap-3 {
    flex-direction: row !important; /* Force horizontal layout */
    width: 100%;
    gap: 0.5rem !important; /* Smaller gap on mobile */
  }

  .search-box {
    min-width: auto; /* Allow search box to be smaller on mobile */
    flex: 1; /* Let search box take available space */
  }
}

/* Page Limit Dropdown Styles */
.page-limit-dropdown {
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  font-size: 14px;
  line-height: 1.25;
  color: #007bff;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23007bff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-right: 1rem;
}

.page-limit-dropdown:hover {
  border-color: #007bff;
}

.page-limit-dropdown:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Update existing responsive styles */
@media (max-width: 768px) {
  .card-footer .d-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-info {
    margin-bottom: 0;
  }

  .d-flex.align-items-center.gap-2 {
    width: 100%;
    justify-content: center;
  }

  .page-limit-dropdown {
    min-width: 120px;
  }
}

/* Pagination Controls Styles */
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  margin: 0;
  width: auto;
  margin-left: auto; /* Add this to push pagination to the end */
}

.page-item {
  margin: 0 2px;
  display: inline-block;
}

.page-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  line-height: 1.25;
  color: #007bff;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

nav[aria-label="Page navigation"] {
  margin-left: auto;
  display: inline-block;
}

/* Update responsive styles */
@media (max-width: 768px) {
  .pagination-controls {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .pagination {
    margin-left: 0; /* Reset margin on mobile */
  }

  .page-limit-dropdown {
    min-width: 120px;
  }

  nav[aria-label="Page navigation"] {
    margin-left: 0;
  }
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table-wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
}

.editable-field {
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 4px;
  width: 100%;
}

.editable-field:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.editable-field:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  border-color: #ddd;
  color: #666;
}

.info-message {
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.info-message p {
  margin: 0;
  font-size: 0.9rem;
}

.form-input[type="date"] {
  font-family: inherit;
  padding: 0.5rem;
}

.admin-fields,
.student-fields {
  transition: display 0.3s ease;
}

.form-input-group {
  margin-bottom: 1rem;
}

/* Logout Button Styles */
.logout-button-container {
  width: 100%;
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  display: flex;
  justify-content: center;
}

.logout-btn {
  width: 200px;
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--error);
  color: var(--text-bright);
  border: none;
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  letter-spacing: 0.5px;
}

.logout-btn:hover {
  background-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.logout-btn:active {
  transform: translateY(0);
  background-color: #dc3545;
}

@media (max-width: 768px) {
  .logout-btn {
    width: 100%;
    font-size: var(--text-base);
  }
}

/* Important Note Styles */
.important-note {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  animation: fadeIn 0.5s ease-in-out;
}

.note-icon {
  background-color: #ffc107;
  color: #000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  flex-shrink: 0;
}

.note-content h3 {
  color: #856404;
  margin-bottom: var(--spacing-sm);
  font-size: var(--text-lg);
}

.note-content p {
  color: #856404;
  margin: 0;
  line-height: 1.5;
}

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

/* reCAPTCHA Styles */
.g-recaptcha {
  margin: var(--spacing-md) 0;
  display: flex;
  justify-content: center;
}

.g-recaptcha > div {
  transform: scale(0.9);
  transform-origin: 0 0;
}

@media (max-width: 768px) {
  .g-recaptcha > div {
    transform: scale(0.8);
  }
}

.login-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f8f9fa;
  padding: 1rem 0;
  border-top: 1px solid #e9ecef;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.footer-left p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  gap: 1.5rem;
}

.footer-right a {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

.logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background-color: #dc3545;
  color: white;
  transform: translateY(-1px);
}

.logout-btn i {
  font-size: 1rem;
}

/* Toggle Button Styles */
.toggle-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: opacity 0.3s ease;
}

.toggle-button:hover {
  opacity: 0.9;
}

.toggle-button__slider {
  width: 50px;
  height: 26px;
  background-color: #e0e0e0;
  border-radius: 13px;
  position: relative;
  transition: background-color 0.3s ease;
}

.toggle-button__knob {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-button.active .toggle-button__slider {
  background-color: #28a745;
}

.toggle-button.active .toggle-button__knob {
  transform: translateX(24px);
}

.toggle-button.inactive .toggle-button__slider {
  background-color: #dc3545;
}

.toggle-button__text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Animation for state change */
.toggle-button__slider,
.toggle-button__knob {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Disabled state */
.toggle-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  padding-right: 40px;
  min-width: 300px;
}

.search-icon {
  position: absolute;
  right: 110px;
  color: #6c757d;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.search-btn:disabled {
  cursor: not-allowed;
}

.search-btn i {
  font-size: 14px;
}

/* Help Link Text Styles */
.help-link {
  color: var(--primary-600);
  text-decoration: underline;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.help-link:hover {
  color: var(--primary-700);
  text-decoration: underline;
  opacity: 0.8;
}
