/* General Layout */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: #0d0d0d;
  color: #eee;
}


/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.navbar .brand {
  font-weight: bold;
  font-size: 1.2rem;
  color: #d4af37; /* gold brand accent */
}

.navbar a.nav-link {
  color: #bbb;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.2s, border-bottom 0.2s;
  padding-bottom: 2px;
}

.navbar a.nav-link:hover {
  color: #fff;
  border-bottom: 2px solid #d4af37;
}

/* Month navigation */
.month-nav {
  text-align: center;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}
.month-nav ul {
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.month-nav li {
  cursor: pointer;
  color: #eee;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.month-nav li:hover {
  background: #d4af37;
  color: #111;
  font-weight: bold;
}

/* Main content */
main {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

section {
  flex: 1 1 400px;
  background: #141414;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

section h2 {
  margin-top: 0;
  color: #d4af37;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.card {
  background: #1f1f1f;
  border: 1px solid #333;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.card strong {
  color: #eee;
}
.card:hover {
  background: #262626;
}

/* Totals */
#totals {
  margin: 2rem auto;
  text-align: center;
  max-width: 500px;
  background: #111;
  padding: 1.5rem;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.7);
}
#totals h3 {
  margin-top: 0;
  color: #d4af37;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none; /* toggled in JS */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background: #111;
  color: #eee;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  border: 1px solid #333;
  box-shadow: 0 0 15px rgba(0,0,0,0.9);
}

.modal h2 {
  margin-top: 0;
  color: #d4af37;
}

.modal label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.modal input, 
.modal select, 
.modal textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #444;
  background: #1a1a1a;
  color: #eee;
}

.modal button {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: #d4af37;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}
.modal button:hover {
  background: #c49b2a;
}
.modal button[type="button"] {
  background: #444;
  color: #eee;
}
.modal button[type="button"]:hover {
  background: #555;
}

.year-nav {
  text-align: center;
  margin: 1rem 0;
}
.year-nav select {
  background: #1a1a1a;
  color: #d4af37;
  border: 1px solid #444;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 1rem;
}
.btn-delete {
  float: right;
  background: transparent;
  border: none;
  color: #f44336;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-delete:hover {
  color: #ff6659;
}

