@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-blue:   #0056b3;
  --secondary-blue: #e6f0fa;
  --primary-red:    #d32f2f;
  --secondary-red:  #ffebee;
  --text-color:     #1e293b;
  --text-muted:     #64748b;
  --bg-color:       #f8f9fa;
  --white:          #ffffff;
  --border-color:   #e2e8f0;
  --surface:        #ffffff;
}

/* ------------------------------------------------------------------ */
/* Base                                                                 */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ */
/* Layout                                                               */
/* ------------------------------------------------------------------ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
}

/* ------------------------------------------------------------------ */
/* Header / Navbar                                                      */
/* ------------------------------------------------------------------ */
header {
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  color: var(--white);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                              */
/* ------------------------------------------------------------------ */
.btn {
  padding: 7px 14px;
  border: none;
  cursor: pointer;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.15s;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}
.btn-primary:hover { background-color: #004494; }

.btn-danger {
  background-color: var(--primary-red);
  color: var(--white);
}
.btn-danger:hover { background-color: #b71c1c; }

/* ------------------------------------------------------------------ */
/* Forms                                                                */
/* ------------------------------------------------------------------ */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-color);
  background: var(--white);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}

/* ------------------------------------------------------------------ */
/* Login Box                                                            */
/* ------------------------------------------------------------------ */
.login-box {
  background: var(--white);
  max-width: 400px;
  margin: 80px auto;
  padding: 32px;
  border-top: 4px solid var(--primary-blue);
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-box h2 {
  color: var(--primary-blue);
  text-align: center;
  margin-top: 0;
  font-size: 22px;
}

/* ------------------------------------------------------------------ */
/* Tables                                                               */
/* ------------------------------------------------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--border-color);
  font-size: 13px;
}

table th,
table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

table th {
  background-color: #f1f5f9;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

table tbody tr:last-child td { border-bottom: none; }

table tbody tr:hover { background-color: #f8faff; }

table tbody tr:nth-child(even) { background-color: #fafbfc; }
table tbody tr:nth-child(even):hover { background-color: #f0f6ff; }

/* ------------------------------------------------------------------ */
/* Modals                                                               */
/* ------------------------------------------------------------------ */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: var(--white);
  margin: 6% auto;
  padding: 28px;
  border-top: 4px solid var(--primary-blue);
  border-radius: 0;
  width: 90%;
  max-width: 560px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  max-height: 88vh;
  overflow-y: auto;
}

.close {
  color: var(--text-muted);
  float: right;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  margin-top: -4px;
}
.close:hover { color: var(--text-color); }

/* ------------------------------------------------------------------ */
/* Alerts                                                               */
/* ------------------------------------------------------------------ */
.alert {
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  display: none;
}

.alert-error {
  background-color: var(--secondary-red);
  color: var(--primary-red);
  border: 1px solid #f5c6c6;
}

.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}