/* ===========================================
   MASTER CSS - DEEP NAVY & GOLD THEME
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500&family=Roboto:wght@300;400&display=swap');

:root {
  /* New Color Palette */
  --primary: #021b35;          /* Deep Navy */
  --primary-dark: #010f1f;      /* Darker Navy */
  --primary-light: #1e3a5f;     /* Lighter Navy */
  --accent: #e9b741;            /* Warm Gold */
  --accent-dark: #d4a32e;       /* Darker Gold */
  --accent-light: #f5d78c;      /* Light Gold */
  --secondary: #2c3e50;
  --success: #10b981;
  --danger: #ef4444;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border-light: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(2, 27, 53, 0.05), 0 2px 4px -1px rgba(2, 27, 53, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(2, 27, 53, 0.08), 0 8px 10px -6px rgba(2, 27, 53, 0.02);
  --shadow-lg: 0 20px 35px -8px rgba(2, 27, 53, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(145deg, #f4f7fb 0%, #eef2f6 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== GLOBAL ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(233, 183, 65, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(233, 183, 65, 0);
  }
}

/* Apply fade-in to main containers */
.login-card,
.contact,
.about,
.mobile-navbar {
  animation: fadeInUp 0.5s ease-out;
}

/* ===========================================
   LOGIN PAGE (Deep Navy Theme)
   =========================================== */
/* ===========================================
   LOGIN PAGE - ORIGINAL DESIGN WITH UPDATED COLORS
   =========================================== */

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 20px;
  background: #f8fafc;               /* Off-white background */
}

.login-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(2, 27, 53, 0.08);
  padding: 40px 35px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #e2e8f0;
}

.login-card h3 {
  font-weight: 500;
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #021b35;                    /* Deep navy */
}

.login-card .lead {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: #e9b741;             /* Gold accent */
  box-shadow: 0 0 0 3px rgba(233, 183, 65, 0.1);
}

.is-invalid {
  border-color: #ef4444 !important;
}

.invalid-feedback {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 5px;
}

