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

:root {
  /* Primary Color Palette - Refined and Softer */
  --primary-color: #4A69BD; /* A calm, sophisticated blue */
  --primary-dark: #3B5998;  /* Darker shade for hovers/depth */
  --primary-light: #6F87D0; /* Lighter shade for highlights */
  --primary-rgb: 74, 105, 189; /* For RGBA usage, e.g., box shadows */
  --primary-gradient: linear-gradient(135deg, var(--primary-light), var(--primary-color));

  /* Accent Color - Used sparingly for impact */
  --accent-color: #F5A623;  /* A warm, inviting orange/gold */
  --accent-dark: #D48E1A;
  --accent-light: #F7B850;
  --accent-gradient: linear-gradient(135deg, var(--accent-light), var(--accent-color));

  /* Status Colors - Kept for clarity, but ensure good contrast */
  --success-color: #28A745; /* Greener success */
  --success-dark: #1E7E34;
  --success-light: #52C06A;
  --success-gradient: linear-gradient(135deg, var(--success-light), var(--success-color));
  --warning-color: #FFC107; /* Brighter yellow warning */
  --warning-dark: #D39E00;
  --warning-light: #FFD34F;
  --warning-gradient: linear-gradient(135deg, var(--warning-light), var(--warning-color));
  --danger-color: #DC3545;  /* Clear red for danger */
  --danger-dark: #B02A37;
  --danger-light: #E8606C;
  --danger-gradient: linear-gradient(135deg, var(--danger-light), var(--danger-color));
  --info-color: #17A2B8;    /* Teal for info */
  --info-dark: #117A8B;
  --info-light: #45BACF;
  --info-gradient: linear-gradient(135deg, var(--info-light), var(--info-color));

  /* Neutral Colors - Foundation of the design */
  --dark-color: #343A40;      /* Dark grey for text */
  --dark-color-2: #1e2a36;    /* Darker shade for contrast */
  --medium-gray: #6C757D;   /* Standard grey for secondary text/borders */
  --light-gray: #ADB5BD;    /* Lighter grey for subtle elements */
  --very-light-gray: #E9ECEF;/* Very light for backgrounds/borders */
  --white-color: #FFFFFF;
  --off-white-color: #F8F9FA; /* Subtle off-white for backgrounds */

  /* Background Colors */
  --body-bg: var(--off-white-color);
  --card-bg: var(--white-color);
  --card-bg-alt: var(--off-white-color); /* For alternating or slightly different cards */
  --card-bg-dark: var(--dark-color);

  /* UI Elements */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;
  --border-radius-circle: 50%;
  --border-color: var(--very-light-gray); /* Default border color */

  /* Shadows - Subtle and clean */
  --box-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  --box-shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.1);
  --box-shadow-inset: inset 0 2px 6px rgba(0, 0, 0, 0.08);
  --box-shadow-colored: 0 4px 20px rgba(var(--primary-rgb), 0.15);
  --box-shadow-focus: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25); /* For focus states */

  /* Transitions - Snappier and smooth */
  --transition-fast: all 0.15s ease-out;
  --transition: all 0.2s ease-out;
  --transition-slow: all 0.4s ease-out;

  /* Typography */
  --font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --base-font-size: 16px;
  --line-height-base: 1.6;
  --line-height-heading: 1.3;

  /* Spacing - Consistent rhythm */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem;  /* 8px */
  --spacing-md: 1rem;    /* 16px */
  --spacing-lg: 1.5rem;  /* 24px */
  --spacing-xl: 2rem;    /* 32px */
  --spacing-xxl: 3rem;   /* 48px */

  /* Z-index */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
}

/* Base Styles */
body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--dark-color);
  background-color: var(--body-bg);
  font-size: var(--base-font-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 25% 25%, rgba(74, 105, 189, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(23, 162, 184, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
  font-weight: 600;
  line-height: var(--line-height-heading);
  letter-spacing: -0.01em; /* Subtle tightening */
}

h1 { 
  font-size: 2.25rem; 
  font-weight: 700; 
} /* 36px */

h2 { 
  font-size: 1.875rem; 
  position: relative;
  display: inline-block;
} /* 30px */

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 1.5px;
}

h3 { 
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
} /* 24px */

h4 { font-size: 1.125rem; } /* 18px */

p {
  margin-bottom: var(--spacing-md);
  color: var(--medium-gray); /* Slightly softer paragraph text */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--primary-dark);
}

a.underline-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

a.underline-link:hover::after {
  width: 100%;
}

/* Header */
header {
  background: var(--primary-gradient);
  color: var(--white-color);
  padding: var(--spacing-md) 0; /* Slightly reduced padding */
  box-shadow: var(--box-shadow); /* Softer shadow */
  position: relative;
  z-index: var(--z-index-sticky);
  /* Subtle pattern overlay */
  position: relative;
  overflow: hidden;
}

/* Navigation Menu */
.main-nav {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.main-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 var(--spacing-md);
}

