:root {
  /* Colors sampled directly from the official PVG COE & SSD IoM, Nashik
     logo/letterhead: navy blue for headings, red for the accreditation
     subtitle, so the app's theme matches pvgcoenashik.org branding. */
  --brand-primary: #0b1b59;   /* navy blue - primary institute color */
  --brand-primary-dark: #060f33;
  --brand-secondary: #ed1c24; /* red accent, matches "(An Autonomous Institute...)" */
  --brand-light: #f4f5f9;
}

body {
  background-color: var(--brand-light);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.navbar-custom {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-dark));
}

.brand-strip {
  background-color: #ffffff;
  border-bottom: 3px solid var(--brand-secondary);
  padding: 8px 0;
}

.brand-logo {
  height: 60px;
  width: auto;
  max-width: 100%;
}

.brand-logo-auth {
  max-width: 100%;
  height: auto;
  background-color: #fff;
  padding: 6px;
  border-radius: 6px;
}

.footer-custom {
  background-color: var(--brand-primary);
  color: #e7e9f5;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  padding: 2rem 1rem;
}

.auth-card {
  max-width: 460px;
  width: 100%;
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
}

.auth-card .card-header {
  background-color: var(--brand-primary);
  color: #fff;
  border-radius: 14px 14px 0 0 !important;
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 4px solid var(--brand-secondary);
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.stat-card {
  border-radius: 12px;
  color: #fff;
  padding: 1.25rem;
}

.stat-card h3 { font-weight: 700; margin-bottom: 0; }

.bg-brand { background-color: var(--brand-primary) !important; }
.bg-accent { background-color: var(--brand-secondary) !important; }
.text-brand { color: var(--brand-primary) !important; }
.text-accent { color: var(--brand-secondary) !important; }

.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.btn-brand:hover {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
}

.hall-card img, .hall-card .hall-icon {
  height: 150px;
  object-fit: cover;
  background: linear-gradient(135deg, #eee, #ddd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--brand-primary);
}

.table thead {
  background-color: var(--brand-primary);
  color: #fff;
}

/* Bootstrap pill nav (used on Manage Bookings filter tabs) picks up the
   brand navy instead of Bootstrap's default blue when active. */
.nav-pills .nav-link.active {
  background-color: var(--brand-primary) !important;
}

/* ===================================================================
   ANIMATIONS
   Light theme is kept as-is; these only add motion/transitions on top
   of the existing colors so the app feels more alive without changing
   its look and feel.
=================================================================== */

/* Respect users who've asked their OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

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

@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(237, 28, 36, 0); }
}

@keyframes spinGrow {
  from { transform: scale(0.9) rotate(-2deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

/* Page content fades/slides in on load. Cards inside .container get a
   gentle staggered entrance so the page doesn't feel like it "just
   appeared" all at once. */
.container > * {
  animation: fadeInUp 0.5s ease both;
}
.container > *:nth-child(2) { animation-delay: 0.05s; }
.container > *:nth-child(3) { animation-delay: 0.1s; }
.container > *:nth-child(4) { animation-delay: 0.15s; }
.container > *:nth-child(5) { animation-delay: 0.2s; }

/* Cards lift gently on hover to feel clickable/alive */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(11, 27, 89, 0.12);
}

/* Stat cards get a slightly stronger pop since they're the headline numbers */
.stat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: spinGrow 0.45s ease both;
}
.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

/* Buttons: smooth color transitions + a light "press" effect */
.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn-brand:hover {
  box-shadow: 0 6px 16px rgba(11, 27, 89, 0.3);
}

/* Brand logo gets a subtle interactive scale */
.brand-logo, .brand-logo-auth {
  transition: transform 0.3s ease;
}
.brand-strip a:hover .brand-logo {
  transform: scale(1.03);
}

/* Nav links: animated underline sweep instead of an abrupt color change */
.navbar-custom .nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--brand-secondary);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 70%;
}

/* Alerts slide down into place instead of just appearing */
.alert {
  animation: slideDown 0.35s ease both;
}

/* Table rows highlight smoothly and nudge slightly on hover */
.table tbody tr {
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.table tbody tr:hover {
  transform: scale(1.002);
}

/* Utilization progress bars animate their fill in from 0 on load */
@keyframes growBar {
  from { width: 0 !important; }
}
.progress-bar {
  transition: width 0.8s ease;
  animation: growBar 0.8s ease;
}

/* Pending-status badges pulse softly to draw the eye to items needing action */
.badge.bg-warning {
  animation: pulseSoft 2s infinite;
}

/* Modals: slightly springier entrance than Bootstrap's default */
.modal.fade .modal-dialog {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

/* Form controls get a soft focus glow instead of an instant hard outline */
.form-control, .form-select {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(11, 27, 89, 0.15);
}

/* Dropdown menus fade/slide in */
.dropdown-menu {
  animation: fadeInUp 0.2s ease both;
}

/* Chart canvases fade in once rendered */
canvas {
  animation: fadeIn 0.6s ease both;
}

/* ---------------------------------------------------------------
   Print styles: used when the admin clicks "Print / Save as PDF"
   on the Hall Utilization Report. Hides navigation/chrome so only
   the report itself (with letterhead) is printed.
--------------------------------------------------------------- */
@media print {
  .navbar-custom, .brand-strip, .footer-custom, .no-print {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  #reportArea {
    box-shadow: none !important;
    border: none !important;
  }
  .report-letterhead {
    border-bottom: 3px solid var(--brand-secondary);
    padding-bottom: 10px;
    margin-bottom: 15px !important;
  }
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
