html, body {
  background: #14181f;
  color: #eee;
  margin: 0; padding: 0; height: 100%;
  font-family: system-ui, sans-serif;
}

/* Login form & containers */
.login-container {
  width: 90vw; max-width: 430px;
  height: 100vh;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.login-box {
  background: #1f242f;
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.15);
  width: 100%;
}
.login-box label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.login-box input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  background: #14181f;
  border: none;
  border-radius: 1rem;
  color: #eee;
  box-sizing: border-box;
}
.login-box button {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  margin-top: 1rem;
  background: #176f3c;
  color: #fff;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.login-box button:hover {
  background: #1e8e47;
}
.error {
  margin-top: 0.75rem;
  color: #e85a4f;
  font-size: 0.9rem;
  text-align: center;
}

/* Main dashboard/container */
.container {
  width: 86vw; max-width: 480px;
  margin: 0rem auto 1rem auto;
  padding: 0.2rem 1.1rem 1rem 1.1rem;
  background: #1f242f;
  border-radius: 2rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.16);
}
.venue {
  font-size: 1.5rem; text-align: center;
  margin-top: 1.2rem; opacity: 0.85;
  letter-spacing: 1.4px;
  font-weight: bold;
  margin-bottom: 1.2rem;
}
.big-count {
  width: 100%; aspect-ratio: 1/1;
  margin: 2vw auto 0; background: #176f3c;
  color: #fff; border-radius: 2rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.15);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;
  font-weight: bold;
  display: flex; align-items: center;
  justify-content: center; line-height: 1;
  user-select: none; transition: background 0.6s;
  text-align: center;
  position: relative;
  overflow: hidden;

}
.info {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.2rem auto 0 auto;
  max-width: 420px;
  width: 100%;
  font-size: 1.09rem;
  align-items: center;
}

.info-row {
  display: flex; justify-content: space-between;
  opacity: 0.96; font-size: 1.02em;
  width: 280px;
}
.info-label { opacity: 0.6; }
.last-activity {
  text-align: center; margin-top: 1.8rem;
  font-size: 1.01rem; opacity: 0.69;
  letter-spacing: 1.1px;
}

/* Hamburger menu styles */
#hamburger-menu {
  position: fixed;
  top: 18px; right: 16px;
  z-index: 1001;
}
#hamburger-btn {
  width: 38px; height: 38px;
  display: flex; flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #23293a;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.16);
  padding: 0;
}
#hamburger-btn span {
  display: block;
  width: 22px; height: 3px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.2s;
}
/* Drawer style */
#menu-drawer {
  display: none;
  position: fixed;
  top: 62px; right: 16px;
  background: #1f242f;
  border-radius: 1rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.19);
  min-width: 170px;
  padding: 0.75rem 0.5rem;
  z-index: 1002;
}
#menu-drawer.open { display: block; }
#menu-drawer ul {
  list-style: none;
  margin: 0; padding: 0;
}
#menu-drawer li {
  margin: 0.3em 0;
}
#menu-drawer a {
  color: #fff;
  text-decoration: none;
  font-size: 1.07rem;
  padding: 0.38em 1em;
  border-radius: 0.7em;
  display: block;
  transition: background 0.2s;
}
#menu-drawer a:hover {
  background: #176f3c;
}

