:root {
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --surface-dark: #1e293b;
  --surface-light: #334155;
  --accent: #0ea5e9;
  --accent-light: #06b6d4;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --border: #475569;
  --shadow: rgba(14, 165, 233, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  scrollbar-gutter: stable;
}

body {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  display: flex;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sidebar {
  width: 280px;
  background: var(--surface-dark);
  border-right: 1px solid var(--border);
  padding: 30px 20px;
  box-shadow: 2px 0 6px var(--shadow);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-content h2 {
  font-size: 1.8rem;
  color: var(--accent);
  margin: 0 0 15px 0;
  border: none;
  padding: 0;
}

.greeting-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 25px 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item strong {
  display: block;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.page-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero {
  background: linear-gradient(
    135deg,
    var(--surface-dark) 0%,
    var(--surface-light) 100%
  );
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 6px var(--shadow);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hero .layout {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.hero h1 {
  font-size: 2rem;
  margin: 0;
  color: var(--accent);
  white-space: nowrap;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
}

.navbar {
  background: var(--surface-dark);
  border-bottom: 1px solid var(--border);
  padding: 12px 40px;
  box-shadow: 0 2px 4px var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-links li {
  margin: 0;
  padding: 0;
  border: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 30px 40px;
  overflow-y: auto;
  flex: 1;
}

.card {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow);
  padding: 20px;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px var(--shadow);
  border-color: var(--accent);
}

h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 0 15px 0;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

li {
  margin-bottom: 8px;
  padding: 5px 0;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .hero {
    padding: 12px 24px;
  }

  .hero .layout {
    gap: 20px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .navbar {
    padding: 10px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  main {
    grid-template-columns: 1fr;
    padding: 20px 24px;
  }

  .sidebar {
    width: 240px;
    padding: 20px 15px;
  }

  .sidebar-content h2 {
    font-size: 1.5rem;
  }

  .greeting-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    display: none;
  }

  .page-shell {
    width: 100%;
  }

  .hero {
    padding: 12px 16px;
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .layout {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .hero h1 {
    font-size: 1.5rem;
    white-space: normal;
  }

  .subtitle {
    font-size: 0.85rem;
    white-space: normal;
  }

  .navbar {
    padding: 8px 16px;
  }

  .nav-links {
    gap: 15px;
    flex-direction: column;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  main {
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .card {
    padding: 16px;
  }

  h2 {
    font-size: 1.25rem;
  }
}