.main-nav a {
  color: var(--white-color);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  display: inline-block;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--white-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.main-nav a:hover {
  color: var(--white-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.main-nav a:hover::after {
  width: 80%;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: -1;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--heading-font);
  font-weight: 700;
  position: relative;
}

.logo-text {
  font-size: 1.5rem; /* Slightly smaller */
  letter-spacing: 0.5px;
  color: var(--white-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-year {
  font-size: 0.9rem; /* Smaller */
  background-color: var(--accent-color);
  color: var(--white-color);
  padding: 0.15rem 0.4rem;
  border-radius: var(--border-radius-sm);
  margin-left: var(--spacing-sm);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.logo-year::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    top: -50%;
    left: -50%;
  }
  100% {
    top: 150%;
    left: 150%;
  }
}

header h1 { /* Assuming this is a site title within the header */
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--heading-font);
  margin-bottom: 0;
  color: var(--white-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: var(--spacing-xl) auto; /* Reduced top/bottom margin slightly */
  padding: 0 var(--spacing-lg);
  position: relative;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--off-white-color);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
  text-align: center; /* Center align footer content */
  position: relative; /* Added for ::before positioning */
  overflow: hidden;
}

footer::before { /* Subtle top border */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo { /* If you have a footer logo */
  font-size: 1.25rem;
  font-family: var(--heading-font);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--white-color);
}

.footer-links {
  display: flex;
  justify-content: center; /* Center links */
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-links a {
  color: var(--light-gray); /* Softer link color in footer */
  text-decoration: none;
  transition: var(--transition);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
}

.footer-links a:hover {
  color: var(--white-color); /* Brighter hover */
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.copyright {
  font-size: 0.875rem;
  color: var(--medium-gray); /* Use medium gray for better contrast */
  opacity: 0.8;
}

/* Flash Messages */
.flash-messages {
  margin-bottom: var(--spacing-lg); /* Reduced margin */
}

.flash-message {
  display: flex;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--box-shadow-sm);
  animation: slideIn 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.flash-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.flash-message svg {
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
  width: 20px; height: 20px; /* Consistent icon size */
}

.flash-message.success {
  background-color: rgba(40, 167, 69, 0.15);
  color: var(--success-dark);
}

.flash-message.success::before {
  background-color: var(--success-color);
}

.flash-message.error {
  background-color: rgba(220, 53, 69, 0.15);
  color: var(--danger-dark);
}

.flash-message.error::before {
  background-color: var(--danger-color);
}

.flash-message.warning {
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--warning-dark);
}

.flash-message.warning::before {
  background-color: var(--warning-color);
}

.flash-message.info {
  background-color: rgba(23, 162, 184, 0.15);
  color: var(--info-dark);
}

.flash-message.info::before {
  background-color: var(--info-color);
}

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

/* Page Header */
.page-header {
  position: relative;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  padding-bottom: var(--spacing-md);
}

.page-header h2 {
  display: inline-block;
  position: relative;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.page-header h2::after {
  content: none;
}

.header-decoration {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Container Styles */
.competition-container, .admin-container { /* Common styling for main content blocks */
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-xl); /* Slightly reduced padding */
  margin-bottom: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.competition-container::before, .admin-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

/* Form Styles */
.registration-container {
  max-width: 800px; /* Slightly narrower for better readability */
  margin: 0 auto;
}

.form-section {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.form-section:last-child { 
  border-bottom: none; 
  margin-bottom: 0; 
  padding-bottom: 0; 
}

.form-section h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
  display: inline-block;
  position: relative;
}

.form-section h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 1.5px;
}

.form-group {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  color: var(--dark-color); /* Stronger label color */
  transition: var(--transition);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md); /* Adjusted padding */
  border: 2px solid var(--border-color); /* Thinner border */
  border-radius: var(--border-radius);
  font-size: 0.9375rem; /* 15px */
  font-family: var(--font-family);
  transition: var(--transition);
  background-color: var(--white-color);
  box-shadow: var(--box-shadow-sm);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow-colored);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

small {
  display: block;
  margin-top: var(--spacing-sm);
  color: var(--medium-gray);
  font-size: 0.8125rem; /* 13px */
}

.radio-group {
  margin: var(--spacing-xs) 0;
  display: flex;
  align-items: center;
}

.radio-group input[type="radio"] {
  margin-right: var(--spacing-sm);
  accent-color: var(--primary-color); /* Modern way to color radios */
  width: 18px;
  height: 18px;
}

.competition-selection {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.competition-selection .radio-group {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 2px solid transparent;
}

.competition-selection .radio-group:hover {
  background-color: rgba(74, 105, 189, 0.05);
}

.competition-selection .radio-group input[type="radio"]:checked + label {
  color: var(--primary-dark); /* Darker color for selected */
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  justify-content: center;
}

/* Button Styles - Key focus for hover states */
button,
.btn { /* Generic button class */
  padding: var(--spacing-sm) var(--spacing-lg); /* Balanced padding */
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-family: var(--font-family); /* Ensure font consistency */
  text-decoration: none; /* Remove underline from button-like links */
  line-height: 1.5; /* Ensure text is vertically centered */
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--box-shadow-sm);
}

button::before,
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
  transform: translateX(-100%);
  transition: var(--transition);
  z-index: -1;
}

button:hover::before,
.btn:hover::before {
  transform: translateX(0);
}

button:hover,
.btn:hover {
  transform: translateY(-2px); /* More subtle hover lift */
  box-shadow: var(--box-shadow);
}

button:active,
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Primary Button */
.btn-primary, .btn-submit {
  background: var(--primary-gradient);
  color: var(--white-color);
  min-width: 180px;
  border: 2px solid transparent;
}

.btn-primary:hover, .btn-submit:hover {
  background: var(--primary-gradient);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white-color); /* Ensure text color remains contrasted */
}

/* Secondary/Outline Button */
.btn-secondary, .btn-action {
  background-color: var(--white-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover, .btn-action:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

/* Danger Button */
.btn-danger, .btn-reset {
  background: var(--danger-gradient);
  color: var(--white-color);
  border: 2px solid transparent;
}

.btn-danger:hover, .btn-reset:hover {
  background: var(--danger-gradient);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
}

/* Ghost/Subtle Button */
.btn-ghost {
  background-color: transparent;
  color: var(--primary-color);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--very-light-gray); /* Subtle background on hover */
  color: var(--primary-dark);
  box-shadow: none; /* Usually no shadow for ghost buttons */
}

/* Smaller action buttons (View, Edit, Delete) */
.btn-view, .btn-edit, .btn-delete {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.8125rem; /* 13px */
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
}

.btn-view {
  background-color: var(--info-color);
  color: var(--white-color);
}

.btn-view:hover {
  background-color: var(--info-dark);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
}

.btn-edit {
  background-color: var(--warning-color);
  color: var(--dark-color); /* Better contrast with yellow */
  border-color: var(--warning-color);
}

.btn-edit:hover {
  background-color: var(--warning-dark);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--dark-color);
}

.btn-delete {
  background-color: var(--danger-color);
  color: var(--white-color);
}

.btn-delete:hover {
  background-color: var(--danger-dark);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
}

/* Home button if styled differently */
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--primary-gradient);
  color: var(--white-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--box-shadow-sm);
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
  color: var(--white-color);
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Button for lookup access */
.btn-lookup {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--accent-gradient);
  color: var(--white-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--box-shadow-sm);
}