/* Password/admin card design (links.php) */
h2, h3 { margin-top: 0; }
h2 { font-size: 1.36rem; letter-spacing: 0.6px;}
h3 { font-size: 1.15rem; margin-bottom: 0.7em; letter-spacing: 0.4px;}
label { display: block; margin: 0.8em 0 0.25em; font-weight: 500; }
input[type=text], select {
  width: 100%;
  padding: 0.9em;
  font-size: 1.08em;
  border-radius: 1rem;
  border: none;
  background: #14181f;
  color: #eee;
  box-sizing: border-box;
  margin-bottom: 0.8em;
  margin-top: 0.08em;
}
input[type=text]::placeholder {
  color: #888;
}
input[type=checkbox] {
  accent-color: #176f3c;
  margin-right: 0.7em;
  width: 1.1em; height: 1.1em;
}
button, .copy-btn, .del-btn {
  border: none;
  padding: 0.58em 1.18em;
  font-size: 1em;
  border-radius: 1em;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s;
}
.copy-btn {
  background: #176f3c;
  color: #fff;
}
.copy-btn:active, .copy-btn:hover {
  background: #1e8e47;
}
.del-btn {
  background: #812222;
  color: #fff;
}
.del-btn:active, .del-btn:hover {
  background: #a12b2b;
}
button:active { filter: brightness(0.97); }
.success-box {
  background: #263138;
  border: 1px solid #176f3c;
  color: #c1f5d8;
  padding: 1em;
  border-radius: 1em;
  margin-top: 1.2em;
  margin-bottom: 1em;
  word-break: break-all;
}
.error-box {
  background: #352021;
  border: 1px solid #e85a4f;
  color: #e85a4f;
  padding: 1em;
  border-radius: 1em;
  margin-top: 1.2em;
  margin-bottom: 1em;
}
.pw-cardlist { 
  display: flex; 
  flex-direction: column; 
  gap: 1.5em; 
  margin-top: 1.3em;
}
.pw-card {
  background: #171c23;
  border-radius: 1.3em;
  box-shadow: 0 2px 14px rgba(0,0,0,0.11);
  padding: 1.05em 1.15em 0.9em 1.15em;
  border: 2px solid #263138;
  margin-bottom: 0.3em;
  position: relative;
}
.pw-title {
  font-size: 1.12em;
  font-weight: bold;
  color: #c7e8cc;
  margin-bottom: 0.6em;
  letter-spacing: 0.01em;
}
.pw-row {
  display: flex;
  align-items: center;
  gap: 1.1em;
  margin-bottom: 0.37em;
}
.pw-label {
  font-size: 0.98em;
  color: #8cb894;
  margin-right: 0.24em;
  min-width: 80px;
}
.pw-value {
  font-size: 1.06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 500;
  word-break: break-all;
  color: #ececec;
}
.pw-buttons {
  display: flex;
  gap: 0.7em;
  margin-top: 1.1em;
  align-items: center;
}
.pw-remain {
  background: #222a2c;
  color: #98e4b1;
  font-size: 0.98em;
  border-radius: 0.85em;
  padding: 0.15em 0.9em;
  margin-left: 0.21em;
  font-weight: 500;
  display: inline-block;
  border: 1px solid #253a2e;
}
.logout-link {
  color: #a7e4c2;
  position: fixed;
  bottom: 15px;
  right: 22px;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.74;
  transition: color 0.18s;
}
.logout-link:hover {
  color: #e85a4f;
  opacity: 1;
}

/* === MOBILE OPTIMIZATION === */
  .pw-card { padding: 0.75em 0.65em 0.55em 0.7em; }
  .pw-title { font-size: 1.01em; margin-bottom: 0.35em; }
  .pw-label { min-width: 62px; }
  .pw-buttons { margin-top: 0.7em; }
}
@media (max-width: 500px) {
  .container {
    padding-top: 0.4rem;
  }
  .venue {
    font-size: 1.5rem;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }
  .big-count {
    margin-top: 1.4rem;
    width: 84vw;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1/1;
    font-size: 13vw;
  }
}


.report-top5-table {
    width:100%;
    margin-bottom:36px;
    margin-top:10px;
    border-collapse:separate;    /* <-- Important! */
    border-spacing: 0 16px;      /* <-- This adds vertical space between rows */
    text-align:center;
}
.report-top5-table td,
.report-top5-table th {
    padding: 8px 2px 8px 2px;    /* Top, right, bottom, left */
}

.report-top5-table td:not(:first-child) {
    border-left: 1px solid #40444b;
}

.qr-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.qr-modal-box {
    background: #fff;
    border-radius: 1em;
    box-shadow: 0 2px 32px #0003;
    padding: 2em 2em 1.5em 2em;
    position: relative;
    display: flex; flex-direction: column; align-items: center;
}
.qr-modal-close {
    position: absolute;
    top: 0.7em; right: 1em;
    font-size: 1.6em;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}
.qr-modal img {
    max-width: 250px; max-height: 250px;
    margin-top: 0.4em;
}
.qr-btn {
    background: #17994c !important;
    color: #fff !important;
    margin: 0 0.4em;
    border: none;
    border-radius: 5px;
    padding: 0.32em 1.1em;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.15s;
}
.qr-btn:hover {
    background: #13c170 !important;
}

.status-bar {
  margin-top: 1px;
  text-align: center;
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 3px;
  background: #fc3; /* Default to yellow */
  transition: background 0.2s;
}
.status-dot-yellow { background: #fc3; }
.status-dot-green  { background: #37c449; }
.status-dot-red    { background: #d22; }

.venue-closed-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  background: #d32f2f; /* Material red 700 */
  color: #fff;
  font-weight: bold;
  font-size: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: 10;
}



