/* Make all checkboxes darker and more visible */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #222;
  border: 2px solid #444;
  background: #222;
  box-shadow: 0 0 2px #222;
}
/* From Uiverse.io by Voxybuns */
button {
  /* Variables */
  --button_radius: 0.75em;
  --button_color: #e8e8e8;
  --button_outline_color: #333000;
  font-size: 12px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: var(--button_radius);
  background: var(--button_outline_color);
}

/* Custom button style: black border & text, white background, pop-out effect on hover (white bg, black text) */
button, input[type="submit"], input[type="button"] {
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #333;
  cursor: pointer;
  border-radius: 0.75em;
  background: #fff;
  color: #333;
  padding: 0.75em 1.5em;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 2px 0 #333, 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: #fff;
  color: #333;
  transform: translateY(-4px);
  box-shadow: 0 6px 0 #333, 0 6px 16px rgba(0,0,0,0.12);
}
button:active, input[type="submit"]:active, input[type="button"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 #333, 0 2px 8px rgba(0,0,0,0.08);
}

/* Bold for leader positions */
.leader-cell {
    font-weight: bold;
}
/* PDF Export Styles */
html, body, .assignments-table-wrapper, .area-block, table, th, td {
    box-sizing: border-box;
}
.assignments-table-wrapper {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.area-block {
  display: table-cell;
  width: 33%;
  vertical-align: top;
  padding-right: 12px;
}
h3 { text-align: center; margin-top: 0; font-size: 1.1em; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1em; font-size: 0.92em; letter-spacing: 0.04em; border: 1.5px solid #333; }
th, td { border: 1px solid #333; padding: 4px 6px; letter-spacing: 0.04em; }
th { background: #d4d4d4; color: #222; font-weight: bold; }
tr:nth-child(even) { background: #e0e0e0; }
body {
    background: #fff;
    color: #222;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.body-style {
    background: #fff;
    color: #222;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
.topnav {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0 auto;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(51,51,51,0.2);
    padding: 12px 16px;
}
.topnav a {
    width: 95%;
    text-decoration: none;
    color: #333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.2s, background-color 0.4s, box-shadow 0.3s;
    padding: 12px 16px;
}
.topnav a:hover, .topnav a.active {
    color: #333;
    background-color: #f0f0f0;
    padding: 12px 16px;
    box-shadow: 0 4px 0 #333, 0 6px 16px rgba(0,0,0,0.12);
}

main {
    width: 95%;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
}
p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #666;
    line-height: 1;
}

/* Floorplan form styles */
.input-row {
    display: flex;
    gap: 1em;
    margin: 2em 0;
}
.input-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Style for custom file input button */
.input-col input[type="file"] {
  display: none;
}
.input-col label.file-upload-label {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #333;
  cursor: pointer;
  border-radius: 0.75em;
  background: #fff;
  color: #333;
  padding: 0.75em 1.5em;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 2px 0 #333, 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
}
.input-col label.file-upload-label:hover {
  background: #fff;
  color: #333;
  transform: translateY(-4px);
  box-shadow: 0 6px 0 #333, 0 6px 16px rgba(0,0,0,0.12);
}
.input-col label.file-upload-label:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 #333, 0 2px 8px rgba(0,0,0,0.08);
}

/* Modern dropdown styles */
.selector-col select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    color: #333;
    border: 2px solid #333;
    border-radius: 0.75em;
    padding: 0.5em 2em 0.5em 0.5em;
    font-size: 12px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 0 #333, 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75em center;
    background-size: 1.2em;
}
.selector-col select:focus {
    border-color: #333;
    box-shadow: 0 4px 0 #333, 0 4px 16px rgba(0,0,0,0.12);
}

/* Increased right padding for Select Time dropdown */
.select-time {
    padding-right: 2em !important;
}

/* Drag & drop highlight for file upload label */
.file-upload-label.dragover {
    border-color: #333 !important;
    background: #f0f0f0 !important;
    color: #000 !important;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

/* Floorplan form layout classes */
.floorplan-controls {
    margin-top: 0.5em;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 600px;
}
.floorplan-row {
    display: flex;
    align-items: center;
    gap: 1em;
}
.btn-min160 {
    min-width: 160px;
}
.btn-min220 {
    min-width: 220px;
}
.staff-table-controls {
    display: flex;
    gap: 2em;
    margin-top: 1em;
    align-items: center;
}
.alert-danger {
    color: #a94442;
    background: #f2dede;
    border: 1px solid #ebccd1;
    padding: 1em;
    margin-bottom: 1em;
}
.flex-align-center {
    display: flex;
    align-items: center;
}
.mr05em {
    margin-right: 0.5em;
}
.ml05em {
    margin-left: 0.5em;
}

/* Tutorial image gallery styles */
.tutorial-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 2em 0;
  justify-content: flex-start;
}
.tutorial-gallery-item {
  background: #fafbfc;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  width: 320px;
  max-width: 100%;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tutorial-gallery-item img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 0.75em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Enforce 1920:910 aspect ratio for gallery images */
.tutorial-gallery-item .aspect-ratio-box {
  position: relative;
  width: 100%;
  padding-top: 47.4%; /* 910 / 1920 = 0.474, so 47.4% for 1920:910 ratio */
  background: #eaeaea;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.tutorial-gallery-item .aspect-ratio-box img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  margin: 0;
  box-shadow: none;
}

.tutorial-gallery-item .caption {
  font-size: 1em;
  color: #333;
  text-align: center;
  margin-top: 0.5em;
}

/* Gallery modal styles */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}
.gallery-modal-content {
  display: block;
  margin: 5vh auto 0 auto;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  background: #fff;
}
.gallery-modal-caption {
  margin: 1em auto 2em auto;
  text-align: center;
  color: #fff;
  font-size: 1.1em;
  max-width: 80vw;
}
.gallery-modal-close {
  position: absolute;
  top: 24px;
  right: 48px;
  color: #fff;
  font-size: 2.5em;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
}
.gallery-modal-close:hover {
  color: #ffb300;
}

/* Gallery carousel styles */
.tutorial-gallery-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2em 0;
  position: relative;
  width: 50vw;
  max-width: 600px;
  min-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-carousel-track {
  width: 100%;
  max-width: 100%;
}
.gallery-carousel-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.gallery-carousel-slide .aspect-ratio-box {
  width: 100%;
}
.gallery-carousel-slide .caption {
  margin-top: 0.75em;
  text-align: center;
  color: #333;
  font-size: 1em;
}
.gallery-nav {
  background: #fff;
  border: 2px solid #333;
  color: #333;
  font-size: 2em;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2;
}
.gallery-nav:hover {
  background: #f0f0f0;
  color: #333;
}

/* Bulletproof: force carousel and images to always respect intended width */
.tutorial-gallery-carousel {
  width: 75vw !important;
  max-width: 960px !important;
  min-width: 320px !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.gallery-carousel-track {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.gallery-carousel-slide {
  width: 100% !important;
  box-sizing: border-box;
}
.aspect-ratio-box {
  width: 100% !important;
  box-sizing: border-box;
}
.aspect-ratio-box img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .tutorial-gallery-carousel {
    width: 96vw !important;
    max-width: 96vw !important;
    min-width: 0 !important;
  }
}