:root {
  --brand-navy: #0b2e5c;
  --brand-navy-dark: #071f40;
  --brand-gold: #f2b705;
  --brand-orange: #f57c1f;
  --brand-green: #1e8e3e;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f4f6fa;
  color: #1f2937;
}

/* Navbar */
.app-navbar {
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  border-bottom: 3px solid var(--brand-gold);
}

/* Layout */
.app-wrapper {
  display: flex;
  min-height: calc(100vh - 64px);
}
.app-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  min-height: 100%;
}
.app-content {
  flex: 1;
  padding: 24px;
  min-width: 0;
}
.sidebar-overlay { display: none; }

.nav-link {
  color: #cfe0f5 !important;
  border-radius: 8px;
  margin-bottom: 4px;
  padding: 10px 14px !important;
}
.nav-link i { margin-right: 8px; }
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff !important; }
.nav-link.active {
  background: var(--brand-gold);
  color: var(--brand-navy-dark) !important;
  font-weight: 600;
}

/* Cards */
.card { border: none; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.card-stat { border-left: 5px solid var(--brand-navy); }
.card-stat.stat-danger { border-left-color: #dc3545; }
.card-stat.stat-warning { border-left-color: #f2b705; }
.card-stat.stat-success { border-left-color: #1e8e3e; }
.card-stat.stat-info { border-left-color: #0dcaf0; }

.stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
}

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

.table thead th {
  background: var(--brand-navy);
  color: #fff;
  white-space: nowrap;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 60%, #051227 100%);
  padding: 20px;
}
.login-card {
  max-width: 430px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}
.login-header {
  background: #fff;
  padding: 28px 24px 16px;
  text-align: center;
}
.login-logos img { height: 56px; margin: 0 6px; object-fit: contain; }
.login-body { padding: 28px 32px 32px; background: #fff; }

.badge { font-weight: 500; }

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    left: -260px;
    top: 64px;
    bottom: 0;
    z-index: 1050;
    transition: left .25s ease;
    overflow-y: auto;
  }
  .app-sidebar.show { left: 0; }
  .sidebar-overlay.show {
    display: block;
    position: fixed; inset: 64px 0 0 0;
    background: rgba(0,0,0,.4);
    z-index: 1040;
  }
}

.footer-logos img { height: 40px; margin: 0 8px; }

/* Print */
@media print {
  .app-navbar, .app-sidebar, .app-footer, .no-print { display: none !important; }
  .app-content { padding: 0 !important; }
}