.btn-lookup:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
  color: var(--white-color);
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Registration info box */
.registration-info {
  background-color: rgba(23, 162, 184, 0.1);
  border-left: 4px solid var(--info-color);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
}

.registration-info p {
  color: var(--dark-color);
  margin-bottom: 0;
  font-weight: 500;
}

.registration-info a {
  color: var(--primary-color);
  font-weight: 600;
}

.registration-info a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Student Info */
.student-info {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background-color: var(--card-bg-alt);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
  position: relative;
  overflow: hidden;
}

.student-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
}

.student-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-circle);
  background: var(--primary-gradient);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: var(--spacing-lg);
  flex-shrink: 0;
  box-shadow: var(--box-shadow-sm);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.student-details {
  flex-grow: 1;
}

.student-details h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.125rem;
  color: var(--dark-color);
}

.info-label { /* Re-using label style */
  font-weight: 600;
  color: var(--medium-gray);
  margin-right: var(--spacing-xs);
}

/* Quiz Styles (General structure, detailed styling for questions/options) */
.quiz-instructions {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background-color: var(--card-bg-alt);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
  position: relative;
  overflow: hidden;
}

.quiz-instructions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--info-gradient);
}

.instructions-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
  color: var(--info-dark); /* Darker for better contrast */
  font-weight: 600;
}

.instructions-header svg { 
  margin-right: var(--spacing-sm); 
}

.quiz-instructions ul { 
  padding-left: var(--spacing-xl);
}

.quiz-instructions li { 
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.quiz-instructions li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--info-color);
}

.quiz-start {
  text-align: center;
  margin: var(--spacing-xxl) 0;
}

#start-quiz { /* This is a primary action button */
  background: var(--primary-gradient);
  color: var(--white-color);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--box-shadow);
}

#start-quiz:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-timer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white-color);
  padding: var(--spacing-md) var(--spacing-lg);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid var(--accent-color);
}

.timer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  font-size: 1.2rem;
  font-weight: 600;
}

.quiz-timer svg {
  width: 24px;
  height: 24px;
  stroke: var(--white-color);
  stroke-width: 2.5;
}

.timer-label {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.timer-display {
  font-family: 'Courier New', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  min-width: 100px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timer-display.time-critical {
  color: var(--danger-color);
  background: rgba(220, 53, 69, 0.15);
  border-color: var(--danger-color);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Add padding to the quiz content to account for fixed timer */
#quiz-content {
  padding-top: 70px;
}

.questions-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.quiz-question {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  margin-bottom: var(--spacing-lg); /* Spacing between questions */
}

.quiz-question:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
  border-color: var(--primary-light);
}

.question-number {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--primary-gradient);
  color: var(--white-color);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--box-shadow-sm);
}

