/* Light, clean UI — palette requested by user
   Primary: #48359e
   Surfaces: #ffffff
   Background: #f5f6fa
*/
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #e6e8ef;
  --text: #111827;
  --muted: #6b7280;
  --accent: #48359e;
  --accent-600: #3f2f8d;
  --accent-100: #edeaf9;
  --ok: #16a34a;
  --warn: #f59e0b;
  --bad: #dc2626;
  --shadow: 0 4px 16px rgba(17, 24, 39, .08);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.container {
  max-width: 980px;
  margin: 48px auto;
  padding: 28px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 10px;
  line-height: 1.2;
  font-size: 28px;
  letter-spacing: -.01em
}

h2 {
  margin: 18px 0 10px;
  font-size: 20px;
  letter-spacing: -.01em
}

p {
  color: var(--muted)
}

nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--accent);
  border: 1px solid #e6e0fb
}

nav a:hover {
  background: #e7e2fb
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between
}

label {
  display: block;
  margin: 12px 0 6px;
  color: #374151;
  font-weight: 600
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: border .15s ease, box-shadow .15s ease, background .15s ease;
}

input::placeholder {
  color: #9ca3af
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(72, 53, 158, .12);
}

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), var(--accent-600));
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 14px rgba(72, 53, 158, .25);
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}

button:hover {
  filter: brightness(1.05)
}

button:active {
  transform: translateY(1px)
}

button.secondary {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid #dedbf7;
  box-shadow: none;
}

button.secondary:hover {
  background: #f6f5fe
}

.flash {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e7e9f4;
  background: #f9fafc;
  border-radius: 12px;
  margin-bottom: 14px;
  color: white;
  background: #38b000;
  font-weight: 900;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border)
}

.table thead th {
  background: var(--accent-100);
  color: #2b244f;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid #e6e0fb;
  padding: 12px
}

.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: #fff
}

.table tr:last-child td {
  border-bottom: 0
}

.table tbody tr:hover td {
  background: #fcfcff
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent
}

.badge.pending {
  background: #fff7ed;
  color: #9a3412;
  border-color: #ffedd5
}

.badge.approved {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0
}

.badge.rejected {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca
}

footer {
  opacity: .7;
  font-size: 12px;
  margin-top: 18px
}

.container>.row h1 {
  background: linear-gradient(90deg, var(--accent), #6c5dd3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}