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

:root {
  /* --- Colors --- */
  --bg-primary: #0B0D10;
  --bg-secondary: #12151B;
  --text-primary: #E6E8EB;
  --text-secondary: #8B9098;
  --accent-main: #C7A86A;
  --border-subtle: #1C2028;

  /* --- Font --- */
  --font-family: 'Inter', sans-serif;

  /* --- Border radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* --- Spacing --- */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;

  /* --- Font sizes --- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: clamp(2.5rem, 5vw, 4rem);

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.4);
}

/* ============================
   GLOBAL
============================ */
* {
  box-sizing: border-box;
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  outline: none;
}

/* ============================
   HEADINGS
============================ */
h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-primary);
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================
   TEXT
============================ */
p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* ============================
   BUTTONS
============================ */
.btn-primary {
  background-color: var(--accent-main);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(199, 168, 106, 0.5);
}

/* ============================
   CARDS
============================ */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--gap-lg);
  transition: all 0.2s;
}

.card:hover {
  border-color: rgba(199, 168, 106, 0.3);
}

/* ============================
   STAT BADGES
============================ */
.stat-badge {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: var(--text-xs);
  color: var(--text-primary);
}

.stat-badge svg {
  color: var(--accent-main);
  width: 1rem;
  height: 1rem;
}

/* ============================
   SIDEBAR
============================ */
.sidebar {
  width: 16rem;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  height: 100vh;
  padding: var(--gap-lg);
  position: fixed;
}

.sidebar nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: transparent;
  position: relative;
  margin-bottom: var(--gap-xs);
  transition: all 0.2s;
}

.sidebar nav button.active {
  color: var(--accent-main);
  background-color: #1C2028;
}

.sidebar nav button.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 2px;
  height: 2rem;
  background-color: var(--accent-main);
  border-radius: var(--radius-sm);
}

/* ============================
   ACCORDION
============================ */
.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--gap-sm);
}

.accordion-header {
  background-color: var(--bg-secondary);
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 500;
}

.accordion-content {
  background-color: var(--bg-secondary);
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ============================
   TABLES
============================ */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}

.table th {
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
}

.table td {
  color: var(--accent-main);
  font-family: monospace;
}

/* ============================
   FOOTER
============================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--gap-lg) 0;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
}
