/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  padding: 20px;
}

header {
  background-color: #4CAF50;
  padding: 10px 20px;
  margin-bottom: 20px;
}

nav a {
  color: white;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover { text-decoration: underline; }

main {
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
  color: #777;
}

h1, h2, h3 { margin-bottom: 15px; }
ul { list-style: none; margin-bottom: 20px; }
li { margin-bottom: 10px; }

button,
input[type="submit"] {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 3px;
  cursor: pointer;
}
button:hover,
input[type="submit"]:hover {
  background-color: #45a049;
}

form .form-group label {
    display: block;
    margin-bottom: 10px;
  }
    
  form input,
  form select,
  form textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
  }
  
/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th,
table td {
  padding: 8px;
  border: 1px solid #ddd;
  vertical-align: top;
}

table th {
  background-color: #4CAF50;
  color: #fff;
  text-align: left;
}

/* do this instead */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
  }
  
  body.dark-mode main {
    background-color: #1e1e1e;
    box-shadow: 0 2px 6px rgba(255,255,255,0.05);
  }

  body.dark-mode table {
    background-color: #1e1e1e;
    color: #ddd;
    border-color: #444;
  }
  
  body.dark-mode table th {
    background-color: #2e7d32; /* Match your dark green */
    color: #fff;
  }
  
  body.dark-mode table td {
    background-color: #1e1e1e;
    color: #ccc;
    border-color: #444;
  }
  
  /* If you're using Bootstrap .table-striped */
  body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #262626;
  }
  
  /* If you're using .table-hover */
  body.dark-mode .table-hover > tbody > tr:hover {
    background-color: #2a2a2a;
  }

  /* Select boxes */
body.dark-mode select,
body.dark-mode .form-select {
  background-color: #2a2a2a;
  color: #eee;
  border: 1px solid #555;
}

/* Bootstrap cards */
body.dark-mode .card {
  background-color: #1e1e1e;
  color: #ddd;
  border-color: #333;
}

body.dark-mode .card-header {
  background-color: #5a5a5a;
  border-bottom: 1px solid #444;
  color: #eee;
}

body.dark-mode .card-body {
  color: #ddd;
}

/* All form fields */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .form-control {
  background-color: #2a2a2a;
  color: #eee;
  border: 1px solid #555;
}

body.dark-mode .list-group-item {
    background-color: #1e1e1e;
    color: #ddd;
    border-color: #333;
  }

body.dark-mode .list-group-item.active {
    background-color: #2e7d32; /* or your highlight color */
    color: white;
    border-color: #2e7d32;
}

body.dark-mode .list-group-item {
    border: none;
  }

body.dark-mode .text-muted {
color: #aaa !important;
}

body.dark-mode table th {
    background-color: #2e7d32; /* your dark green */
    color: #fff;
    border-color: #444; /* ✅ darken borders */
  }
  
  body.dark-mode table td {
    border-color: #444;
  }

  body.dark-mode .table-bordered {
    border-color: #444;
  }

  a {
    color: #4CAF50;
    text-decoration: none;
  }
  a:hover {
    color: #45a049;
    text-decoration: underline;
  }