:root {
  --bg: #121212;
  --fg: #e0e0e0;
  --accent: #bb86fc;
  --border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
}

nav {
  background: var(--border);
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover, nav a.active { background: var(--accent); }

header {
  text-align: center;
  padding: 2rem;
}

.stagger {
  font-size: 4rem;
  font-weight: bold;
  background: linear-gradient(45deg, var(--accent), #03dac6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stagger span {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  animation: staggerIn 0.6s ease forwards;
}

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subheading {
  font-size: 1.5rem;
  color: #999;
  margin-top: 1rem;
}

.masonry {
  column-count: 1;
  column-gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

@media (min-width: 600px) { .masonry { column-count: 2; } }
@media (min-width: 900px) { .masonry { column-count: 3; } }

.block {
  background: var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
  break-inside: avoid;
  position: relative;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } }

.block img { max-width: 100%; height: auto; border-radius: 4px; }

.block table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.block th, .block td {
  border: 1px solid #444;
  padding: 0.5rem;
  text-align: left;
}

.block button.delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #f44336;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
  background: var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

select, textarea, button {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
}

textarea { min-height: 100px; resize: vertical; }

button { background: var(--accent); border: none; cursor: pointer; transition: opacity 0.3s; }

button:hover { opacity: 0.8; }

.now-page { --accent: #00f; }
.absence-page { --accent: #ff5722; }

.just-page nav a[href="Just.html"] { background: var(--accent); } /* Active styles per page */
