/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.5;
}

/* =========================
   HEADER
========================= */
header {
  background: #0f172a; /* dark navy */
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 999;
}

header .logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

header nav {
  display: flex;
  gap: 18px;
}

header nav a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

header nav a:hover,
header nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

header .header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

header .logout {
  background: #ef4444;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}

header .logout:hover {
  background: #dc2626;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #222;
  color: #aaa;
  padding: 12px 20px;
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
}

/* =========================
   LAYOUT
========================= */
.container {
  padding: 24px;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   CARDS
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.card {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.card p,
.card strong {
  font-size: 22px;
  font-weight: 600;
  color: #2563eb;
}

/* =========================
   TABLE
========================= */
table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

th {
  background: #f1f5f9;
  text-align: left;
  font-size: 13px;
  color: #555;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

tr:hover td {
  background: #f9fafb;
}

/* =========================
   FORM & INPUT
========================= */
input, select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

input:focus, select:focus {
  outline: none;
  border-color: #2563eb;
}

button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

button:hover {
  background: #1d4ed8;
}

/* =========================
   LOGIN
========================= */
.login-box {
  width: 320px;
  margin: 120px auto;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-box input {
  width: 100%;
  margin-bottom: 12px;
}

.login-box button {
  width: 100%;
  margin-top: 10px;
}

/* =========================
   MESSAGE
========================= */
.error {
  color: #dc2626;
  font-size: 13px;
  margin-bottom: 10px;
}
