/* assets/styles/main.css */
:root {
  --navy: #10264b;
  --navy-dark: #09172f;
  --navy-light: #1a3a6f;
  --wine: #7a2638;
  --gold: #c5a46d;
  --gold-hover: #b49258;
  --ink: #202938;
  --muted: #697586;
  --line: #e6e9ef;
  --bg: #f4f5f7;
  --white: #ffffff;
  --green: #18794e;
  --green-bg: #e8f5ee;
  --red: #b42318;
  --red-bg: #fdebea;
  --amber: #a15c07;
  --amber-bg: #fff3df;
  --blue-bg: #eaf0fa;
  --shadow: 0 8px 28px rgba(16, 38, 75, 0.07);
  --shadow-lg: 0 20px 70px rgba(0, 0, 0, 0.18);
  --radius: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 255px;
  background: var(--navy);
  color: #fff;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  padding: 6px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.brand-logo-white {
  width: 100%;
  max-width: 195px;
  max-height: 65px;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
  transition: opacity 0.2s ease;
}

.brand-logo-white:hover {
  opacity: 0.95;
}

.brand small {
  display: block;
  color: var(--gold);
  letter-spacing: 2.2px;
  font-size: 9px;
  margin: 10px 0 0 2px;
  font-weight: 700;
}

.brand-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 1.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-light), var(--wine));
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-badge span {
  color: var(--gold);
}

.brand small {
  display: block;
  color: #c5cfdd;
  letter-spacing: 2px;
  font-size: 9px;
  margin: 8px 0 0 2px;
  font-weight: 600;
}

.nav-label {
  color: #8fa0ba;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  padding: 10px 12px 6px;
  font-weight: 700;
}

.nav button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #dce4f1;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 2px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav button.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3.5px 0 var(--gold);
}

.nav .ico {
  width: 18px;
  text-align: center;
  font-size: 15px;
  opacity: 0.9;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 10px;
  color: #aebbd0;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.4;
}

/* Main Content Area */
.main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.crumb {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.crumb span {
  color: var(--navy);
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.role-badge-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9eef7;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid var(--line);
}

.content {
  padding: 28px 32px;
  max-width: 1550px;
  width: 100%;
  margin: 0 auto;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.h1 {
  font-size: 24px;
  color: var(--navy);
  font-weight: 750;
  margin: 4px 0;
}

.sub {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .sidebar { width: 220px; }
  .content { padding: 22px 20px; }
}

@media (max-width: 768px) {
  .app { display: block; }
  .sidebar { width: 100%; padding: 12px 14px; }
  .brand { margin-bottom: 8px; padding-bottom: 10px; }
  .brand-logo-white { max-height: 40px; max-width: 140px; }
  .brand small { display: none; }
  .nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .nav-label, .sidebar-foot { display: none; }
  .nav button { width: auto; white-space: nowrap; padding: 8px 11px; font-size: 12px; }
  .topbar { height: 56px; padding: 0 16px; }
  .content { padding: 16px; }
  .page-head { flex-direction: column; gap: 12px; }
}

