:root {
  --primary: #0b3c5d;
  --secondary: #1d70b8;
  --accent: #f4b400;
  --success: #2e7d32;
  --warning: #f9a825;
  --danger: #c62828;
  --light: #f5f7fa;
  --dark: #263238;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--light);
  color: #333;
}

a {
  text-decoration: none;
  color: var(--secondary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
.header {
  background: var(--primary);
  color: #fff;
  padding: 16px 0;
}

.header .brand {
  font-size: 20px;
  font-weight: 600;
}

.header nav a {
  color: #fff;
  margin-left: 20px;
  font-size: 14px;
}

/* Hero */
.hero {
  background: linear-gradient(
      rgba(11, 60, 93, 0.85),
      rgba(11, 60, 93, 0.85)
    ),
    url("../img/hero.jpg") center/cover no-repeat;
  color: #fff;
  padding: 80px 0;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
}

/* Button */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  margin-right: 8px;
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
}

.btn-outline {
  border: 1px solid #fff;
  color: #fff;
}

/* Section */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
}

/* Card */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 30px 0;
  font-size: 14px;
}

/* ===== Internal Layout ===== */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--primary);
  color: #fff;
  padding: 18px 14px;
}

.sidebar .logo {
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.sidebar a {
  display: block;
  color: #dbe7f5;
  padding: 10px 10px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 6px;
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.topbar {
  background: #fff;
  padding: 14px 18px;
  border-bottom: 1px solid #e7edf5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar .title {
  font-weight: 700;
  color: var(--primary);
}

.topbar .user {
  font-size: 13px;
  color: #55616f;
}

.main {
  padding: 18px;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 14px;
}

.kpi .card h2 {
  margin: 0;
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef2f6;
  color: #3a4652;
}

.badge.success { background: #e7f6ea; color: var(--success); }
.badge.warning { background: #fff3dc; color: var(--warning); }
.badge.danger  { background: #fde7e7; color: var(--danger); }

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #eef2f6;
  font-size: 14px;
}

.table th {
  color: #394656;
  background: #f8fafc;
}

