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

:root {
  --bg:        #0a0c10;
  --surface:   #13161d;
  --border:    #1e2330;
  --gold:      #E8A020;
  --gold-dim:  #b37a18;
  --text:      #e8eaf0;
  --muted:     #6b7280;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  margin: 0;
}

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

/* --- Sidebar (Menu Lateral) --- */
.sidebar {
  width: 240px;
  background-color: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text);
}

.sidebar-nav {
  flex-grow: 1;
  padding-top: 16px;
}

.nav-item {
  display: block;
  padding: 12px 24px;
  margin: 0 16px 4px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-item:hover {
  background-color: var(--border);
  color: var(--text);
}

.nav-item.active {
  background-color: var(--gold);
  color: var(--bg);
  font-weight: 500;
}

/* --- Conteúdo Principal --- */
.main-content { flex-grow: 1; display: flex; flex-direction: column; }
.main-header { background: var(--surface); padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.main-header h1 { margin: 0; font-size: 20px; font-family: 'Syne', sans-serif; }
.user-info { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.logout-btn { color: var(--gold); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.logout-btn:hover { color: var(--gold-dim); }
main { padding: 24px; flex-grow: 1; }
