/* style.css - Simple, modern stylesheet */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-contrast: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}

header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

main {
  padding: 2rem 0 4rem;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Typography */
.h1, h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 0.5em; }
.h2, h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 1.5em 0 0.5em; }
.h3, h3 { font-size: 1.125rem; margin: 1.25em 0 0.5em; }

p { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--muted); }

/* Links & Buttons */
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.button, button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
}

.button:hover, button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.02);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Forms */
.input, input, textarea, select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.input:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Utilities */
.spacer { height: 1.5rem; }
.center { display: grid; place-items: center; }
.hide { display: none !important; }

/* Responsive tweaks */
@media (max-width: 768px) {
  header { position: static; }
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 8px;
  text-align: left;
}

thead tr {
  background-color: black;
  color: white;
}

/* Every odd row in tbody */
tbody tr:nth-child(odd) {
  background-color: #f2f2f2;
}
