/* Barpeta Polytechnic Feedback Portal — brand styles */

:root {
  --brand-primary: #0d3b66;
  --brand-accent: #3a7ca5;
  --brand-light: #e8edf3;
}

body {
  background: #f5f7fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
}

/* Brand color utility (overrides Bootstrap's bg-primary where used) */
.bg-primary-portal {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
}

/* Letterhead */
.letterhead-wrapper {
  background: #fff;
  border-bottom: 3px solid var(--brand-primary);
  padding: 12px 0;
  text-align: center;
}
.letterhead-img {
  max-height: 130px;
  width: auto;
  max-width: 100%;
}

/* Navbar primary override */
.navbar.bg-primary-portal {
  background-color: var(--brand-primary) !important;
}
.navbar.bg-primary-portal .navbar-brand,
.navbar.bg-primary-portal .nav-link {
  color: #fff !important;
}
.navbar.bg-primary-portal .nav-link:hover {
  color: #d0d9e6 !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #0a2f54;
  border-color: #0a2f54;
}
.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* Cards */
.card {
  border-radius: .5rem;
}
.kpi-tile {
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.kpi-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 59, 102, .12);
}

/* Forms — give all inputs Bootstrap-styling even when rendered via {{ field }} */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="date"],
input[type="file"],
select,
textarea {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
input[type="checkbox"] {
  width: auto;
  display: inline-block;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-accent);
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(58, 124, 165, .25);
}

/* Tables */
.table thead.table-light {
  background: var(--brand-light);
}

/* Footer */
.portal-footer {
  background: var(--brand-primary);
  color: #d0d9e6;
  padding: 1.2rem 0;
  margin-top: 3rem;
  font-size: .875rem;
}
.portal-footer a {
  color: #fff;
  text-decoration: none;
}

/* Print friendliness for reports */
@media print {
  .navbar, .portal-footer, .btn { display: none !important; }
  body { background: #fff; }
}
