/* Online Admission Portal - shared styles */
:root {
  --app-primary: #1d4e89;
  --app-primary-dark: #143a68;
  --app-bg: #f4f6fb;
  --report-head: #c8c8c8;
  --report-zebra: #e8e8e8;
}

body { background: var(--app-bg); color: #1e2733; font-size: .95rem; }
body.mode-report { background: #fff; }

/* ---------- navigation ---------- */
.app-navbar { background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark)); }
.app-navbar .nav-link.active { font-weight: 600; }
.app-footer { color: #6c757d; font-size: .85rem; padding: 1.5rem 0; text-align: center; }

.page-head h1 { color: var(--app-primary-dark); }
.card { border: 0; border-radius: .75rem; }
.card-header { border-bottom: 1px solid #eef0f4; border-top-left-radius: .75rem !important; border-top-right-radius: .75rem !important; }

/* ---------- dashboard tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: .35rem;
  background: #fff; border-radius: .75rem; padding: 1rem 1.1rem; text-decoration: none; color: inherit;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08); border-left: 4px solid var(--app-primary);
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover, .tile:focus { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 24, 40, .12); color: inherit; }
.tile .tile-title { font-weight: 600; color: var(--app-primary-dark); }
.tile .tile-desc { font-size: .82rem; color: #6c757d; }
.tile.tile-danger { border-left-color: #dc3545; }
.tile.tile-warning { border-left-color: #f0ad4e; }
.tile.tile-success { border-left-color: #198754; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #6c757d; margin: 1.75rem 0 .75rem; font-weight: 600; }
.stat { background: #fff; border-radius: .75rem; padding: 1rem 1.25rem; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.stat .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--app-primary-dark); }

/* ---------- login ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 1rem; padding: 2rem 1.75rem; box-shadow: 0 10px 30px rgba(16, 24, 40, .1); }
.auth-card .auth-logo { width: 64px; height: 64px; border-radius: 50%; background: var(--app-primary); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; font-weight: 700; }
.auth-card h1 { font-size: 1.3rem; text-align: center; color: var(--app-primary-dark); }

/* ---------- forms ---------- */
.form-label { font-weight: 500; font-size: .88rem; }
.btn-primary { background: var(--app-primary); border-color: var(--app-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--app-primary-dark); border-color: var(--app-primary-dark); }

/* ---------- data tables ---------- */
.table thead th { white-space: nowrap; }
table.dataTable thead tr.filters th { padding: .25rem; }
table.dataTable thead tr.filters input { width: 100%; min-width: 70px; font-size: .8rem; padding: .2rem .4rem; }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline; }

/* ---------- printable reports ---------- */
.report-toolbar { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid #dee2e6; padding: .5rem 1rem; }
.report-page { padding: 1rem; max-width: 1200px; margin: 0 auto; }
.report-block { margin-bottom: 1.25rem; }
.report-table { background: #fff; font-size: .85rem; margin-bottom: .5rem; }
.report-table > :not(caption) > * > * { padding: .3rem .45rem; border-color: #555 !important; vertical-align: middle; }
.report-table thead th { background: var(--report-head) !important; text-align: center; }
.report-table tbody tr:nth-child(even) > * { background: var(--report-zebra); }
.report-table .table-total > * { font-weight: 700; background: #f2f2f2 !important; }
.report-narrow { width: auto; min-width: 280px; margin-left: auto; margin-right: auto; }
.report-caption { caption-side: top; text-align: center; color: #111; font-weight: 600; font-size: 1.05rem; padding: .25rem 0 .6rem; }
.letterhead { text-align: center; font-weight: 600; font-size: 1.05rem; line-height: 1.45; margin-bottom: .6rem; }
.letterhead img { display: block; margin: 0 auto .35rem; object-fit: contain; }
.letterhead .lh-college { font-size: 1.15rem; }
.text-warn { color: #c00; font-weight: 700; }
.small-cell { font-size: .72rem; }
.notice { text-align: justify; font-weight: 600; }
.notice ul { list-style: circle; }
.signature { text-align: right; margin: 1rem 0; }
.page-foot { display: flex; justify-content: space-between; margin-top: .75rem; font-size: .85rem; }
.continued { text-align: right; font-style: italic; }
.page-break { break-after: page; page-break-after: always; height: 0; }
.register-table td, .register-table th { height: 1.6rem; }

@media (max-width: 575.98px) {
  .report-page { padding: .5rem; }
  .report-table { font-size: .75rem; }
}

@media print {
  .no-print, .report-toolbar, .alert { display: none !important; }
  body { background: #fff !important; font-size: 11pt; }
  .report-page { padding: 0; max-width: none; }
  .table-responsive { overflow: visible !important; }
  .report-table { font-size: 9.5pt; }
  .report-table thead { display: table-header-group; }
  .report-table tr { break-inside: avoid; }
  a[href]:after { content: none !important; }
  .page-break:last-child { display: none; }
}
