:root {
    --primary: #3498db;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --background-dark: #1a1a1a;
    --background-light: #ffffff;
    --text-dark: #ffffff;
    --text-light: #333333;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
}

[data-theme="dark"] h1 { color: #3498db; }
[data-theme="light"] h1 { color: #2c3e50; }

[data-theme="dark"] {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

[data-theme="light"] {
    background-color: var(--background-light);
    color: var(--text-light);
}

.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.theme-switch {
    display: inline-block;
    height: 60px;
    position: relative;
    width: 30px;
}

.theme-switch input {
    display: none;
}

.switch {
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 4px;
}

.switch-handle {
    bottom: 4px;
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 22px;
    border-radius: 3px;
}

input:checked + .switch .switch-handle {
    transform: translateY(-26px);
}

.switch:before, .switch:after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    border-radius: 2px;
}

.switch:before {
    top: 5px;
}

.switch:after {
    bottom: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
  .modal-content {
      background-color: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 8px;
      margin: 15% auto;
      padding: 20px;
      width: 80%;
      max-width: 500px;
  }

  [data-theme="light"] .modal-content {
      background-color: #f0f0f0;
      border-color: #d0d0d0;
  }

  /* Modal styling for dark theme */
  [data-theme="dark"] .modal-content {
      background-color: #2c3e50;
      border: 1px solid rgba(255, 255, 255, 0.2);
  }

  input[type="text"], 
  input[type="date"], 
  select {
      width: 100%;
      padding: 8px;
      box-sizing: border-box;
      background-color: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 4px;
      color: #e0e0e0;
  }

  [data-theme="light"] input[type="text"],
  [data-theme="light"] input[type="date"],
  [data-theme="light"] select {
      background-color: #ffffff;
      border-color: #d0d0d0;
      color: #333;
  }

  [data-theme="dark"] select,
  [data-theme="dark"] input[type="date"] {
      background-color: #34495e;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.2);
  }

  [data-theme="dark"] select option {
      background-color: #34495e;
      color: #ffffff;
  }

  [data-theme="dark"] .modal-content h2,
  [data-theme="dark"] .modal-content label {
      color: #ffffff;
  }
button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    border-radius: 4px;
}

button:hover {
    background-color: #2980b9;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

#calendar {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

[data-theme="light"] #calendar {
    background: #ffffff;
}

.fc-theme-standard td, 
.fc-theme-standard th {
    border-color: var(--glass-border);
}

[data-theme="light"] .fc-theme-standard td,
[data-theme="light"] .fc-theme-standard th {
    border-color: #ddd;
}

.fc-button {
    background-color: #3498db !important;
    border-color: #3498db !important;
}

.fc-button:hover {
    background-color: #2980b9 !important;
}

.event-list {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

[data-theme="light"] .event-list {
    background: #ffffff;
    border-color: #ddd;
}

#scheduledEvents td {
    padding: 15px;
    vertical-align: middle;
    line-height: 1.5;
}

#scheduledEvents th {
    padding: 12px;
    background-color: var(--bg-highlight);
}

#scheduledEvents tr {
    border-bottom: 1px solid var(--border-color);
}

#scheduledEvents {
    margin-top: 20px;
    width: 100%;
    border-spacing: 0;
}

#scheduledEvents th,
#scheduledEvents td {
    text-align: center;
}

/* Keep the event names left-aligned if preferred */
#scheduledEvents td:first-child {
    text-align: left;
}

.timezone-notice {
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 15px;
}

