/* Define CSS variables for theming */
:root {
  --background-color: #ffffff;
  --text-color: #333333;
  --heading-color: #0056b3;
  --form-background: #f5f5f5;
  --input-border: #ddd;
  --button-primary-bg: #007bff;
  --button-primary-hover-bg: #0056b3;
  --button-secondary-bg: #6c757d;
  --button-secondary-hover-bg: #545b62;
  --button-success-bg: #28a745;
  --button-success-hover-bg: #218838;
  --surface-color: #ffffff;
  --border-color: #e0e0e0;
}

/* Dark mode variables */
[data-theme="dark"] {
  --background-color: #1a1a1a;
  --text-color: #e0e0e0;
  --heading-color: #90caf9;
  --form-background: #2c2c2c;
  --input-border: #444;
  --button-primary-bg: #007bff;
  --button-primary-hover-bg: #0056b3;
  --button-secondary-bg: #424242;
  --button-secondary-hover-bg: #555555;
  --button-success-bg: #28a745;
  --button-success-hover-bg: #218838;
  --surface-color: #2c2c2c;
  --border-color: #444;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--text-color);
}

.account-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1,
h2 {
  color: var(--heading-color);
}

.form-section {
  background: var(--surface-color);
  padding: 30px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  box-sizing: border-box;
  background-color: var(--background-color);
  color: var(--text-color);
}

.btn {
  background: var(--button-primary-bg);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 5px;
  font-size: 1.1em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--button-primary-hover-bg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--button-secondary-bg);
}

.btn-secondary:hover {
  background: var(--button-secondary-hover-bg);
}

.btn-success {
  background: var(--button-success-bg);
}

.btn-success:hover {
  background: var(--button-success-hover-bg);
}

.welcome-message {
  background-color: var(--form-background);
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  border-left: 5px solid var(--heading-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--heading-color);
  color: white;
  font-weight: 600;
}

.status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status.gepland {
  background-color: #e3f2fd;
  color: #1976d2;
}

.status.bezig {
  background-color: #fff3e0;
  color: #f57c00;
}

.status.klaar {
  background-color: #e8f5e8;
  color: #388e3c;
}

.status.pending {
  background-color: #fff3e0;
  color: #f57c00;
}

.status.geaccepteerd {
  background-color: #e8f5e8;
  color: #388e3c;
}

.status.afgewezen {
  background-color: #ffebee;
  color: #d32f2f;
}

.message {
  padding: 15px;
  margin: 15px 0;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f1b0b7;
}
