body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  margin: 0;
  padding: 0;
  background: #f3f2f1;
  color: #201f1e;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  display: flex;
  margin-top: 40px;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #6264a7;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  display: none;
  z-index: 2000;
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 400px;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #6264a7;
}

.status {
  font-size: 1.2rem;
  margin: 10px 0;
  font-weight: bold;
}

.metrics {
  margin-top: 20px;
}

.metric {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.metric:hover {
  background: #f9f9f9;
}

.metric:last-child {
  border-bottom: none;
}

.value {
  font-weight: bold;
}

.footer {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #605e5c;
  text-align: center;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #e1dfdd;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.tab:hover {
  background: #d0cecc;
}

.tab.active {
  background: #6264a7;
  color: white;
}

.accordion {
  margin-top: 20px;
  border-top: 1px solid #ddd;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 12px;
  font-weight: bold;
  background: #f3f2f1;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 10px;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: #e8e7e6;
}

.accordion-body {
  display: none;
  margin-top: 10px;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px 14px;
  max-height: 250px;
  overflow-y: auto;
}

.log-entry {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-event {
  font-weight: bold;
  color: #6264a7;
}

.log-time {
  color: #605e5c;
  font-family: monospace;
}

.date-picker {
  margin-bottom: 16px;
  text-align: center;
}

.date-picker input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.timelog-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.85rem;
}

.timelog-table th,
.timelog-table td {
  border: 1px solid #eee;
  padding: 8px;
  text-align: center;
}

.timelog-table th {
  background: #f3f2f1;
  font-weight: bold;
}

.timelog-table tr:hover {
  background: #f9f9f9;
}

.ongoing {
  font-style: italic;
  color: #6264a7;
}

#historyDatePicker {
  margin-bottom: 16px;
  padding: 8px;
  background: #f3f2f1;
  border-radius: 8px;
}

#datePicker {
  padding: 6px 10px;
  border: 1px solid #e1dfdd;
  border-radius: 4px;
  font-family: "Segoe UI", sans-serif;
  color: #201f1e;
}

#datePicker:focus {
  border-color: #6264a7;
  outline: none;
}

label {
  font-weight: bold;
  color: #6264a7;
  margin-right: 8px;
}

.sidebar {
  display: none;
  margin-left: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 300px;
  height: fit-content;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar.visible {
  opacity: 1;
  transform: translateX(0);
}

.away-table {
  width: 100%;
  border-collapse: collapse;
}

.away-table th,
.away-table td {
  border: 1px solid #eee;
  padding: 6px;
  text-align: center;
}

.away-table th {
  background: #f3f2f1;
}

.away-table tr:hover {
  background: #f9f9f9;
}

.historyTab-active .today-only {
  display: none;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #6264a7;
}

input:checked+.slider:before {
  transform: translateX(20px);
}