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

:root {
  --gold: #D4AF37;
  --gold-dark: #B8932F;
  --black: #0B0B0B;
  --charcoal: #1A1A1A;
  --panel: #161616;
  --text: #E8E4D8;
  --text-muted: #A8A192;
  --danger: #C0392B;
  --success: #4C8B4A;
  --warning: #C99A2E;
}

* { box-sizing: border-box; }
body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  margin: 0;
}
h1, h2, h3, .brand { font-family: 'Cinzel', serif; color: var(--gold); }
code, .mono { font-family: 'JetBrains Mono', monospace; }

.sidebar {
  background: var(--charcoal);
  border-right: 2px solid var(--gold-dark);
  width: 220px;
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  padding: 20px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar .brand { display: block; padding: 0 20px 20px 20px; font-size: 20px; border-bottom: 1px solid #2A2A2A; margin-bottom: 12px; }
.sidebar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 20px;
  display: block;
  border-left: 3px solid transparent;
}
.sidebar a:hover { color: var(--gold); background: #1F1F1F; border-left-color: var(--gold-dark); }
.sidebar .logout-link { margin-top: auto; border-top: 1px solid #2A2A2A; padding-top: 12px; }

.main-content { margin-left: 220px; }
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #2A2A2A;
  background: var(--charcoal);
}
.topbar .welcome { color: var(--text); font-size: 14px; }
.topbar .welcome .name { color: var(--gold); font-weight: 600; text-decoration: none; }
.topbar .welcome .name:hover { text-decoration: underline; }
.topbar .welcome .role { color: var(--text-muted); font-size: 12px; margin-left: 8px; }
.container { max-width: 1100px; margin: 0; padding: 24px; }

@media (max-width: 768px) {
  .sidebar { width: 100%; height: auto; position: relative; }
  .main-content { margin-left: 0; }
}

.card {
  background: var(--panel);
  border: 1px solid #2A2A2A;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 18px;
}

.btn {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-danger { background: var(--danger); color: #fff; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid #2A2A2A; text-align: left; }
th { color: var(--gold); font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { background: var(--panel); border-top: 3px solid var(--gold); border-radius: 6px; padding: 18px; text-align: center; }
.stat .value { font-size: 28px; font-weight: 700; color: var(--gold); }
.stat .label { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }

.badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-draft { background: #333; color: var(--text-muted); }
.badge-submitted { background: var(--warning); color: var(--black); }
.badge-approved { background: var(--success); color: #fff; }
.badge-rejected { background: var(--danger); color: #fff; }

input, select, textarea {
  background: var(--charcoal);
  border: 1px solid #333;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 12px;
}
label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 13px; }

.flash { padding: 10px 16px; border-radius: 4px; margin-bottom: 14px; }
.flash-success { background: #1E3A1D; border-left: 3px solid var(--success); }
.flash-danger { background: #3A1D1D; border-left: 3px solid var(--danger); }
.flash-warning { background: #3A311D; border-left: 3px solid var(--warning); }
