body {
  background-color: #212121;
  color: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

/* Desktop: Make room for permanent sidebar */
@media (min-width: 769px) {
  body {
    margin-left: 250px;
  }

  /* Override for pages without menu (like login) */
  body.no-menu {
    margin-left: 0;
  }
}

.container {
  max-width: 31.25em;
  margin: 0 auto;
}
.header {
  background-color: #333;
  color: #f5f5f5;
  padding: 0.625em 1em;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.5em;
}

.header h1 {
  margin: 0;
  font-size: 1.5em;
  flex: 1;
  padding: 0 1em;
  word-wrap: break-word;
  line-height: 1.3;
}

/* Mobile: add padding for hamburger */
@media (max-width: 768px) {
  .header h1 {
    padding-left: 2.5em;
    padding-right: 0.5em;
  }
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625em;
  flex-direction: row;
}
.col {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-right: 0.625em;
}
.content {
  background-color: #f5f5f5;
  padding: 0.625em;
  border-radius: 0.313em;
  color: #333;
}
.footer {
  background-color: #333;
  color: #888;
  padding: 0.5em;
  text-align: center;
  font-size: 0.75em;
  border-radius: 0.313em;
  margin-top: 0.625em;
}
.form-group {
  margin-bottom: 0.625em;

}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.status-row label {
  display: inline;
}
.form-group label {
  display: flex;
  font-weight: bold;
  color: black;
  word-wrap:break-word;
  align-items: center;
}
.form-group input {
  /*padding: 0.313em;*/
  padding: 0 0.94em;
  border-radius: 0.313em;
  border: 0.0625em solid #ccc;
  align-items: center;
  height:2.75em;
  font-size:0.94em;
  /*margin:0.625em auto;*/
}

.input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrapper input {
  flex: 1;
  width: 100%;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 3em;
  flex: 1;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 0.5em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25em 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  line-height: 1;
  color: #666;
  transition: color 0.2s;
  font-weight: 600;
  text-transform: uppercase;
}

.password-toggle:hover {
  color: #333;
}

.password-toggle:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
  border-radius: 0.25em;
}

.toggle-icon {
  display: block;
  user-select: none;
}

input[type="number"]
{
  width: 80%;
}

input[type="checkbox"]
{
    vertical-align: middle;
    word-wrap: break-word;
    width: 1em;
    margin-right: 0.313em;
}

label {
  display: inline-block;
 }

 .label {
  display: block;
  padding: 0.313em 0.625em;
 }

/*.form-group button {*/
/*  padding: 0.313em 0.625em;*/
/*  border: none;*/
/*  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);*/
/*  color: #f5f5f5;*/
/*  border-radius: 0.5em;*/
/*  cursor: pointer;*/
/*  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.5);*/
/*  transition: all 0.3s ease;*/
/*  font-weight: 600;*/
/*  text-transform: uppercase;*/
/*  letter-spacing: 0.05em;*/
/*  border: 1px solid #555;*/
/*}*/

/*.form-group button:hover {*/
/*  background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);*/
/*  box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.6);*/
/*  transform: translateY(-2px);*/
/*  border-color: #666;*/
/*}*/

/*.form-group button:active {*/
/*  transform: translateY(0);*/
/*  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.4);*/
/*  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);*/
/*}*/

