:root {
  /* Gunmetal-Silber Farbpalette */
  --bg: #000000;
  --bg-card: #1A2024;
  --bg-elevated: #242b30;
  --border: #2f373d;
  --border-hover: #4A535A;
  --text: #CFD6DF;
  --text-muted: #8A95A0;
  --text-dim: #4A535A;
  --accent: #CFD6DF;
  --accent-dim: #8A95A0;
  --accent-glow: rgba(207, 214, 223, 0.1);
  --danger: #d4756b;
  --success: #7fb389;
  --warning: #d4a574;
  --info: #6a8aa6;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 200ms ease;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: linear-gradient(180deg, #ffffff 0%, #CFD6DF 50%, #8A95A0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-hover); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(180deg, #CFD6DF 0%, #8A95A0 100%);
  color: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 0 0 1px rgba(74,83,90,0.3);
  font-weight: 600;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #e0e6ee 0%, #9aa5b0 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 0 12px rgba(207,214,223,0.2);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-hover); background: #252525; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-elevated); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}
.btn-danger:hover { background: rgba(255,77,77,0.1); }

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
}

input, textarea, select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }

textarea { resize: vertical; min-height: 100px; }

select option { background: var(--bg-elevated); }

.field-error {
  font-size: 0.8rem;
  color: var(--danger);
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-draft     { background: rgba(74,83,90,0.25); color: var(--text-muted); border: 1px solid rgba(74,83,90,0.3); }
.badge-submitted { background: rgba(106,138,166,0.15); color: var(--info); border: 1px solid rgba(106,138,166,0.3); }
.badge-approved  { background: rgba(127,179,137,0.15); color: var(--success); border: 1px solid rgba(127,179,137,0.3); }
.badge-rejected  { background: rgba(212,117,107,0.15); color: var(--danger); border: 1px solid rgba(212,117,107,0.3); }
.badge-active    { background: rgba(207,214,223,0.1); color: var(--text); border: 1px solid rgba(207,214,223,0.25); }

/* Progress steps */
.steps {
  display: flex;
  gap: 0;
  counter-reset: step;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  transition: all var(--transition);
}
.step::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step:last-child::after { display: none; }
.step.active { color: var(--accent); }
.step.active::before { background: var(--accent); color: #000; border-color: var(--accent); }
.step.done { color: var(--text-muted); }
.step.done::before { background: linear-gradient(180deg, #CFD6DF 0%, #8A95A0 100%); color: #000; border-color: var(--accent); content: '✓'; }

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

/* Alert */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.alert-error { background: rgba(212,117,107,0.1); color: var(--danger); border: 1px solid rgba(212,117,107,0.2); }
.alert-success { background: rgba(127,179,137,0.1); color: var(--success); border: 1px solid rgba(127,179,137,0.2); }
.alert-info { background: rgba(106,138,166,0.1); color: var(--info); border: 1px solid rgba(106,138,166,0.2); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}
.upload-zone:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--text); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }

/* Sidebar layout for dashboard */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 60px);
}
.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
}
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0 1rem;
  margin-bottom: 0.4rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.sidebar-link:hover { color: var(--text); background: var(--bg-elevated); text-decoration: none; }
.sidebar-link.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-glow); }

.main-content { padding: 2rem; overflow-y: auto; }

/* Responsive */
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .bento-wide { grid-column: span 1; }
}

/* Logo */
.nav-logo-img { height: 60px; display: block; }

/* Metallic Icons */
.sidebar-icon {
  width: 22px;
  height: 22px;
  display: block;
  filter: brightness(0.85) saturate(0.7);
  transition: filter var(--transition), transform var(--transition);
}
.sidebar-link:hover .sidebar-icon { filter: brightness(1.1) saturate(0.9); }
.sidebar-link.active .sidebar-icon { filter: brightness(1.2) saturate(1); }

.metal-icon {
  width: 56px;
  height: 56px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