.question-text {
  font-size: 1.05rem; /* Slightly larger */
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
  line-height: 1.5;
  color: var(--dark-color);
}

.question-options { 
  display: flex; 
  flex-direction: column; 
  gap: var(--spacing-md);
}

.option {
  position: relative;
}

.option input[type="radio"] { 
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option label { /* Reusing label styles from forms and enhancing */
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background-color: var(--white-color);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  margin: 0; /* Override default label margin */
  font-weight: 400; /* Normal weight for options */
}

.option label:hover {
  background-color: rgba(74, 105, 189, 0.05);
  border-color: var(--primary-light);
}

.option input[type="radio"]:checked + label {
  background-color: rgba(74, 105, 189, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-dark);
  font-weight: 500;
}

.option-letter { /* Custom radio button appearance */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--light-gray);
  color: var(--dark-color);
  border-radius: var(--border-radius-circle);
  margin-right: var(--spacing-md);
  font-weight: 600;
  transition: var(--transition);
}

.option input[type="radio"]:checked + label .option-letter {
  background: var(--primary-gradient);
  color: var(--white-color);
}

.option input[type="radio"]:focus-visible + label { /* Accessibility focus */
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.quiz-submit {
  text-align: center;
  margin-top: var(--spacing-xxl);
}

.no-questions {
  text-align: center;
  padding: var(--spacing-xxl) var(--spacing-lg);
  background-color: var(--off-white-color);
  border-radius: var(--border-radius);
  color: var(--medium-gray);
}

.no-questions svg {
  color: var(--medium-gray);
  margin-bottom: var(--spacing-md);
}

/* Admin Table Styles */
.admin-table-container {
  overflow-x: auto;
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse; /* Important for styling */
}

.admin-table thead {
  background: var(--primary-gradient);
  color: var(--white-color);
}

.admin-table th, .admin-table td {
  padding: var(--spacing-md);
  text-align: left;
  vertical-align: middle; /* Align content nicely */
}

.admin-table th {
  font-weight: 600;
}

.admin-table tbody tr {
  background-color: var(--white-color);
  transition: var(--transition-fast);
  border-top: 1px solid var(--border-color);
}

.admin-table tbody tr:nth-child(even) {
  background-color: var(--off-white-color); /* Subtle striping */
}

.admin-table tbody tr:hover {
  background-color: rgba(74, 105, 189, 0.05);
}

.action-buttons { 
  display: flex; 
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

/* Accordion */
.guidelines-accordion {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--white-color);
}

.accordion-item:last-child { 
  border-bottom: none; 
}

.accordion-header {
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--off-white-color);
  font-weight: 500;
}

.accordion-header:hover {
  background-color: rgba(74, 105, 189, 0.05);
  color: var(--primary-dark);
}

.accordion-header.active { /* Style for active header */
  background-color: rgba(74, 105, 189, 0.1);
  color: var(--primary-dark);
}

.accordion-header h4 { 
  margin: 0; 
  font-size: 1.1rem; 
}

.accordion-header svg { 
  transition: var(--transition-fast); 
}

.accordion-header svg.rotate { 
  transform: rotate(180deg); 
}

.accordion-content {
  padding: 0 var(--spacing-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease; /* Smooth transition */
  background-color: var(--white-color);
}

.accordion-content.open { /* Class to open content */
  padding: var(--spacing-lg);
  /* max-height will be set by JS */
}

.accordion-content ul { 
  padding-left: var(--spacing-lg); 
  margin: var(--spacing-md) 0; 
}

.accordion-content li { 
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.accordion-content li::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* Custom Scrollbar - Subtle styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--very-light-gray);
  border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Stat Card */
.stat-card {
  background: var(--white-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0.8;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.stat-card h3 {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin: var(--spacing-md) 0;
  font-weight: 500;
  position: relative;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--heading-font);
  margin: var(--spacing-sm) 0;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-icon {
  margin-bottom: var(--spacing-md);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.2));
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
  background: var(--primary-gradient);
  color: white;
}

.stat-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

/* File Upload */
.file-upload-container {
  position: relative;
  margin-bottom: var(--spacing-sm);
}

.file-upload-container input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--off-white-color);
  color: var(--dark-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  border: 2px solid var(--border-color);
}

.file-upload-label:hover {
  background-color: rgba(74, 105, 189, 0.1);
  color: var(--primary-color);
  border-color: var(--primary-light);
}

.file-upload-label svg { 
  margin-right: var(--spacing-sm); 
}

#file-selected {
  display: inline-block;
  margin-left: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--medium-gray);
}

.word-counter {
  text-align: right;
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-top: var(--spacing-sm);
}

.word-counter.limit-exceeded {
  color: var(--danger-color);
  font-weight: 500;
}

/* Admin Styles */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.admin-header h2 {
  margin-bottom: 0;
}

