:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  
  --primary: #0A5A82; /* UN Dark Blue */
  --primary-hover: #009edb; /* UN Light Blue */
  --accent: #009edb;
  --accent-hover: #0A5A82;
  
  --un-blue: #009edb;
  --un-dark-blue: #0A5A82;
  --un-gray: #4d4d4d;
  --un-light-gray: #f5f5f5;
  --un-border: #eeeeee;
  
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --danger: #ef4444;
  
  --radius: 14px;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.page {
  padding: 48px 0;
}

h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

h1 { 
  font-size: 2.3rem; 
  line-height: 1.25;
}
h2 { 
  font-size: 1.55rem; 
  margin-top: 40px; 
  margin-bottom: 24px;
  font-weight: 800;
}
h3 { 
  font-size: 1.2rem; 
}

p { margin-bottom: 16px; color: #475569; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.bold { font-weight: 700; }

/* Header — a name and a handful of links, nothing else. */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 14px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--un-light-gray);
  text-decoration: none;
}
.site-nav a.active {
  background: var(--primary);
  color: #ffffff;
}

.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}
.lang-switch button {
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
}
.lang-switch button:hover {
  border-color: var(--border);
}
.lang-switch button.active {
  background: var(--un-light-gray);
  color: var(--primary);
}

@media (max-width: 720px) {
  .lang-switch {
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 6px;
  background: var(--text);
}

@media (max-width: 720px) {
  .site-header-inner { padding: 12px 20px; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 6px; }
}

/* Base Card Styling */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* Stat & Metrics Widgets */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
}
.stat-val {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-lbl {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Quick Actions Panel */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.action-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.action-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  text-decoration: none;
}
.action-card h3 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 800;
}
.action-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-size: 0.95rem;
}
.btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  text-decoration: none;
  color: #fff;
}
.btn.ghost {
  background: transparent;
  color: var(--primary);
  border-color: #cbd5e1;
}
.btn.ghost:hover {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
}
.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
}
.btn.accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Badges & Status Tags */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* A project's "completed" and an issue's "resolved" are the same news to a
   reader — one colour, declared once, rather than two rules that drifted
   apart the first time either was touched. */
.badge.completed,
.badge.resolved { background: #d1fae5; color: #065f46; }
.badge.ongoing { background: #fef3c7; color: #92400e; }
.badge.in_progress { background: #dbeafe; color: #1e40af; }
.badge.under_review { background: #f3e8ff; color: #6b21a8; }
.badge.received { background: #f1f5f9; color: #475569; }

/* Form Fields */
.field {
  margin-bottom: 20px;
}
label {
  display: block;
  font-weight: 750;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--primary);
}
input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--card);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.help-text {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.errors {
  color: var(--danger);
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 6px;
}

/* Base list layout */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Footer — one line: who this is, and the three links people actually use. */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner nav {
  display: flex;
  gap: 18px;
}
.footer-inner a {
  color: var(--muted);
}
.footer-inner a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-val {
    font-size: 1.8rem;
  }
}

/* Multi-column Checkbox Grids */
.checkbox-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.checkbox-grid li {
  display: flex;
  align-items: center;
  margin: 0;
}
.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0;
  color: var(--text);
  cursor: pointer;
}
.checkbox-grid input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

/* Interactive Dashboard Lists */
.dashboard-list-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-bottom: 8px;
}
.dashboard-list-item:hover {
  background-color: var(--bg);
  transform: translateX(4px);
}
.dashboard-list-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: background-color 0.2s ease;
}
.dashboard-list-item:hover .dashboard-list-icon {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Two-column Attribute Grid for directories */
.attribute-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.attribute-item {
  background: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
}
.attribute-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.attribute-value {
  font-weight: 700;
  color: var(--text);
}


/* The "Sema Nasi" chooser. One decision, made once, instead of three
   competing entry points in the navigation bar. Each card is a full-width
   tap target because the people this is for are on a phone, often outdoors. */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}
.choice {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0;
  border-left: 4px solid var(--primary);
}
.choice h2 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0 0 8px;
}
.choice p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.choice-next {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* The one call to action that sits apart from the section links. */
.site-nav a.nav-cta {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.active {
  background: var(--primary-hover);
  color: #fff;
}
