/* ============================================================
   STYLES — Uzimeleni Scholar Transport System
   ============================================================ */

/* ---- Custom properties ---- */
:root {
  --sidebar-width: 255px;
  --sidebar-bg:    #16191e;
  --navbar-height: 62px;
  --radius:        12px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f3f5f8;
  min-height: 100vh;
  margin: 0;
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */

#login-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #0d6efd 0%, #0856d6 55%, #063a9e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-hint code {
  font-size: 0.8rem;
}

/* ================================================================
   APP LAYOUT
   ================================================================ */

#app-page {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sidebar-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.2px;
}

#sidebar-nav {
  list-style: none;
  padding: 0.6rem 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

#sidebar-nav::-webkit-scrollbar { width: 4px; }
#sidebar-nav::-webkit-scrollbar-track { background: transparent; }
#sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }

.sidebar-link {
  color: rgba(255,255,255,0.62) !important;
  border-radius: 8px;
  margin: 2px 10px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.sidebar-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}

.sidebar-link.active {
  color: #fff !important;
  background: rgba(13,110,253,0.25);
  border-left: 3px solid #0d6efd;
  padding-left: calc(0.75rem - 3px) !important;
}

/* ---- Sidebar overlay (mobile) ---- */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 1049;
}
#sidebar-overlay.show { display: block; }

/* ---- Main content wrapper ---- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ---- Top navbar ---- */
.top-navbar {
  height: var(--navbar-height);
  background: #fff;
  border-bottom: 1px solid #e5e9ef;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  gap: 0.75rem;
}

/* ---- Content area ---- */
.content-area {
  flex: 1;
  padding: 1.75rem 1.5rem;
  overflow-x: hidden;
}

/* ---- Section animation ---- */
.section {
  animation: sectionIn 0.2s ease both;
}

@keyframes sectionIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ================================================================
   CARDS & COMPONENTS
   ================================================================ */

.card {
  border-radius: var(--radius);
}

.card-header {
  border-radius: var(--radius) var(--radius) 0 0 !important;
  font-size: 0.9rem;
}

/* ---- Stat cards ---- */
.stat-card .card-body { padding: 1.25rem; }

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Activity icon ---- */
.activity-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* ================================================================
   TABLES
   ================================================================ */

.table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6c757d;
  white-space: nowrap;
}

.table td {
  font-size: 0.88rem;
  vertical-align: middle;
}

/* ================================================================
   BADGES
   ================================================================ */

.badge {
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ================================================================
   FORMS
   ================================================================ */

.form-label { font-size: 0.87rem; margin-bottom: 0.35rem; }
.form-control, .form-select { font-size: 0.9rem; }

/* ================================================================
   RESPONSIVE / MOBILE
   ================================================================ */

@media (max-width: 767.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }

  .main-content {
    margin-left: 0;
  }

  .content-area {
    padding: 1rem;
  }

  .login-card {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .stat-icon {
    width: 44px;
    height: 44px;
  }

  .top-navbar { padding: 0 1rem; }
}

/* ================================================================
   UTILITIES
   ================================================================ */

.font-monospace { font-family: 'Consolas', 'Courier New', monospace; }
.min-w-0 { min-width: 0; }

/* Smooth hover for table rows */
.table-hover tbody tr { transition: background-color 0.12s; }

/* Flag card left border accent already via Bootstrap utility */
.border-4 { border-width: 4px !important; }

/* Modal tweaks */
.modal-content { border-radius: var(--radius); border: none; }
.modal-header  { border-radius: var(--radius) var(--radius) 0 0; }

/* ================================================================
   PUBLIC SITE
   ================================================================ */

/* ---- Public navbar ---- */
.pub-navbar {
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pub-navbar-logo {
  height: 210px;
  width: auto;
}

.pub-navbar .navbar-brand,
.pub-navbar .nav-link {
  color: #fff !important;
}

.pub-navbar-scrolled {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.pub-navbar-scrolled .navbar-brand,
.pub-navbar-scrolled .nav-link {
  color: #212529 !important;
}

.pub-navbar-scrolled .navbar-toggler {
  border-color: rgba(0,0,0,0.2);
}

.pub-navbar-scrolled .navbar-toggler-icon {
  filter: none;
}

/* Mobile navbar: compact logo so the fixed bar doesn't bury content */
@media (max-width: 991.98px) {
  .pub-navbar {
    background: rgba(13,23,55,0.96) !important;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .pub-navbar-logo {
    height: 60px;
  }

  /* Re-align section padding to the smaller mobile navbar (~70px) */
  .pub-hero {
    padding-top: 90px;
  }

  .pub-page-hero {
    padding-top: 5rem;
  }
}

.pub-nav-link.active {
  font-weight: 600 !important;
  color: #fff !important;
}

.pub-navbar-scrolled .pub-nav-link.active {
  color: #0d6efd !important;
}

/* ---- Hero ---- */
.pub-hero {
  min-height: 92vh;
  background: linear-gradient(140deg, #0d1b4b 0%, #0d6efd 55%, #198754 100%);
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 4rem;
}

.pub-hero h1 { color: #fff; }
.pub-hero .lead { color: rgba(255,255,255,0.75); }

.hero-icon-wrap {
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  font-size: 8rem;
  opacity: 0.9;
}

/* ---- Stats band ---- */
.pub-stats { background: #0d6efd; }

.stat-counter {
  font-size: 2.8rem;
  line-height: 1;
}

/* ---- Page hero (about / contact) ---- */
.pub-page-hero {
  background: linear-gradient(135deg, #0d1b4b 0%, #0d6efd 100%);
  padding: 7rem 0 3.5rem;
  margin-top: 0;
}

.pub-page-hero h1 { color: #fff; }
.pub-page-hero .lead { color: rgba(255,255,255,0.72); }

/* ---- Committee cards ---- */
.committee-card {
  border-radius: var(--radius) !important;
  transition: transform 0.22s, box-shadow 0.22s;
}

.committee-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12) !important;
}

.committee-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid #e9ecef;
}

/* ---- Footer ---- */
.pub-footer {
  background: #0d1117;
  padding-bottom: 0;
}

.footer-links {
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.55rem; }

.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.18s;
}

.footer-links a:hover { color: #fff; }

/* ---- Social icons ---- */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7) !important;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.social-icon:hover {
  background: #0d6efd;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ---- Scrolled navbar: tint outline button so it's visible on white ---- */
.pub-navbar-scrolled .btn-outline-light {
  --bs-btn-color: #0d6efd;
  --bs-btn-border-color: #0d6efd;
  --bs-btn-hover-bg: #0d6efd;
  --bs-btn-hover-color: #fff;
}

/* ---- Password strength bar label ---- */
#strength-label { min-height: 1.2em; display: inline-block; }

/* ---- Sign-up modal shadow ---- */
.shadow-xl { box-shadow: 0 20px 60px rgba(0,0,0,.18) !important; }

/* ---- Public section padding (below fixed navbar) ---- */
.pub-section > section:first-child {
  /* pub-hero and pub-page-hero already have padding-top built in */
}

/* ---- Smooth section transitions ---- */
.pub-section { animation: sectionIn 0.25s ease both; }



/* ================================================================
   DOCUMENTS
   ================================================================ */

.doc-slot-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c757d;
  margin-bottom: .5rem;
}

.doc-uploaded-card {
  background: #f8f9fa;
  transition: background .15s;
}

.doc-uploaded-card:hover {
  background: #e9ecef;
}