.admin-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.admin-quick-actions {
  margin-bottom: var(--spacing-xl);
}

.admin-quick-actions h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.admin-quick-actions h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 1.5px;
}

.quick-action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}






/* No Data Message */
.no-data {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  background-color: var(--off-white-color);
  border-radius: var(--border-radius);
  color: var(--medium-gray);
  margin: var(--spacing-lg) 0;
}

/* Student Detail Card */
.student-detail-card {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.student-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  background: var(--primary-gradient);
  color: var(--white-color);
}

.student-header h3 {
  margin-bottom: 0;
  color: var(--white-color);
}

.student-photo {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--off-white-color);
}

.student-photo img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.info-item {
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

.info-value {
  font-weight: 500;
}

.student-quiz-section,
.student-project-section {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.student-quiz-section h4,
.student-project-section h4 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

/* Quiz Results */
.correct {
  color: var(--success-color);
  font-weight: 600;
}

.incorrect {
  color: var(--danger-color);
  font-weight: 600;
}

/* Quiz Results Styles */
.results-summary {
  text-align: center;
  margin: var(--spacing-xl) 0;
}

.score-display {
  display: flex;
  justify-content: center;
  margin: var(--spacing-xxl) 0;
}

.score-circle-container {
  width: 200px;
  height: 200px;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: var(--light-gray);
  stroke-width: 3;
}

.circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  animation: progress 1.5s ease-out forwards;
}

.excellent .circle {
  stroke: var(--success-color);
}

.good .circle {
  stroke: var(--primary-color);
}

.average .circle {
  stroke: var(--warning-color);
}

.poor .circle {
  stroke: var(--danger-color);
}

.percentage {
  fill: var(--dark-color);
  font-family: var(--heading-font);
  font-size: 0.5em;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.score-text {
  fill: var(--medium-gray);
  font-family: var(--font-family);
  font-size: 0.25em;
  text-anchor: middle;
  dominant-baseline: middle;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}

.score-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg);
  background-color: var(--off-white-color);
  border-radius: var(--border-radius);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--box-shadow-sm);
}

.message-icon {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-icon.excellent {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.message-icon.good {
  background-color: rgba(74, 105, 189, 0.1);
  color: var(--primary-color);
}

.message-icon.average {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--warning-color);
}

.message-icon.poor {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
}

.results-actions {
  text-align: center;
  margin-top: var(--spacing-xxl);
}

/* Submission Styles */
.submission-item {
  background-color: var(--off-white-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.submission-item h5 {
  margin-bottom: var(--spacing-xs);
}

.submission-date {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-bottom: var(--spacing-sm);
}

.submission-description {
  margin-bottom: var(--spacing-md);
}

.submission-files h6 {
  margin-bottom: var(--spacing-xs);
}

/* Project Submission */
.project-submission {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--box-shadow);
  margin-top: var(--spacing-xxl);
}

.submission-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-md);
}

.submission-header svg {
  margin-right: var(--spacing-sm);
}

/* Submissions List */
.submissions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.submission-card {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.submission-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.submission-header {
  padding: var(--spacing-md);
  background: var(--primary-gradient);
  color: var(--white-color);
}

.submission-header h3 {
  margin-bottom: 0;
  color: var(--white-color);
}

.submission-student {
  padding: var(--spacing-md);
  background-color: var(--off-white-color);
  border-bottom: 1px solid var(--border-color);
}

.submission-content {
  padding: var(--spacing-md);
}

.submission-content h4 {
  margin-bottom: var(--spacing-xs);
  font-size: 1rem;
}

/* Submission Confirmation */
.submission-confirmation {
  text-align: center;
  padding: var(--spacing-xl);
  background-color: var(--off-white-color);
  border-radius: var(--border-radius);
  margin: var(--spacing-xl) 0;
  box-shadow: var(--box-shadow-sm);
}

.success-icon {
  color: var(--success-color);
  margin-bottom: var(--spacing-lg);
}

.submission-details {
  margin: var(--spacing-xl) 0;
  text-align: left;
  background-color: var(--white-color);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
}

.submission-details h4 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-xs);
}

.detail-item {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
}

.detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-label {
  font-weight: 600;
  width: 150px;
  color: var(--dark-color);
}

.detail-value {
  flex: 1;
}

.file-list {
  list-style: none;
  padding: 0;
}

.file-list li {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.file-list svg {
  margin-right: var(--spacing-sm);
  color: var(--medium-gray);
}

/* Section Stats */
.section-stats {
  margin-bottom: var(--spacing-xl);
}

.section-stats h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.section-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-md);
}

.section-stat-card {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  border: 2px solid var(--border-color);
}

.section-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.section-stat-card.complete {
  border-color: var(--success-color);
}

.section-stat-card.partial {
  border-color: var(--warning-color);
}

.section-stat-card.empty {
  border-color: var(--danger-color);
}

