/* admin.css */

body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: 20px;
  color: #444;
}

.container {
  width: 90%;
  margin: 20px auto;
  box-sizing: border-box;
}

.form-section {
  background-color: #f9f9f9;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 5px;
}
.form-section h2 {
  margin-top: 0;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.form-row label {
  min-width: 120px;
  margin-right: 10px;
  margin-bottom: 5px;
}
.form-row input,
.form-row select {
  margin-right: 20px;
  min-width: 150px;
  padding: 5px;
  margin-bottom: 5px;
}

.calendar-row {
  margin-bottom: 10px;
}
#daysContainer {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5px;
}
#daysContainer label {
  margin-right: 10px;
  margin-bottom: 5px;
}

.table-container {
  background-color: #fff;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 5px;
}
.table-container h2 {
  margin-top: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
th, td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.footer {
  background-color: #f8f9fa;       /* Light gray background for contrast */
  border-top: 1px solid #ddd;      /* Subtle top border */
  padding: 10px;                   /* Spacing all around */
  text-align: center;              /* Center the text */
  font-size: 14px;                 /* Slightly smaller font */
  color: #666;                     /* Medium gray text color */
  margin-top: 20px;                /* Create space above the footer */
}


#backupNotice {
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 14px;
  color: red;
}

/* Buttons */
button {
  cursor: pointer;
  padding: 5px 10px;
  margin: 5px;
}

/* Highlight for new/modified cells */
.highlight {
  outline: 2px solid red;
}

/* admin.css */

/* For the table of days */
.days-table, .days-grid {
  margin-top: 10px;
  border-collapse: collapse;
}

.days-table th, .days-table td,
.days-grid th, .days-grid td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}


/* Make body/html fill the full window height */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

/* The container that occupies the full screen, centers content */
.login-page {
  display: flex;
  align-items: center;  /* center vertically */
  justify-content: center; /* center horizontally */
  height: 100vh;       /* full viewport height */
  background: #f0f0f0; /* a subtle background color */
}

/* The "card" that holds the login form */
.login-box {
  width: 320px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;  /* center text within the card */
}

.login-box h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

/* The login form is displayed as a vertical column */
.login-box form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-box form input {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.login-box form button {
  padding: 10px;
  border: none;
  background: #008b8b; /* Teal color, matches your theme */
  color: #fff;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
.login-box form button:hover {
  background: #006f6f; /* Darker teal on hover */
}

/* Error message styling */
#loginError {
  color: red;
  margin-top: 10px;
}

thead {
  background: #008b8b;
  color: white;
}

/* Base toggle switch container */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;   /* default if not overridden */
  height: 26px;
}

/* Hide the default checkbox */
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

/* The slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 26px; /* round edges */
}

/* The circle handle */
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Checkbox checked (the 'on' position) */
.toggle-switch input:checked + .slider {
  background-color: #008b8b; /* Teal or any preferred color */
}

/* Move the circle handle to the right when checked */
.toggle-switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* Round style for iOS-like look */
.slider.round {
  border-radius: 26px;
}
.slider.round:before {
  border-radius: 50%;
}

/* 
   COMPACT SWITCH OVERRIDES:
   Make the switch about half as wide, 
   while still leaving enough space for the circle handle.
*/
.compact-switch {
  width: 36px;  /* narrower length */
  height: 20px; /* slightly shorter height to match */
}
.compact-switch .slider {
  border-radius: 20px; 
}
.compact-switch .slider:before {
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
}
.compact-switch input:checked + .slider:before {
  transform: translateX(16px); /* less translation for the narrower width */
}

