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

  h1 {
    color: #2c2c2c;
    font-weight: normal;
  }

  #tabel-container {
    margin-top: 20px;
    /* evt. achtergrond of borders kun je toevoegen */
  }

  .periode {
    width: 5px;
  }

  .datum {
    width: 10px;
    align-content: center;
  }

  .weekend-row {
    background-color: #727272; /* pastelgrijs */
  }
  .green-row {
    background-color:rgb(144, 226, 147); /* pastelgroen */
  }
  .purple-row {
    background-color:rgb(191, 149, 239); /* pastelpaars */
  }
  .today-row {
    background-color:rgb(242, 234, 145); /* pastelgeel */
    font-weight: bold;
  }

.highlight-today {
  background-color: rgba(255, 255, 0, 0.2);
  transition: background-color 1s;
}

/* Configuration page styling */
.config-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.config-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.form-group label {
    width: 120px;
    color: #333;
}

.form-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.periode-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    position: relative;
}

.button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #666;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.button.primary {
    background: #4CAF50;
}

.button.delete {
    background: #ff4444;
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 8px;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.message {
    padding: 10px;
    margin: 20px 0;
    border-radius: 4px;
    display: none;
}

.message.success {
    background: #dff0d8;
    color: #3c763d;
    display: block;
}

.message.error {
    background: #f2dede;
    color: #a94442;
    display: block;
}

.new-year-form {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.new-year-form .form-group {
    margin-bottom: 15px;
}

.new-year-form button {
    margin-top: 10px;
}

.header {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.header img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.header h1 {
  margin: 0;
  font-size: 24px;
  color: #2c2c2c;
  flex: 1;
}

.controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #0066cc;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.button:hover {
  background: #0052a3;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.year-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 150px;
}

.config-container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.config-container .controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.config-container .year-select {
    min-width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

.delete-year {
    background: #ff4444;
    opacity: 0.8;
}

.delete-year:hover {
    opacity: 1;
}

.delete-year:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 12px 8px;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  padding: 10px 8px;
  border-bottom: 1px solid #dee2e6;
  vertical-align: top;
}

tr:hover:not(.weekend-row):not(.green-row):not(.purple-row):not(.today-row) {
  background-color: #f8f9fa;
}

/* Column widths */
.periode { width: 50px; }
.weeknr { width: 60px; }
.dag { width: 70px; }
.datum { width: 100px; }
.starttijd, .eindtijd { width: 80px; }
.activiteit { width: auto; min-width: 200px; }
.locatie { width: 120px; }
.opmerking { width: 200px; }
.eigenaar { width: 120px; }
.nodig { width: 150px; }

/* Special rows */
.weekend-row {
  background-color: #9d9d9d;
  color: #e6e6e6;
}

.green-row {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.purple-row {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.today-row {
  background-color: #fff3e0;
  color: #ef6c00;
  font-weight: 500;
}

/* Responsive table container */
#tabel-container {
  margin: 20px 0;
  overflow-x: auto;
  position: relative;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Empty cells */
td:empty::after {
  content: "—";
  color: #dee2e6;
}

/* Header controls */
.controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.year-select {
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  color: #2c2c2c;
  background-color: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2c2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 40px;
  transition: all 0.2s ease;
}

.year-select:hover {
  border-color: #0066cc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.year-select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.15);
}

/* Tenant switcher styling */
.tenant-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tenant-button {
  padding: 8px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background-color: white;
  color: #2c2c2c;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tenant-button:hover {
  border-color: #0066cc;
  background-color: #f0f5ff;
  color: #0066cc;
}

.tenant-button.active {
  background-color: #0066cc;
  color: white;
  border-color: #0066cc;
}

/* Spinner styling */
.spinner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
}

.spinner-circle {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0066cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner p {
  margin-top: 20px;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* Cache beheer styling */
.cache-section {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.cache-section h3 {
  margin: 0 0 15px 0;
  color: #495057;
  font-size: 16px;
}

.cache-info {
  margin-bottom: 15px;
}

.cache-info p {
  margin: 5px 0;
  font-size: 14px;
  color: #6c757d;
}

.cache-info span {
  font-weight: 500;
}

.cache-info span.valid {
  color: #28a745;
}

.cache-info span.expired {
  color: #dc3545;
}

.cache-info span.none {
  color: #6c757d;
}

.cache-info span.error {
  color: #dc3545;
}

.cache-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cache-actions .button {
  font-size: 14px;
  padding: 8px 16px;
}

.cache-actions .button.secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.cache-actions .button.secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.cache-actions .button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}