.section-stat-card h4 {
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.section-count {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.count-number {
  color: var(--primary-color);
}

.count-target {
  color: var(--medium-gray);
  font-size: 1rem;
}

.section-progress {
  height: 6px;
  background-color: var(--light-gray);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.section-info {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--off-white-color);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--info-color);
}

.section-info p {
  margin-bottom: var(--spacing-xs);
}

/* Question Form */
.question-form-container {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--box-shadow);
  margin-bottom: var(--spacing-xl);
}

.question-form-container h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-sm);
}

.filter-controls {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.options-list {
  list-style: none;
  padding: 0;
}

.options-list li {
  margin-bottom: var(--spacing-xs);
}

/* Admin Login */
.admin-login-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.admin-login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.admin-login-container h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* Thank You Page */
.thank-you-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.success-message {
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
}

.success-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--success-gradient);
}

.competition-info {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
}

.competition-link {
  display: inline-block;
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--primary-gradient);
  color: var(--white-color);
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--box-shadow-sm);
}

.competition-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
}

.registration-summary {
  margin: var(--spacing-xl) 0;
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.registration-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.registration-summary h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-xs);
}

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

.registration-summary th {
  text-align: left;
  padding: var(--spacing-sm);
  color: var(--dark-color);
  font-weight: 600;
  width: 30%;
}

.registration-summary td {
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

.registration-summary tr:last-child td {
  border-bottom: none;
}

.next-steps {
  background-color: rgba(74, 105, 189, 0.05);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.next-steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
}

.next-steps h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.next-steps ul {
  padding-left: var(--spacing-lg);
}

.next-steps li {
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.next-steps li::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* Exhibition Guidelines */
.exhibition-guidelines {
  margin-bottom: var(--spacing-xxl);
}

.guidelines-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
}

.guidelines-header svg {
  margin-right: var(--spacing-sm);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .header-container,
  main,
  .footer-container {
    padding: 0 var(--spacing-lg);
  }
}

@media (max-width: 992px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .submissions-list {
    grid-template-columns: 1fr;
  }

  .student-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: var(--spacing-md); /* Consistent with header padding */
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: var(--spacing-md);
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  button, .btn { /* Ensure buttons stack well */
    width: 100%;
  }
  
  .action-buttons button, .action-buttons .btn {
    width: auto; /* Table action buttons shouldn't be full width on mobile unless desired */
  }
  
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-actions {
    margin-top: var(--spacing-md);
    width: 100%;
    justify-content: flex-start;
  }
  
  .admin-stats {
    grid-template-columns: 1fr;
  }
  
  .student-info {
    flex-direction: column;
    text-align: center;
  }
  
  .student-avatar {
    margin: 0 auto var(--spacing-md);
  }
  
  .section-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .competition-container, .admin-container {
    padding: var(--spacing-lg);
  }
  
  .section-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-label {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }
  
  .admin-table th,
  .admin-table td {
    padding: var(--spacing-sm);
  }
  
  .action-buttons {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .btn-view,
  .btn-edit,
  .btn-delete {
    width: 100%;
    text-align: center;
  }
}

/* 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 0.5s ease-in-out;
}

.slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

/* Page Loader Spinner */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.loader-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.2);
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.loader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-dark);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.text-animation {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color), var(--primary-light), var(--primary-color), var(--primary-dark));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 2s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.dots {
    display: inline-flex;
}

.dot {
    opacity: 0;
    animation: dot-fade 1.5s infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.5s;
}

.dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes dot-fade {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.loader-subtext {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--medium-gray);
    opacity: 0;
    animation: fade-in-out 3s ease-in-out infinite;
}

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.fancy-loader {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    position: relative;
    transform: rotateZ(45deg);
    z-index: 1;
}

.fancy-loader .cube1,
.fancy-loader .cube2,
.fancy-loader .cube3,
.fancy-loader .cube4 {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    transform: scale(1.1);
}

.fancy-loader .cube1:before,
.fancy-loader .cube2:before,
.fancy-loader .cube3:before,
.fancy-loader .cube4:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    animation: fancy-loader-fold 2.4s infinite linear both;
    transform-origin: 100% 100%;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.fancy-loader .cube2 {
    transform: scale(1.1) rotateZ(90deg);
}
.fancy-loader .cube3 {
    transform: scale(1.1) rotateZ(270deg);
}
.fancy-loader .cube4 {
    transform: scale(1.1) rotateZ(180deg);
}

.fancy-loader .cube2:before {
    animation-delay: 0.3s;
    background-color: rgba(var(--primary-rgb), 0.85);
}
.fancy-loader .cube3:before {
    animation-delay: 0.9s;
    background-color: rgba(var(--primary-rgb), 0.85);
}
.fancy-loader .cube4:before {
    animation-delay: 0.6s;
    background-color: rgba(var(--primary-rgb), 0.85);
}

