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

:root {
  /* Colors - Soft Beige Theme */
  --bg: #f5f1ea;
  --bg-gradient: linear-gradient(135deg, #f5f1ea 0%, #efeae3 100%);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-hover: rgba(255, 255, 255, 0.9);
  --overlay: rgba(255, 255, 255, 0.4);

  --text: #121212;
  --text-muted: #50596d;
  --text-light: #64748b;

  --primary: #1a1f2b;
  /* Inky black/blue for strong contrast */
  --primary-hover: #000000;
  --accent: #005f73;
  /* Align with brand if needed, or keep neutral */

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);

  --success: #1a7f37;
  --warning: #8a4b00;
  --danger: #9e1b1b;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  --radius-lg: 1.5rem;
  /* 24px */
  --radius-md: 1rem;
  /* 16px */
  --radius-sm: 0.5rem;
  /* 8px */

  --max-width: 1080px;
  --header-height: 70px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  background: var(--bg-gradient);
  background-attachment: fixed;
  /* Parallax-like effect for bg */
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(0, 0, 0, 0.1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 65ch;
  line-height: 1.6;
}

code {
  font-family: 'IBM Plex Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Layout Util */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.panel {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.badge {
  display: inline-block;
  padding: 0.35em 0.8em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background-color: rgba(0, 95, 115, 0.1);
  border-radius: 99px;
  border: 1px solid rgba(0, 95, 115, 0.15);
}

/* Header */
.main-header {
  position: sticky;
  top: 1rem;
  z-index: 100;
  margin-bottom: 2rem;
  padding: 0 1rem;
  /* Padding for the container within wrapper if needed, but usually on wrapper */
  pointer-events: none;
  /* Let clicks pass through outside the navbar */
}

/* The actual navbar geometric box */
.main-header .navbar-inner {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 99px;
  /* Pill shape header */
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  /* Stronger shadow for floating feeling */
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.brand img {
  height: 32px;
  width: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
}

.language-select {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #121212 0%, #4a5568 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-status {
  margin-top: 3rem;
  display: inline-block;
  text-align: left;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.4);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.4);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* Lists */
.flat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flat-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.flat-list li:last-child {
  border-bottom: none;
}

/* Utilities */
.notice {
  padding: 1rem;
  margin: 1rem 0;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}

.notice-success {
  border-left-color: var(--success);
  background: rgba(26, 127, 55, 0.1);
}

.notice-warning {
  border-left-color: var(--warning);
  background: rgba(138, 75, 0, 0.1);
}

.notice-danger {
  border-left-color: var(--danger);
  background: rgba(158, 27, 27, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

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

  .main-header .navbar-inner {
    padding: 0.75rem 1rem;
  }

  nav ul {
    display: none;
    /* simple hide for now, or add hamburger if necessary */
  }

  .table-wrapper,
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}
