:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-700: #1d4ed8;
  --danger: #dc2626;
  --success: #16a34a;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 1rem; }

label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); text-decoration: none; }

.btn-secondary { background: #6b7280; color: #fff; }
.btn-secondary:hover { background: #4b5563; text-decoration: none; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; text-decoration: none; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; text-decoration: none; }

.msg { margin-top: 0.75rem; font-size: 0.95rem; }
.msg.error { color: var(--danger); }
.msg.success { color: var(--success); }

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

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

/* Header */
header.site-header {
  background: linear-gradient(180deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

header.site-header .header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header.site-header .site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

header.site-header .logo-img {
  height: 44px;
  width: auto;
  display: block;
}

header.site-header .nav-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

header.site-header .nav-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
  font-weight: 700;
}

header.site-header .nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

/* Footer */
footer.site-footer {
  padding: 3rem 1rem;
  background: #0b1220;
  color: #cbd5e1;
  margin-top: 4rem;
  font-size: 0.95rem;
}

footer.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

footer.site-footer .footer-section h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.05rem;
}

footer.site-footer .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer.site-footer .footer-section ul li {
  margin: 0.5rem 0;
}

footer.site-footer .footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
}

footer.site-footer .footer-section ul li a:hover {
  color: #fff;
}

footer.site-footer .footer-bottom {
  border-top: 1px solid rgba(148,163,184,0.25);
  padding-top: 1.5rem;
  text-align: center;
}

@media (max-width: 960px) {
  header.site-header .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