@keyframes fancy-loader-fold {
    0%, 10% {
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }
    25%, 75% {
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }
    90%, 100% {
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

/* URL display for lookup results */
.url-display {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px;
  margin-top: 8px;
  word-break: break-all;
  font-family: monospace;
  font-size: 0.9rem;
}

.url-display a {
  color: var(--primary-color);
  text-decoration: none;
  display: block;
  width: 100%;
}

.url-display a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Competition Badges - Enhanced Styling */
.competition-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.competition-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.competition-badge.quiz {
    background: linear-gradient(135deg, #e8fef6 0%, #d4f8e8 100%);
    color: #0d8a4c;
    border: 1px solid #b7e6d1;
}

.competition-badge.exhibition {
    background: linear-gradient(135deg, #fff8e6 0%, #ffefc3 100%);
    color: #b07d0f;
    border: 1px solid #f5dea3;
}

.competition-badge.both {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4f7 100%);
    color: #2c4c8c;
    border: 1px solid #b7cce6;
}

/* Quiz Page Redesign */
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.quiz-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

#timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Sticky Timer Bar for Quiz */
#sticky-timer-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: var(--z-index-sticky);
    padding: 0.75rem 1rem;
    animation: slideDown 0.3s ease-out;
}

.sticky-timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 600;
}

#sticky-timer-bar .timer-icon {
    font-size: 1.3rem;
    margin-right: 0.5rem;
    animation: bounce 2s infinite;
}

#sticky-timer-bar .timer-display {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #90caf9;
}

#sticky-timer-bar #timer {
    color: #d32f2f;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
}

#sticky-timer-bar .time-up-message {
    margin-left: 1rem;
    margin-top: 0;
    color: #d32f2f;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Add top padding to quiz content when sticky timer is present */
.quiz-container:has(#sticky-timer-bar) {
    padding-top: 4rem;
}

/* Fallback for browsers that don't support :has() */
.quiz-container.has-sticky-timer {
    padding-top: 4rem;
}

.timer-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.timer-display {
    background: linear-gradient(135deg, #f6f8fa 0%, #e9ecef 100%);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#timer {
    color: #e74c3c;
    font-family: monospace;
    font-size: 1.3rem;
}

.quiz-instructions {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #4b7bec;
}

.quiz-instructions h3 {
    margin-top: 0;
    color: #2c3e50;
}

.quiz-instructions ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.quiz-instructions li {
    margin-bottom: 0.5rem;
    color: #505a66;
}

.quiz-instructions li.warning {
    color: #e74c3c;
    font-weight: bold;
    border-left: 3px solid #e74c3c;
    padding-left: 10px;
    margin-left: -13px;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.question-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    position: relative;
}

.question-number {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #4b7bec;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(75, 123, 236, 0.3);
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    color: #2c3e50;
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #eaeaea;
}

.option-label:hover {
    background-color: #f8f9fa;
}

.option-label input[type="radio"] {
    margin-top: 0.3rem;
    margin-right: 0.8rem;
    transform: scale(1.2);
}

.option-text {
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #e9ecef;
    border-radius: 50%;
    margin-right: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.option-label:has(input:checked) {
    background-color: #e3f2fd;
    border-color: #90caf9;
}

.option-label:has(input:checked) .option-letter {
    background-color: #4b7bec;
    color: white;
}

.form-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.btn-submit {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4b7bec 0%, #3867d6 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(59, 103, 214, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 103, 214, 0.4);
}

.btn-submit:active {
    transform: translateY(1px);
}

.time-up-message {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}


/* Admin Settings Styles */
.admin-settings-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
}

.admin-settings-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
}

.admin-settings-section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: #4b7bec;
    margin-top: 8px;
}

.settings-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.setting-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.no-questions-message {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.no-questions-message h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-questions-message p {
    color: #505a66;
    margin-bottom: 2rem;
}

/* Thank You Page Redesign */
.thank-you-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
}

.thank-you-header .success-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #2ecc71;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.thank-you-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.thank-you-header p {
    font-size: 1.1rem;
    color: #505a66;
}

.access-links-container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.access-links-container h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.access-links-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: #505a66;
}

.competition-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.competition-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eaeaea;
    transition: all 0.2s ease;
}

.competition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.competition-card p {
    flex-grow: 1;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: #505a66;
}

