@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --nati-bg: #f8fafc;
  --nati-card-bg: rgba(255, 255, 255, 0.95);
  --nati-border: #e2e8f0;
  --nati-text: #0f172a;
  --nati-muted: #64748b;
  --nati-indigo: #4338ca;
  --nati-hero-from: #4f46e5;
  --nati-hero-to: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--nati-bg);
  color: var(--nati-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.nati-page {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), #fff);
}

.nati-hero {
  background: linear-gradient(120deg, rgba(79, 70, 229, 0.95), rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.nati-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .nati-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.nati-card {
  background: var(--nati-card-bg);
  border: 1px solid var(--nati-border);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(8px);
}

.nati-card.compact {
  border-radius: 1rem;
}

.nati-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nati-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.nati-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.nati-nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nati-nav-link.is-active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.nati-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.nati-nav-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.nati-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.nati-table thead {
  background: linear-gradient(90deg, rgba(248, 250, 252, 1), rgba(241, 245, 249, 1));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--nati-muted);
}

.nati-table th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
}

.nati-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--nati-border);
}

.nati-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.03);
}

.nati-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(79, 70, 229, 0.12);
  color: var(--nati-indigo);
}

.nati-modal {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
}

.nati-modal-panel {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
}

.nati-modal-panel header {
  border-bottom: 1px solid var(--nati-border);
}

.nati-modal-panel footer {
  border-top: 1px solid var(--nati-border);
}

.btn-primary {
  background: var(--nati-indigo);
  color: #fff;
  border-radius: 0.8rem;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  box-shadow: 0 15px 30px rgba(67, 56, 202, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(67, 56, 202, 0.3);
}

.btn-outline {
  border: 1px solid var(--nati-border);
  border-radius: 0.8rem;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  color: var(--nati-text);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--nati-indigo);
  color: var(--nati-indigo);
  background: rgba(67, 56, 202, 0.08);
}

table caption {
  caption-side: bottom;
  color: var(--nati-muted);
  font-size: 0.75rem;
  padding-top: 0.5rem;
}

.nati-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nati-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nati-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nati-section-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.65rem;
  color: var(--nati-muted);
}

@media (max-width: 1024px) {
  .nati-hero .max-w-6xl {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .nati-card {
    border-radius: 1rem;
  }
}

@media (max-width: 768px) {
  .nati-nav-wrapper {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
  }

  .nati-nav-toggle {
    display: inline-flex;
  }

  .nati-nav {
    width: 100%;
    flex-direction: column;
    display: none;
    margin-top: 0.25rem;
    gap: 0.4rem;
  }

  .nati-nav.is-open {
    display: flex;
  }

  .nati-nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
  }

  main {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .nati-card,
  .nati-card.compact {
    padding: 1.25rem;
    border-radius: 0.9rem;
  }

  .nati-table {
    min-width: 640px;
    font-size: 0.85rem;
  }

  .nati-table-wrapper,
  .nati-table-container,
  .overflow-auto {
    overflow-x: auto;
  }

  .nati-hero img {
    height: 3.5rem;
    width: 3.5rem;
  }
}
