/* School Complex Thirmanpally - Custom Stylesheet */
:root {
  --primary-navy: #0f275c;
  --secondary-navy: #1e3a8a;
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-emerald: #059669;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-slate: #f8fafc;
  --card-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius-card: 14px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-slate);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navbar */
.gov-top-bar {
  background: linear-gradient(90deg, #1e3a8a 0%, #0f275c 100%);
  color: #ffffff;
  padding: 6px 0;
  font-size: 0.82rem;
  border-bottom: 2px solid #f59e0b;
}

.navbar-main {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--card-border);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Styles */
.form-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.section-header {
  background: linear-gradient(90deg, #f1f5f9 0%, #ffffff 100%);
  border-left: 4px solid var(--secondary-navy);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
  margin-bottom: 1.2rem;
  border-radius: 0 8px 8px 0;
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 0.35rem;
}

.form-label .required {
  color: #dc2626;
  margin-left: 2px;
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-text {
  font-size: 0.75rem;
  color: #64748b;
}

/* Step navigation pills */
.nav-pills-custom .nav-link {
  color: #64748b;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-pills-custom .nav-link.active {
  background: var(--secondary-navy);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

.nav-pills-custom .nav-link:hover:not(.active) {
  background: #f1f5f9;
  color: var(--primary-navy);
}

/* 6-Digit Code Callout Box */
.code-display-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px dashed #f59e0b;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  position: relative;
}

.code-digits {
  font-family: 'Courier New', Courier, monospace;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 12px;
  color: #b45309;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  display: inline-block;
  padding-left: 12px;
}

/* Buttons */
.btn-primary-navy {
  background-color: var(--secondary-navy);
  border-color: var(--secondary-navy);
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  transition: all 0.2s ease;
}

.btn-primary-navy:hover {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 39, 92, 0.25);
}

.btn-accent-gold {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
}

.btn-accent-gold:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

/* Stat Cards in Dashboard */
.stat-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-navy);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Tables */
.table-custom {
  margin-bottom: 0;
}

.table-custom thead th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: none;
  padding: 12px 14px;
}

.table-custom tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
}

.table-custom tbody tr:hover {
  background-color: #f8fafc;
}

/* Badges */
.badge-code {
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 5px 9px;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 6px;
}

/* Footer */
footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--card-border);
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .code-digits {
    font-size: 2.2rem;
    letter-spacing: 6px;
    padding-left: 6px;
  }
  .brand-title {
    font-size: 1rem;
  }
}
