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

:root {
  --bg: #050b14;
  --sidebar: #07111f;
  --panel: rgba(15, 27, 46, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --border-blue: rgba(59, 140, 255, 0.25);
  --blue: #3b8cff;
  --blue-bright: #4aa3ff;
  --green: #3bcb6d;
  --purple: #8b5cf6;
  --text: #f5f7fa;
  --muted: #9aa8bd;
  --muted-dark: #6b7a90;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(59,140,255,.09), transparent 30%),
              var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

/* SIDEBAR */

.sidebar {
  width: 280px;
  min-height: 100vh;
  background: linear-gradient(180deg, #07111f, #050b14);
  border-right: 1px solid var(--border);
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
}

.brand {
  padding: 0 20px 44px;
}

.brand-main {
  font-size: 34px;
  letter-spacing: 3px;
  font-weight: 300;
}

.brand-sub {
  margin-top: 8px;
  color: var(--blue-bright);
  letter-spacing: 5px;
  font-size: 14px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 12px;
  font-size: 16px;
  transition: 0.18s ease;
}

.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.07);
  color: white;
  box-shadow: 0 0 28px rgba(59, 140, 255, 0.12);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--blue-bright);
  box-shadow: 0 0 18px rgba(74, 163, 255, 0.9);
}

.icon {
  color: #9fb0c9;
  font-size: 22px;
  width: 24px;
}

.nav-item.active .icon {
  color: var(--blue-bright);
}

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

.location-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 82px;
}

.location-icon {
  font-size: 28px;
  color: #b9c5d8;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.location-title {
  font-size: 14px;
  font-weight: 700;
}

.location-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.logout {
  text-decoration: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
}

/* MAIN */

.main {
  flex: 1;
  padding: 14px 32px 34px;
  min-width: 0;
}

.topbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-button {
  color: var(--muted);
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

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

.bell {
  position: relative;
  color: #c6d0df;
  font-size: 26px;
}

.bell span {
  position: absolute;
  top: 2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: var(--blue-bright);
  border-radius: 50%;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* HERO */

.hero {
  margin-top: 10px;
  min-height: 350px;
  border: 1px solid var(--border-blue);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1px 1.95fr;
  background:
    linear-gradient(90deg, rgba(8,18,33,.98) 0%, rgba(8,18,33,.82) 42%, rgba(8,18,33,.18) 100%),
    url("./assets/hero-image.jpg");
  background-size: cover;
  background-position: center right;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(59,140,255,.22), transparent 30%);
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 1;
  padding: 58px 52px;
}

.hero-left p {
  font-size: 26px;
  font-weight: 700;
}

.hero-left h1 {
  margin-top: 18px;
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: -1px;
}

.hero-left h2 {
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
}

.hero-divider {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 210px;
  align-self: center;
  background: rgba(255,255,255,.16);
}

.hero-right {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-left: 40px;
}

.hero-project {
  color: var(--blue-bright);
  font-size: 58px;
  font-weight: 800;
}

.hero-title {
  margin-top: 4px;
  font-size: 31px;
  font-weight: 800;
}

.hero-sub {
  color: #d0d8e6;
  font-size: 20px;
  margin-top: 10px;
}

/* PROJECTS */

.projects-section {
  margin-top: 26px;
}

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

.section-header h2 {
  font-size: 25px;
}

.view-all {
  color: white;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 700;
  cursor: pointer;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  min-height: 98px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 250px 1fr 190px 275px;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  box-shadow: 0 16px 45px rgba(0,0,0,.2);
}

.project-code {
  display: flex;
  align-items: center;
  gap: 22px;
}

.project-icon {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 30px;
  border: 1px solid rgba(255,255,255,.1);
}

.project-code strong {
  font-size: 38px;
}

.project-code.blue strong,
.project-code.blue .project-icon {
  color: var(--blue-bright);
}

.project-code.green strong,
.project-code.green .project-icon {
  color: var(--green);
}

.project-code.purple strong,
.project-code.purple .project-icon {
  color: var(--purple);
}

.project-code.blue .project-icon {
  background: linear-gradient(135deg, rgba(59,140,255,.35), rgba(59,140,255,.14));
}

.project-code.green .project-icon {
  background: linear-gradient(135deg, rgba(59,203,109,.35), rgba(59,203,109,.14));
}

.project-code.purple .project-icon {
  background: linear-gradient(135deg, rgba(139,92,246,.38), rgba(139,92,246,.16));
}

.project-info h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.project-info p,
.project-status p {
  color: var(--muted);
  font-size: 15px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 9px;
}

.blue-pill {
  color: #67adff;
  background: rgba(59,140,255,.14);
}

.green-pill {
  color: #56dd82;
  background: rgba(59,203,109,.14);
}

.purple-pill {
  color: #a98cff;
  background: rgba(139,92,246,.16);
}

.doc-button {
  color: white;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 17px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}

/* QUICK ACTIONS */

.quick-actions {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-card {
  text-decoration: none;
  color: white;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-right: 1px solid var(--border);
}

.quick-card:last-child {
  border-right: none;
}

.quick-card span {
  font-size: 36px;
  color: var(--blue-bright);
}

.quick-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.quick-card p {
  color: var(--muted);
  line-height: 1.4;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .sidebar {
    width: 230px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-divider,
  .hero-right {
    display: none;
  }
}