.competition-card .btn-action {
    background: linear-gradient(135deg, #4b7bec 0%, #3867d6 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.lookup-reminder {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 8px;
    color: #6d4c41;
}

.lookup-reminder a {
    color: #4b7bec;
    font-weight: bold;
}

.thank-you-container .btn-home {
    display: inline-block;
    background-color: #34495e;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.thank-you-container .action-buttons {
    text-align: center;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: var(--z-index-modal);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  background-color: var(--card-bg);
  margin: 10% auto;
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  width: 90%;
  max-width: 500px;
  animation: slideUp 0.4s ease-out;
}

.modal-content h3 {
  color: var(--dark-color);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

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

.close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  color: var(--medium-gray);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.close:hover {
  color: var(--dark-color);
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.error-message {
  color: var(--danger-color);
  font-size: 0.9rem;
  margin-top: var(--spacing-xs);
  animation: shake 0.4s linear;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Phone Input with Prefix */
.phone-input-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-weight: 500;
  border: 1px solid var(--primary-color);
  height: 38px;
}

.phone-input-container input[type="tel"] {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  flex: 1;
  margin: 0;
  border-left: none;
}

/* Admin Submissions Page */
.submissions-header {
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submissions-count {
  font-size: 1rem;
  color: var(--medium-gray);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.count-badge {
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.admin-submissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.admin-submission-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.card-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0.7;
}

.admin-submission-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.card-header {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--off-white-color);
}

.student-info-small {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.student-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.student-details-small {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.student-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 0.7rem;
  color: var(--medium-gray);
  margin-top: 1px;
}

.student-university {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.submission-date-small {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.student-name-link {
  font-weight: 500;
  color: var(--dark-color);
  font-size: 0.85rem;
}
.student-name-link:hover {
  color: var(--primary-color);
}

.card-body {
  padding: var(--spacing-sm);
  flex-grow: 1;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--dark-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-description {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--medium-gray);
  margin-bottom: var(--spacing-xs);
  /* Truncate text to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.36em; /* 1.4 * 3 * 0.8 */
}

.team-member {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--medium-gray);
  font-size: 0.75rem;
  margin-top: var(--spacing-xs);
}
.team-member svg {
  color: var(--primary-color);
  flex-shrink: 0;
}
.team-member span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-attachments {
  padding: 0 var(--spacing-sm) var(--spacing-sm);
}

.attachment-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--spacing-xs);
}

.tab-btn {
  background: none;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.75rem;
  color: var(--medium-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn svg {
  width: 14px;
  height: 14px;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 500;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.video-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: var(--off-white-color);
}
.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--off-white-color);
  color: var(--primary-color);
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: var(--spacing-xs);
}

.file-thumbnail {
  position: relative;
  width: 100%;
  height: 70px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  display: block;
}

.file-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.file-overlay svg {
  color: white;
}

.file-thumbnail:hover .file-overlay {
  opacity: 1;
}

.file-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white-color);
  border-radius: var(--border-radius-sm);
  height: 70px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  border: 1px dashed rgba(var(--primary-rgb), 0.3);
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--off-white-color);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-xs);
  height: 70px;
  text-align: center;
  transition: all 0.2s ease;
}

.file-item svg {
  color: var(--primary-color);
  margin-bottom: 3px;
}

.file-item span {
  font-size: 0.65rem;
  color: var(--medium-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-item:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

.card-footer {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-top: 1px solid var(--border-color);
  background-color: var(--off-white-color);
  display: flex;
  justify-content: flex-end;
}

.btn-small {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--white-color);
  color: var(--dark-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.btn-small svg {
  color: var(--primary-color);
}

.btn-small:hover {
  background-color: var(--off-white-color);
  transform: translateY(-1px);
  box-shadow: var(--box-shadow-sm);
}

.no-data {
  text-align: center;
  padding: var(--spacing-xl);
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
}

.no-data svg {
  color: var(--primary-light);
  margin-bottom: var(--spacing-md);
}

.no-data h3 {
  color: var(--dark-color);
  margin-bottom: var(--spacing-sm);
}

.no-data p {
  color: var(--medium-gray);
}

@media (max-width: 768px) {
  .admin-submissions-grid {
    grid-template-columns: 1fr;
  }
  
  .student-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* Phone Input with Prefix */
.phone-input-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-weight: 500;
  border: 1px solid var(--primary-color);
  height: 38px;
}

.phone-input-container input[type="tel"] {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  flex: 1;
  margin: 0;
  border-left: none;
}

/* Super prominent email button - aligned with name */
.email-btn, 
a[href*="admin_send_email"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    margin: 0 15px 0 0 !important;
    background-color: #e91e63 !important; /* Bright pink */
    border-color: #c2185b !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    position: relative !important;
    z-index: 10 !important;
    height: 36px !important;
    line-height: 1 !important;
}

.email-btn:hover,
a[href*="admin_send_email"]:hover {
    background-color: #c2185b !important;
    border-color: #ad1457 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25) !important;
}

.email-btn i,
a[href*="admin_send_email"] i {
    margin-right: 8px !important;
    font-size: 14px !important;
}

/* Conference Info Box */
.conference-info-box {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.conference-info-box h4 {
    margin-top: 0;
    color: #1976d2;
}

.conference-info-box .btn-conference {
    display: inline-block;
    background-color: #1976d2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.conference-info-box .btn-conference:hover {
    background-color: #1565c0;
}

/* End Admin Student Detail Page */

/* Mobile Restriction Styles */
.mobile-restriction-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    text-align: center;
    background-color: var(--white-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin-top: var(--spacing-xxl);
}

.mobile-restriction-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.mobile-restriction-icon i {
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mobile-restriction-container h2 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
}

.mobile-restriction-container p {
    color: var(--medium-gray);
    margin-bottom: var(--spacing-md);
}

.mobile-restriction-actions {
    margin-top: var(--spacing-xl);
}

/* End of Mobile Restriction Styles */