
/* =========================================================
   CAREER COMMAND CENTER
   Global Stylesheet
========================================================= */

:root {
  --background: #0b1120;
  --sidebar: #101827;
  --surface: #151f30;
  --surface-light: #1b293d;
  --border: #26354a;
  --text: #edf2fa;
  --muted: #91a0b5;
  --accent: #6d8cff;
  --accent-hover: #829dff;
  --success: #42c99a;
  --warning: #e8b65b;
  --radius: 14px;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

/* SIDEBAR */

.sidebar {
  width: 255px;
  min-width: 255px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  margin-bottom: 48px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7191ff, #4564d9);
  display: grid;
  place-items: center;
  color: white;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.2px;
}

.nav-label {
  padding: 0 12px;
  margin-bottom: 14px;
  color: #73839b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: var(--surface-light);
  color: var(--text);
}

.nav-link.active {
  background: rgba(109, 140, 255, 0.14);
  color: #91a8ff;
}

.nav-icon {
  width: 20px;
  font-size: 18px;
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 9px 4px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.avatar,
.profile-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #344769;
  color: #dbe5ff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.profile-card strong {
  display: block;
  font-size: 12px;
}

.profile-card span {
  color: var(--muted);
  font-size: 11px;
}

/* MAIN CONTENT */

.main-content {
  flex: 1;
  min-width: 0;
  padding: 32px 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.topbar h2 {
  margin-top: 5px;
  font-size: 20px;
  letter-spacing: -0.6px;
}

.eyebrow {
  color: #8da4ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.workspace-status {
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--success);
}

.profile-button {
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
}

/* WELCOME */

.welcome-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 30px;
}

.welcome-section h2 {
  margin-top: 7px;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -1px;
}

.welcome-section p:last-child {
  margin-top: 7px;
  color: var(--muted);
}

/* BUTTONS */

.primary-button,
.secondary-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.primary-button {
  background: var(--accent);
  color: white;
}

.primary-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.secondary-button {
  background: var(--surface-light);
  color: var(--text);
  border-color: var(--border);
}

.secondary-button:hover {
  border-color: var(--accent);
}

.full-width {
  width: 100%;
}

/* METRICS */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 21px;
  box-shadow: var(--shadow);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.metric-card strong {
  display: block;
  margin: 13px 0 5px;
  font-size: 30px;
  letter-spacing: -1px;
}

.metric-note {
  color: #8190a5;
  font-size: 11px;
}

/* DASHBOARD PANELS */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-heading h3 {
  margin-top: 5px;
  font-size: 17px;
  letter-spacing: -0.4px;
}

.panel-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(109, 140, 255, 0.14);
  color: #91a8ff;
  font-size: 20px;
}

.panel-description {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* APPLICATION STUDIO */

.studio-panel label {
  display: block;
  margin-bottom: 9px;
  color: #b6c2d3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.studio-panel textarea {
  width: 100%;
  min-height: 145px;
  resize: vertical;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: #101a2a;
  color: var(--text);
  font-size: 12px;
  line-height: 1.7;
  transition: border 0.2s ease;
}

.studio-panel textarea::placeholder {
  color: #66758b;
}

.studio-panel textarea:focus {
  border-color: var(--accent);
}

.helper-text {
  margin-top: 11px;
  color: #75849a;
  font-size: 10px;
  text-align: center;
}

/* PRIORITIES */

.priorities-panel {
  min-width: 0;
}

.priority-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 0;
  border-top: 1px solid var(--border);
}

.priority-indicator {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid #647895;
  border-radius: 50%;
  margin-top: 2px;
}

.priority-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.priority-item span:last-child {
  color: var(--muted);
  font-size: 11px;
}

/* APPLICATION PIPELINE */

.pipeline-panel {
  min-height: 280px;
}

.text-link {
  color: #91a8ff;
  font-size: 12px;
  font-weight: 600;
}

.text-link:hover {
  color: white;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  text-align: center;
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-light);
  color: #91a8ff;
  font-size: 23px;
}

.empty-state h4 {
  margin-bottom: 7px;
  font-size: 14px;
}

.empty-state p {
  max-width: 380px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* FOOTER */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  color: #73839b;
  font-size: 10px;
  letter-spacing: 0.5px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1050px) {
  .sidebar {
    width: 220px;
    min-width: 220px;
  }

  .main-content {
    padding: 28px 25px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    padding: 17px;
  }

  .brand {
    margin-bottom: 20px;
  }

  .nav-label,
  .sidebar-bottom {
    display: none;
  }

  .navigation {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .nav-link {
    min-width: max-content;
    padding: 0 12px;
    font-size: 12px;
  }

  .main-content {
    padding: 23px 17px;
  }

  .topbar {
    padding-bottom: 20px;
  }

  .workspace-status {
    display: none;
  }

  .welcome-section {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .metric-card {
    padding: 15px;
  }

  .metric-card strong {
    font-size: 25px;
  }

  .metric-label {
    font-size: 9px;
  }

  .panel {
    padding: 18px;
  }

  .footer {
    flex-direction: column;
  }
}
