/* assets/css/style.css - Blue & White AdminLTE-style theme */

:root {
  --brand-blue: #0d47a1;
  --brand-blue-dark: #08306b;
  --brand-blue-light: #e3f2fd;
  --brand-accent: #1976d2;
  --sidebar-width: 250px;
}

body.app-body {
  background: #f4f6f9;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.app-navbar {
  background: linear-gradient(90deg, var(--brand-blue-dark), var(--brand-blue));
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.app-navbar .navbar-brand { color: #fff; }

.app-wrapper { display: flex; min-height: calc(100vh - 56px); }

.app-sidebar {
  width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid #e3e6ea;
  min-height: calc(100vh - 56px);
  padding-top: 1rem;
  flex-shrink: 0;
  transition: margin-left .2s ease;
}
.app-sidebar .nav-link {
  color: #37474f;
  padding: 0.65rem 1.25rem;
  border-left: 3px solid transparent;
  font-size: 0.92rem;
}
.app-sidebar .nav-link i { width: 22px; color: var(--brand-accent); }
.app-sidebar .nav-link:hover { background: var(--brand-blue-light); }
.app-sidebar .nav-link.active {
  background: var(--brand-blue-light);
  border-left-color: var(--brand-blue);
  color: var(--brand-blue-dark);
  font-weight: 600;
}

.app-content { flex-grow: 1; padding: 1.5rem; max-width: 100%; }

.card { border: none; border-radius: 0.6rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.card-header { background: #fff; border-bottom: 1px solid #eef1f4; font-weight: 600; color: var(--brand-blue-dark); }

.stat-card { color: #fff; border-radius: 0.6rem; padding: 1.25rem; }
.stat-card.blue { background: linear-gradient(135deg, var(--brand-blue), var(--brand-accent)); }
.stat-card.green { background: linear-gradient(135deg, #1b5e20, #43a047); }
.stat-card.orange { background: linear-gradient(135deg, #e65100, #fb8c00); }
.stat-card.purple { background: linear-gradient(135deg, #4a148c, #8e24aa); }
.stat-card h3 { font-size: 1.9rem; margin-bottom: 0; }
.stat-card .icon { font-size: 2.2rem; opacity: 0.5; }

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

table.table thead { background: var(--brand-blue-light); }

@media (max-width: 991.98px) {
  .app-sidebar { position: fixed; margin-left: calc(-1 * var(--sidebar-width)); z-index: 1020; background:#fff; }
  .app-sidebar.show { margin-left: 0; }
}

/* Print styles for result slips -> used for "Download PDF" via browser print */
@media print {
  .app-navbar, .app-sidebar, .no-print, .btn, footer { display: none !important; }
  .app-content { padding: 0 !important; }
  body { background: #fff !important; }
  .result-slip { box-shadow: none !important; border: 1px solid #000 !important; }
}