.btn-login {
  background: #021b35;               /* Deep navy solid */
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-login:hover {
  background: #1e3a5f;               /* Lighter navy on hover */
}

.btn-login:active {
  transform: scale(0.98);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 0.9rem;
}

.forgot-link {
  color: #e9b741;                    /* Gold accent */
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.alert {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  border-left: 5px solid #ef4444;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  cursor: pointer;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #e9b741;
}

.footer-text {
  text-align: center;
  margin-top: 25px;
  color: #64748b;
  font-size: 0.9rem;
}

.footer-text a {
  color: #e9b741;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }
}

/* ===========================================
   NAVBAR (Deep Navy Theme)
   =========================================== */

/* Mobile Navbar Container */
.mobile-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f8fafc;              /* Off-white background */
  box-shadow: 0 2px 12px rgba(2, 27, 53, 0.05);
  border-bottom: 1px solid #e2e8f0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Hamburger Menu Button */
.hamburger {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #021b35;                   /* Deep navy */
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hamburger img {
  width: 24px;
  height: 24px;
  /* Keep original image colors (no filter) */
}

.hamburger:active {
  background: #e2e8f0;
}

/* Logo */
.navbar-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #021b35, #1e3a5f);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-align: center;
  line-height: 1.2;
}

.navbar-logo b {
  font-weight: 800;
}

.navbar-logo span {
  font-size: 11px;
  display: block;
  color: #475569;                   /* Muted text for subtitle */
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  font-weight: 400;
}

/* Profile Icon */
.profile-icon {
  background: transparent;
  color: #021b35;                   /* Deep navy */
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.2s;
}

.profile-icon:active {
  background: #e2e8f0;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 27, 53, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Drawer */
.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(85%, 280px);
  background: #ffffff;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: flex;
  flex-direction: column;
  border-radius: 0 24px 24px 0;
  box-shadow: 6px 0 24px rgba(2, 27, 53, 0.12);
  overflow-y: auto;
}

.sidebar-drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.close-drawer {
  background: #ffffff;
  border: none;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 40px;
  cursor: pointer;
  color: #021b35;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-drawer:active {
  background: #e2e8f0;
}

.close-drawer i {
  font-size: 1.3rem;
}

/* Drawer Navigation */
.drawer-nav {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.drawer-nav li {
  border-bottom: 1px solid #f0f2f5;
}

.drawer-nav li:last-child {
  border-bottom: none;
}

.drawer-nav li a,
.drawer-nav li button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s;
}

.drawer-nav li a i,
.drawer-nav li button i {
  width: 24px;
  color: #e9b741;                   /* Gold accent for icons */
  font-size: 1.2rem;
  text-align: center;
}

.drawer-nav li a:active,
.drawer-nav li button:active {
  background: #f1f5f9;
  padding-left: 2rem;
  border-left: 4px solid #e9b741;
}

/* Body state when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .navbar-container {
    padding: 0.8rem 1.8rem;
  }
  .navbar-logo {
    font-size: 1.6rem;
  }
}

/* ===========================================
   CONTACT PAGE (Deep Navy Theme)
   =========================================== */
.contact {
  padding: 1.5rem 1.2rem 2.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact_img {
  text-align: center;
  margin-bottom: 2rem;
}

.contact_img img {
  width: 85%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(2, 27, 53, 0.1));
  animation: aboutFloat 5s ease-in-out infinite;
}

.contact_info {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact_info .col {
  flex: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.2rem 0.25rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact_info .col:active {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(2, 27, 53, 0.1);
  border-color: var(--accent);
}

.contact_info .col img {
  width: 45px;
  height: 45px;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.contact_info .col p {
  margin: 0;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.contact_form {
  background: #ffffff;
  border-radius: 32px 32px 24px 24px;
  padding: 2rem 1.8rem 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,0.5);
}

.contact_form h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.contact_form h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 4px;
}

.contact_form .alert {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 5px solid;
  animation: fadeInUp 0.3s;
}

.contact_form .alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left-color: var(--danger);
}

.contact_form .alert-success {
  background: #dcfce7;
  color: #166534;
  border-left-color: var(--success);
}

.contact_form .form-group {
  margin-bottom: 0;
}

.contact_form label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: block;
  font-size: 0.95rem;
  margin-left: 6px;
}

.contact_form .form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  font-size: 1rem;
  transition: var(--transition);
  background: #fafbfc;
  margin-bottom: 1.5rem;
}

.contact_form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(233, 183, 65, 0.15);
  background: #fff;
}

