:root {
  --bg: #f4f4f4;
  --text: #333;
  --card: #fff;
  --hover: #f1f1f1;
  --primary: #007bff;
  --primary-dark: #0056b3;
}

body.dark {
  --bg: #121212;
  --text: #e0e0e0;
  --card: #1e1e1e;
  --hover: #333;
  --primary: #90caf9;
  --primary-dark: #42a5f5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  padding: 20px;
}

/* Header & Nav */
header {
  background-color: var(--card);
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: 1.5em;
}

nav a {
  margin-left: 15px;
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Forms */
form {
  background-color: var(--card);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 10px 15px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--primary-dark);
}

/* Board Entries */
.board-entry {
  background-color: var(--card);
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-entry a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
}

.board-entry button {
  background-color: crimson;
  padding: 6px 10px;
  font-size: 0.85em;
}

.board-entry button:hover {
  background-color: darkred;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--card);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  position: relative;
}

.modal-content h2 {
  margin-bottom: 10px;
}

.close-button {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

.close-button:hover {
  color: #333;
}

/* Footer */
footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9em;
  color: #777;
}

/* Responsive */
@media (max-width: 600px) {
  nav a {
    display: block;
    margin: 10px 0;
  }
}
