/* ==== Base Styles ==== */
:root {
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --primary: #111827;
  --primary-hover: #1f2937;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --success-border: #a7f3d0;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --error-border: #fecaca;
  --border-color: #ddd;
  --radius: 10px;
}


/* ==== Header / Navigation ==== */
.site-header {
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0 0 2rem 0;
  border-bottom: 1px solid gray;
}

.nav-link {
  color: black;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #61a089;
}

.nav-link.active {
  color: #528170;
  font-weight: 600;
}




/* ==== Body ==== */
body {
  font-family: var(--font);
  background: #fafafa;
  color: #111;
  max-width: 65%;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.5;
}

h1, h2, h3 {
  font-weight: 600;
  color: #111;
}

h1 { margin-bottom: .25rem; }


/* ==== Card ==== */
.card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ==== Form ==== */
label {
  display: block;
  font-weight: 600;
  margin-top: .75rem;
}


select,
textarea {
  width: 100%;
  padding: .65rem .7rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #fff;
  box-sizing: border-box;
  color: black;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button {
  margin-top: 1rem;
  padding: .7rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: var(--primary-hover);
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

button.ghost {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
}

button.ghost:hover {
  background: var(--primary);
  color: #fff;
}

/* ==== Table ==== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: .6rem .55rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  font-size: .92rem;
  color: #444;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.small {
  font-size: .85rem;
  color: #555;
}

.wrap {
  white-space: normal;
  word-break: break-word;
}

.right {
  text-align: right;
}

/* ==== Pills / Badges ==== */
.pill {
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .82rem;
  background: #eef2ff;
  color: #3730a3;
  display: inline-block;
}

/* ==== Message Boxes ==== */
.msg {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.ok {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.err {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
}

/* ==== Toolbar ==== */
.toolbar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  margin: .75rem 0 1.25rem;
}

.toolbar select,
.toolbar input[type="text"] {
  padding: .5rem .6rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  background: #fff;
}

/* ==== Details / History ==== */
details {
  cursor: pointer;
}

details pre {
  margin: .3rem 0 0;
  padding: .5rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: var(--radius);
}

/* ==== Footer ==== */
footer {
  margin-top: 2rem;
  color: #666;
  font-size: .9rem;
  text-align: center;
}

.hint {
  color: #555;
  font-size: .9rem;
  margin-bottom: .5rem;
}





 /* --- Page-specific styling --- */
    .hero {
      text-align: center;
      padding: 5rem 1rem;
      background: linear-gradient(135deg, #e2eae0 0%, #93e997ef 100%);
      color: white;
      border-radius: 16px;
      margin-bottom: 3rem;
    }
    
    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: #528170;
    }

    .hero h2 {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
      color: #2c382e;
    }

    .hero p {
      font-size: 1.1rem;
      max-width: 700px;
      margin: 0 auto 2rem;
      line-height: 1.6;
      color: #3b443d;
      font-weight: 450;
    }

    .hero .cta-buttons {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }
    .hero .cta-buttons a {
      display: inline-block;
      padding: .8rem 1.5rem;
      border-radius: 9999px;
      background: #72d58b;
      color: #111827;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.2s;
    }
    .hero .cta-buttons a:hover {
      background: #10b981;
      color: white;
    }

    .features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2rem;
      margin-bottom: 4rem;
    }
    .feature {
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 14px;
      padding: 1.5rem;
      text-align: center;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
      transition: transform 0.2s ease;
    }
    .feature:hover { transform: translateY(-4px); }
    .feature img {
      width: 60px;
      margin-bottom: 1rem;
    }
    .feature h3 {
      margin-bottom: .5rem;
      font-size: 1.2rem;
      color: #111827;
    }
    .feature p {
      color: #555;
      font-size: .95rem;
      line-height: 1.5;
    }

    .about {
      text-align: center;
      max-width: 850px;
      margin: 0 auto 4rem;
    }
    .about p {
      font-size: 1rem;
      color: #444;
      line-height: 1.6;
    }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}


.modal-box {
  background: white;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.stateSel{
  width: 60%;
}

.deleteBtn {

      color: white;
      border: none;
      border-radius: 8px;
      padding: 0.3rem 0.6rem;
      cursor: pointer;
      transition: background 0.2s;
    }
    .deleteBtn:hover {
      background: #b91c1c;
    }