/* ================================
   Iron Horse Tech - Base Theme
   ================================ */

:root {
  /* Brand palette (your values) */
  --bg-main: #0b0f14;
  --bg-sidebar: #021324;
  --accent-primary: #7F1900;

  /* Neutrals */
  --panel: rgba(255, 255, 255, 0.06);
  --hover-bg: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.10);

  /* Text */
  --text-main: #f5f7fa;
  --text-muted: rgba(245, 247, 250, 0.70);

  /* Layout */
  --radius: 12px;
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

/* App shell */
#app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* ================================
   Sidebar
   ================================ */

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  padding: 18px 14px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.brand img {
  max-height: 220px;
  width: auto;
}

/* Section title */
.sidebar-section-title {
  margin: 6px 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav container */
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Support BOTH: buttons (infra app) and links (dashboard) */
.nav button,
.nav-link {
  all: unset;
  display: flex;
  align-items: center;
  gap: 10px;

  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;

  color: var(--text-main);
  font-weight: 500;

  transition: background .15s ease;
}

.nav button:hover,
.nav-link:hover {
  background: var(--hover-bg);
}

.nav button.active,
.nav-link.active {
  background: var(--accent-primary);
  color: #fff;
}

/* Loading placeholder inside nav */
.nav-loading {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ================================
   Main content
   ================================ */

.content {
  padding: 24px 28px;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.content-title {
  font-size: 22px;
  font-weight: 800;
}

/* ================================
   Dashboard (Launcher Only)
   ================================ */

.content-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-placeholder {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 900px) {
  #app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }

  .content {
    padding: 18px 16px;
  }
}
