/* Careers shell — header + left sidebar nav, content panes are the existing
   Resume Builder and Career Roadmap apps loaded untouched in iframes.
   Dark by default; matches the accent used across KPR apps. */

:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1d212a;
  --border: #262b36;
  --text: #e6e8ee;
  --muted: #8a92a3;
  --accent: #f55036;
  --accent-hover: #ff6448;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-2: #eef1f6;
  --border: #d5dae2;
  --text: #1a2340;
  --muted: #6a7688;
  --accent: #d84528;
  --accent-hover: #f55036;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.header-text h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.tagline {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.icon-btn {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  flex: 0 0 auto;
}
.icon-btn:hover {
  border-color: var(--accent);
}

.body-row {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.sidebar {
  flex: 0 0 220px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--panel-2);
}

.nav-item.active {
  background: var(--panel-2);
  border-color: var(--accent);
  color: var(--accent);
}

.nav-icon {
  font-size: 1.05rem;
}

.content {
  flex: 1 1 auto;
  position: relative;
  min-width: 0;
}

.pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  background: var(--bg);
}

.pane.active {
  display: block;
}

@media (max-width: 720px) {
  .body-row {
    flex-direction: column;
  }
  .sidebar {
    flex: 0 0 auto;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .nav-item {
    width: auto;
    white-space: nowrap;
  }
}