.btn {
  padding: 0.313em 0.625em;
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  color: #f5f5f5;
  text-decoration: none;
  border-radius: 0.5em;
  border: 1px solid #555;
  font-size: 0.83em;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.btn:hover {
  background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
  box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
  border-color: #666;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.bigBtn {
  padding: 0.313em;
  margin-right: 0.625em;
  height: 6em;
  width: 6em;
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  color: #f5f5f5;
  text-decoration: none;
  border-radius: 1em;
  border: 2px solid #555;
  font-size: 1em;
  font-weight: 700;
  box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bigBtn:hover {
  background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
  box-shadow: 0 12px 35px 0 rgba(0, 0, 0, 0.7);
  transform: translateY(-3px);
  border-color: #666;
}

.bigBtn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

a {
  margin: 0.625em;
}

.small {
  font-size: 0.75em;
}

#snackbar {
  visibility: hidden;
  min-width: 10.6em;
  margin-left: -5.8em;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 0.13em;
  padding: 1em;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 1.875em;
  font-size: 1.0625em;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#snackbar.error {
  background-color: #c62828;
  color: #fff;
  font-weight: 600;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 1.875em; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 1.875em; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 1.875em; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 1.875em; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; align-items:center; justify-content:center; }
.modal-content { background:#fff; width:min(560px, 92%); border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.25); overflow:hidden;
font-family: sans-serif;
  font-size: 15px;
  color: #222;        }
.modal-header, .modal-footer { padding:12px 16px; background:#f5f5f5; display:flex; align-items:center; justify-content:space-between; }
.modal-body { padding:16px; }
/* Header text */
.modal-header h2 {
  font-size: 18px;
  font-weight: 600;         /* make it bold */
  margin: 0;
  color: #111;
}

/* Labels inside form rows */
.modal-body label {
  font-weight: 500;
  color: #222;
}

/* Inputs for better readability */
.modal-body input,
.modal-body select {
  font-size: 15px;
  color: #111;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Buttons */
.modal-footer .primary {
  font-weight: 600;
  background: #1976d2;
  color: white;
}

.modal-footer .secondary {
  font-weight: 500;
  background: #f0f0f0;
  color: #333;
}
.form-row { margin-bottom:12px; display:flex; gap:12px; align-items:center; }
.form-row label { min-width: 200px; }
.segment-list { display:grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap:6px 14px; max-height: 220px; overflow:auto; padding:8px; border:1px solid #ddd; border-radius:6px; }
.close { border:none; background:transparent; font-size:24px; line-height:1; cursor:pointer; }
.primary { background:#1976d2; color:#fff; border:none; padding:8px 14px; border-radius:6px; cursor:pointer; }
.secondary { background:#e0e0e0; color:#333; border:none; padding:8px 14px; border-radius:6px; cursor:pointer; }
.switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; transition: .2s; border-radius: 22px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; background: white; transition: .2s; border-radius: 50%; }
input:checked + .slider { background: #4CAF50; }
input:checked + .slider:before { transform: translateX(22px); }
table#times { width: 100%; border-collapse: collapse; }
table#times th, table#times td { border-bottom: 1px solid #eee; padding: 8px; text-align: left; }
table#times th { background: #fafafa; }

/* Hamburger Menu Styles */
.hamburger {
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 998;
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #f5f5f5;
  border-radius: 2px;
}

.nav-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  background-color: #2a2a2a;
  transition: left 0.3s ease;
  z-index: 1001;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

/* Desktop: Always show menu */
@media (min-width: 769px) {
  .nav-menu {
    left: 0;
    transition: none;
  }
}

.nav-menu.active {
  left: 0;
}

.nav-menu-header {
  background-color: #333;
  color: #f5f5f5;
  padding: 1em;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  padding: 0;
  display: none;
  position: relative;
  flex-shrink: 0;
}

/* Show close button only on mobile */
@media (max-width: 768px) {
  .menu-close {
    display: block;
  }
}

.menu-close span {
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: #f5f5f5;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transition: all 0.3s ease;
}

.menu-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-close:hover span {
  background-color: #ccc;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  border-bottom: 1px solid #444;
}

.nav-menu a {
  display: block;
  padding: 1em 1.5em;
  color: #f5f5f5;
  text-decoration: none;
  margin: 0;
  transition: background-color 0.2s ease;
}

.nav-menu a:hover {
  background-color: #444;
}

.nav-menu a.active {
  background-color: #555;
  border-left: 4px solid #f5f5f5;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

/* Hide overlay on desktop */
@media (min-width: 769px) {
  .menu-overlay {
    display: none !important;
  }
}

.menu-overlay.active {
  display: block;
}
