/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
  line-height: 1.5;
  min-height: 100vh;
}

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

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

/* Sidebar */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: #fff;
  border-right: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid #e8eaed;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-section {
  margin-bottom: 0.5rem;
}

.nav-section-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6b7280;
  padding: 0.5rem 0.75rem 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
  background: #f3f4f6;
  color: #1a1a1a;
}

.nav-item.active {
  background: #ecfdf5;
  color: #059669;
}

.nav-item--disabled {
  cursor: default;
  color: #9ca3af;
}

.nav-item--disabled:hover {
  background: transparent;
  color: #9ca3af;
}

.nav-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-item-label {
  font-size: 0.9375rem;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0.5;
}

/* Main content */
.main {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-x: hidden;
}

.main-header {
  margin-bottom: 2rem;
}

.main-title {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.main-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
  font-weight: 400;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8eaed;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-link {
  cursor: pointer;
}

.card-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #d1d5db;
}

.card--disabled {
  opacity: 0.7;
  cursor: default;
}

.card--disabled:hover {
  box-shadow: none;
  border-color: #e8eaed;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-icon--box {
  background: #eff6ff;
  color: #2563eb;
}

.card-icon--doc {
  background: #f0fdf4;
  color: #059669;
}

.card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.card-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}

.card-label {
  font-size: 0.8125rem;
  color: #6b7280;
}

.card-arrow {
  font-size: 1.25rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.card-link:hover .card-arrow {
  color: #059669;
}

.pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pill--soon {
  background: #f3f4f6;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid #e8eaed;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-section-title {
    width: 100%;
  }

  .main {
    padding: 1.5rem 1.25rem;
  }

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