.contact_form button[type="submit"] {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 18px rgba(2, 27, 53, 0.25);
  letter-spacing: 0.5px;
  margin-top: 0.8rem;
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.contact_form button[type="submit"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.contact_form button[type="submit"]:active::after {
  width: 300px;
  height: 300px;
}

.contact_form button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(2, 27, 53, 0.35);
}

/* Mobile adjustments for contact */
@media (max-width: 380px) {
  .contact_info .col {
    padding: 1rem 0.1rem;
  }
  .contact_info .col img {
    width: 38px;
    height: 38px;
  }
  .contact_form {
    padding: 1.5rem 1.2rem 2rem;
  }
}

/* ===========================================
   ABOUT PAGE (Deep Navy Theme)
   =========================================== */
.about {
  padding: 1.5rem 1.2rem 3rem;
  max-width: 500px;
  margin: 0 auto;
}

.about_img {
  text-align: center;
  margin: 0.5rem 0 2rem;
}

.about_img img {
  width: 80%;
  max-width: 280px;
  filter: drop-shadow(0 10px 15px rgba(2, 27, 53, 0.1));
  animation: aboutFloat 5s ease-in-out infinite;
}

@keyframes aboutFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about_content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.our_vision {
  background: #ffffff;
  border-radius: 28px;
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform 0.2s;
}

.our_vision:active {
  transform: scale(0.99);
}

.our_vision h5 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.our_vision h5::before {
  content: '🎯';
  font-size: 1.8rem;
}

.our_vision p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.our_mission {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 28px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 15px 25px rgba(2, 27, 53, 0.25);
  color: white;
}

.our_mission h5 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.our_mission h5::before {
  content: '✨';
  font-size: 1.8rem;
}

.our_mission ul {
  list-style: none;
  padding: 0;
}

.our_mission ul li {
  padding: 0.8rem 0 0.8rem 2.2rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 1rem;
  line-height: 1.5;
}

.our_mission ul li:last-child {
  border-bottom: none;
}

.our_mission ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.8rem;
  background: var(--accent);
  color: var(--primary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

/* Social section */
.about_social {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.about_social h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.8rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.about_social h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 3px;
}

.about_social .row {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.about_social .col {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 0 !important;
}

.about_social .col a {
  display: inline-block;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.about_social .col img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  padding: 12px;
  background: white;
  border: 2px solid var(--border-light);
  transition: var(--transition);
}

.about_social .col:nth-child(1) img { background: #1877f2; }
.about_social .col:nth-child(2) img { background: #25d366; }
.about_social .col:nth-child(3) img { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.about_social .col a:active img {
  transform: scale(0.85);
  box-shadow: 0 10px 20px rgba(233, 183, 65, 0.3);
  border-color: var(--accent);
}

/* Mobile refinements */
@media (max-width: 380px) {
  .about_social .col img {
    width: 50px;
    height: 50px;
  }
  .about_social .row {
    gap: 1.2rem;
  }
}


/* ===========================================
   STUDENT DASHBOARD STYLES
   Used in: student_home.php
   =========================================== */

/* Base Dashboard Layout */
.student-dashboard {
  padding-bottom: 80px;
}

/* Card Base Styles */
.content-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(2, 27, 53, 0.04);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
  box-shadow: 0 8px 20px rgba(2, 27, 53, 0.08);
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #021b35;
}

.card-title i {
  color: #e9b741;
  font-size: 1.2rem;
}

/* Stat Cards */
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(2, 27, 53, 0.04);
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(2, 27, 53, 0.08);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: white;
  font-size: 1.4rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Birthday Card Special */
.birthday-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* List Items (notices, computer, session, batch) */
.notice-item,
.computer-item,
.session-item,
.batch-item {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-left: 4px solid #e9b741;
  border-radius: 0 10px 10px 0;
  margin-bottom: 8px;
  transition: background 0.2s, transform 0.2s;
}

.computer-item {
  border-left-color: #10b981;
}

.session-item {
  border-left-color: #f59e0b;
}

.batch-item {
  border-left-color: #8b5cf6;
}

.notice-item:hover,
.computer-item:hover,
.session-item:hover,
.batch-item:hover {
  background: #f1f5f9;
  transform: translateX(3px);
}

.notice-title,
.computer-title,
.session-title,
.batch-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #021b35;
}

.notice-date,
.computer-meta,
.session-meta,
.batch-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

/* Subject Cards */
.subject-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: white;
  transition: all 0.25s;
  padding: 0.75rem;
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(2, 27, 53, 0.08);
  border-color: #e9b741;
}

.subject-card i {
  font-size: 1.8rem;
  color: #021b35;
  margin-bottom: 5px;
}

.subject-card h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

/* Computer Badge */
.computer-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  background: #dbeafe;
  color: #1e40af;
}

/* Fee History Table */
.fee-history-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.fee-history-table th,
.fee-history-table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.fee-history-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #021b35;
}

/* Status Badges */
.badge-status {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.badge-paid { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-partial { background: #fee2e2; color: #991b1b; }
.badge-overdue { background: #fecaca; color: #dc2626; }

/* Alert Overdue */
.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left: 5px solid #dc2626;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  padding: 6px 0;
  z-index: 1000;
  border-top: 1px solid #e2e8f0;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #64748b;
  font-size: 0.7rem;
  transition: color 0.2s;
}

.menu-item i {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.menu-item.active {
  color: #021b35;
  font-weight: 500;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.animate-fadein {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideup {
  animation: slideUp 0.4s ease-out forwards;
}

.animate-pop {
  animation: popIn 0.3s ease-out forwards;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

/* Staggered animation delays */
.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.15s; }
.content-card:nth-child(3) { animation-delay: 0.2s; }

/* Mobile Adjustments */
@media (max-width: 480px) {
  .content-card {
    padding: 1rem;
  }
  .stat-card {
    padding: 1rem 0.5rem;
  }
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .stat-value {
    font-size: 1.3rem;
  }
  .fee-history-table th,
  .fee-history-table td {
    font-size: 0.7rem;
    padding: 0.4rem 0.2rem;
  }
}

/* ===========================================
   STUDENT PERFORMANCE PAGE STYLES
   Used in: student_performance.php
   =========================================== */

.performance-dashboard {
  padding-bottom: 80px;
}

/* Performance Table */
.performance-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.performance-table th {
  background: #f8fafc;
  color: #021b35;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.performance-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.performance-table tbody tr {
  transition: background 0.2s;
}

.performance-table tbody tr:hover {
  background: #f8fafc;
}

/* Table Row Animation */
.table-row-animate {
  animation: fadeInRow 0.4s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInRow {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Subject Badge */
.subject-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  min-width: 55px;
}

.marks-good {
  background: #d1fae5;
  color: #065f46;
}

.marks-average {
  background: #fef3c7;
  color: #92400e;
}

.marks-poor {
  background: #fee2e2;
  color: #991b1b;
}

/* Subject Items (Breakdown) */
.subject-item {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 4px solid transparent;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.subject-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(2, 27, 53, 0.06);
}

.subject-item.marks-good {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.subject-item.marks-average {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.subject-item.marks-poor {
  border-left-color: #ef4444;
  background: #fef2f2;
}

/* Card Title Icons Color */
.performance-summary-card .card-title i {
  color: #3b82f6;
}

.subject-breakdown-card .card-title i {
  color: #8b5cf6;
}

/* Empty State */
.empty-state-card {
  text-align: center;
  padding: 2.5rem 1rem;
}

.empty-state-card p {
  font-size: 1rem;
  color: #64748b;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .performance-table {
    font-size: 0.75rem;
  }
  .performance-table th,
  .performance-table td {
    padding: 0.5rem 0.3rem;
  }
  .subject-badge {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    min-width: 45px;
  }
  .subject-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Reuse animations from student home */
.animate-fadein {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideup {
  animation: slideUp 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   STUDENT ATTENDANCE PAGE STYLES
   Used in: student_attendance.php
   =========================================== */

.attendance-dashboard {
  padding-bottom: 80px;
}

/* Attendance Cards */
.card-attendance {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(2, 27, 53, 0.04);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-attendance:hover {
  box-shadow: 0 12px 24px rgba(2, 27, 53, 0.08);
}

.card-attendance .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #021b35;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 5px solid #e9b741;
  padding-left: 15px;
}

.card-attendance .card-title i {
  color: #e9b741;
  font-size: 1.4rem;
}

/* Summary Row (Horizontal Cards) */
.summary-row {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.summary-card {
  flex: 1;
  background: #f8fafc;
  border-radius: 18px;
  padding: 1rem 0.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(2, 27, 53, 0.05);
}

.summary-card h6 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #021b35;
}

.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }

/* Chart Container */
.chart-container {
  max-width: 220px;
  margin: 0 auto 1rem auto;
}

.chart-percentage {
  margin-top: 0.5rem;
}

/* Attendance Table */
.attendance-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.attendance-table th {
  background: #f8fafc;
  color: #021b35;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.attendance-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}

.attendance-table tbody tr {
  transition: background 0.2s;
}

.attendance-table tbody tr:hover {
  background: #f8fafc;
}

/* Status Badges */
.badge-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  min-width: 70px;
}

.badge-present {
  background: #d1fae5;
  color: #065f46;
}

.badge-absent {
  background: #fee2e2;
  color: #991b1b;
}

/* Table row animation */
.table-row-animate {
  animation: fadeInRow 0.4s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInRow {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Custom scrollbar for table responsiveness */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 4px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 12px rgba(2, 27, 53, 0.05);
  padding: 6px 0;
  z-index: 1000;
  border-top: 1px solid #e2e8f0;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #64748b;
  font-size: 0.7rem;
  padding: 5px 0;
  border-radius: 12px;
  transition: all 0.2s;
}

.menu-item i {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.menu-item.active,
.menu-item:hover {
  color: #021b35;
  background: #f1f5f9;
}

/* Animations */
.animate-fadein {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideup {
  animation: slideUp 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .card-attendance {
    padding: 1.2rem 1rem;
  }
  .summary-card h3 {
    font-size: 1.6rem;
  }
  .attendance-table th,
  .attendance-table td {
    padding: 0.6rem 0.3rem;
    font-size: 0.75rem;
  }
  .badge-status {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    min-width: 60px;
  }
}

@media (min-width: 768px) {
  .attendance-dashboard {
    padding-bottom: 20px;
  }
  .bottom-nav {
    display: none;
  }
}

/* ===========================================
   NOTICES PAGE STYLES
   Used in: notice.php
   =========================================== */

.notices-dashboard {
  padding-bottom: 80px;
}

/* Notice Card */
.notice-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 0;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(2, 27, 53, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.25s ease;
}

.notice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(2, 27, 53, 0.08);
}

/* Notice Item */
.notice-item {
  padding: 1.25rem 1.25rem 1rem;
  border-left: 5px solid;
  background: #ffffff;
  border-radius: 0;
}

.notice-item.high {
  border-left-color: #ef4444;
  background: linear-gradient(to right, #fef2f2 0%, #ffffff 10%);
}

.notice-item.medium {
  border-left-color: #f59e0b;
  background: linear-gradient(to right, #fffbeb 0%, #ffffff 10%);
}

.notice-item.low {
  border-left-color: #10b981;
  background: linear-gradient(to right, #f0fdf4 0%, #ffffff 10%);
}

/* Notice Header */
.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.notice-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #021b35;
  line-height: 1.3;
  flex: 1;
  padding-right: 0.5rem;
}

/* Priority Badge */
.priority-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-high {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-medium {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-low {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Notice Message */
.notice-message {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

/* Notice Footer */
.notice-footer {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.notice-footer i {
  color: #e9b741;
  font-size: 0.8rem;
}

/* Empty State */
.empty-notices {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #ffffff;
  border-radius: 24px;
}

.empty-icon {
  font-size: 3.5rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* Animations */
.animate-fadein {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.animate-pop {
  animation: popIn 0.3s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Staggered animation delays are applied inline via style attribute */

/* Mobile adjustments */
@media (max-width: 480px) {
  .notice-item {
    padding: 1rem 1rem 0.75rem;
  }
  .notice-title {
    font-size: 1rem;
  }
  .notice-message {
    font-size: 0.85rem;
  }
  .priority-badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
  }
}

@media (min-width: 768px) {
  .notices-dashboard {
    padding-bottom: 20px;
  }
}

/* ===========================================
   STUDENT PROFILE PAGE STYLES
   Used in: profile.php
   =========================================== */

.profile-dashboard {
  padding-bottom: 80px;
}

/* Info Cards */
.info-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(2, 27, 53, 0.04);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  box-shadow: 0 12px 24px rgba(2, 27, 53, 0.08);
}

.stats-card {
  margin-top: 12px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #021b35;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 5px solid #e9b741;
  padding-left: 15px;
}

.card-title i {
  color: #e9b741;
  font-size: 1.3rem;
}

/* Stats Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 0.5rem;
}

.stat-item {
  background: #f8fafc;
  border-radius: 18px;
  padding: 1rem 0.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(2, 27, 53, 0.04);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #021b35;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label i {
  color: #e9b741;
  width: 18px;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #e9b741;
  box-shadow: 0 0 0 4px rgba(233, 183, 65, 0.1);
}

.form-control[disabled] {
  background: #f8fafc;
  color: #1e293b;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #021b35 0%, #1e3a5f 100%);
  border: none;
  border-radius: 40px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #010f1f 0%, #142b44 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(2, 27, 53, 0.2);
}

.btn-secondary {
  background: #f1f5f9;
  border: none;
  border-radius: 40px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* ID Card */
.id-card-container {
  background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
}

.id-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(2, 27, 53, 0.1);
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid rgba(233, 183, 65, 0.3);
}

.id-card-header {
  text-align: center;
  border-bottom: 3px solid #e9b741;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.id-card-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #021b35, #1e3a5f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

.id-card-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f1f5f9;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid #e9b741;
}

.id-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.id-card-photo i {
  font-size: 3rem;
  color: #94a3b8;
}

.id-card-details p {
  margin: 8px 0;
  font-size: 0.9rem;
}

.id-card-details strong {
  width: 70px;
  display: inline-block;
  color: #021b35;
}

.id-card-footer {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.7rem;
  color: #64748b;
}

.btn-download {
  background: #021b35;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 0.9rem 1.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 1rem;
}

.btn-download i {
  margin-right: 8px;
}

.btn-download:hover {
  background: #1e3a5f;
  transform: scale(0.98);
  box-shadow: 0 6px 12px rgba(2, 27, 53, 0.15);
}

/* Alerts */
.alert {
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 5px solid #10b981;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left: 5px solid #ef4444;
}

/* Animations */
.animate-fadein {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideup {
  animation: slideUp 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .info-card {
    padding: 1.2rem 1rem;
  }
  .stat-value {
    font-size: 1.1rem;
  }
  .id-card {
    padding: 1rem;
  }
  .id-card-logo {
    font-size: 1.5rem;
  }
  .form-actions {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .profile-dashboard {
    padding-bottom: 20px;
  }
}

/* ===========================================
   STUDENT REGISTRATION FORM - MOBILE FIRST
   =========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f7fb;
}

/* Registration Section */
.registration-section {
  padding: 20px 12px 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.container {
  max-width: 550px;
  margin: 0 auto;
  width: 100%;
}

/* Card */
.registration-card {
  background: white;
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 24px 20px;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 5px solid #10b981;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left: 5px solid #ef4444;
}

/* Form Sections */
.form-section {
  margin-bottom: 28px;
}

.form-section-alt {
  background: #021b35; /* Deep navy to match your theme */
  border-radius: 24px;
  padding: 24px 20px;
  margin: 0 -8px 28px -8px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #021b35;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9b741;
  display: inline-block;
}

.section-title-light {
  color: white;
  border-bottom-color: #e9b741;
}

/* Form Groups */
.form-group {
  margin-bottom: 18px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: #e9b741;
  box-shadow: 0 0 0 4px rgba(233, 183, 65, 0.15);
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 300;
  font-size: 0.95rem;
}

/* Light inputs for dark background */
.form-input-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.form-input-light::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-input-light:focus {
  background: white;
  color: #021b35;
  border-color: #e9b741;
}

.form-input-light:focus::placeholder {
  color: #9ca3af;
}

/* Select dropdown styling */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 45px;
}

select.form-input-light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Terms Section */
.terms-section {
  margin: 24px 0 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #475569;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #e9b741;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-link {
  color: #021b35;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted #021b35;
}

.terms-link:hover {
  color: #e9b741;
  border-bottom-color: #e9b741;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #021b35 0%, #1e3a5f 100%);
  color: white;
  border: none;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 18px rgba(2, 27, 53, 0.2);
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #010f1f 0%, #142b44 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(2, 27, 53, 0.25);
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(2, 27, 53, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .registration-section {
    padding: 12px 8px 30px;
  }
  
  .registration-card {
    padding: 20px 16px;
    border-radius: 24px;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .form-input {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  
  .submit-btn {
    padding: 14px 16px;
    font-size: 1rem;
  }
  
  .form-section-alt {
    padding: 20px 16px;
  }
}

/* Tablet and larger - two column hint (but still stacked for readability) */
@media (min-width: 768px) {
  .registration-card {
    padding: 32px 28px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}
