* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.heading {
  display: flex;
  align-items: center;
  position: fixed;
  height: 5em;
  top: 0;
  left: 0;
  box-sizing: border-box;
  z-index: 100;
  top: 0px;
  width: 100%;
  background: #1e1e1e;
  border-bottom: 5px solid #000;
}

#hamburger-btn {
  width: 67.2px; /* this is apparently 1.2rem + 48px lmaoo */
  min-width: 67.2px; 
  margin-left: 1em;
  background: #353535;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 240ms cubic-bezier(.2,.9,.25,1),
    width 240ms cubic-bezier(.2,.9,.25,1),
    margin-left 240ms cubic-bezier(.2,.9,.25,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
#hamburger-btn:hover {
  background: #505050;
}
#hamburger-btn.open {
  transform: translate(95px, 4.5em); 
  width: 130px;
  margin-left: 0em;
}
.side-menu {
  position: fixed;
  left: 0;
  top: 5em;
  bottom: 0;
  height: calc(100vh - 5em);
  width: max(320px, 22vw);
  transform: translateX(-110%);
  transition: transform 240ms cubic-bezier(.2,.9,.25,1);
  background: #1e1e1e;
  box-shadow: 0 8px 30px rgba(2,6,23,0.15);
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  z-index: 61;
  box-sizing: border-box;
}
.side-menu-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.side-menu-header h3 { margin: 0; font-size: 1.05rem; }
.side-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* list */
.side-menu-list {
  list-style: none;
  padding: 10%;
  margin: 12px 0 0 0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.side-menu-list .side-action {
  background: #353535;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  width: 100%;
  color: #f1f1f1;
  cursor: pointer;
}
.side-menu-list .side-action:hover,
.side-menu-list .side-action:focus {
  background: rgba(0,0,0,0.04);
}

/* footer */
.side-menu-footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: #666;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 48px; 
}
.side-menu-footer small {
  display: block;
  width: 100%;
  margin-top: auto;
  text-align: center;
}

/* backdrop */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 50;
  opacity: 0;
  transition: opacity 160ms ease;
}
.menu-backdrop.show {
  opacity: 1;
}

.header-logo {
  position: fixed;
  display: flex;
  top: 1em;
  left: 85px;
  border-left: solid 2px #d1d1d1;
  padding-left: 10px;
  margin-left: 20px;
  transition:
    left 240ms cubic-bezier(.2,.9,.25,1),
    border-left-width 10ms cubic-bezier(.2,.9,.25,1),
    margin-left 240ms cubic-bezier(.2,.9,.25,1),
    padding-left 240ms cubic-bezier(.2,.9,.25,1);
  gap: 2px;
}
.header-logo.open {
  left: 0px;
  padding-left: 0px;
  border-left-width: 0px;
  margin-left: 0px;
}
.icon {
  border-right: 3em;
}

.title {
  font-size: 40px;     
  font-weight: bold;
  text-decoration: none;
  color: white;
  line-height: 1;     
  display: flex;        
  align-items: center;
}
.suf {
  font-size: 1.5em;
  text-decoration: none;
  color: #7a7a7a;
  transform: translateY(18%);
}


.site-header .logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #f1f1f1;
}

#signin-btn {
  margin-left: auto;
  margin-right: 1.2em;
  background: #353535;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

#signin-btn:hover {
  background: #4752c4;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #1e1e1e;
  color: #f1f1f1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}

/* Container */
.container {
  width: 95%;
  max-width: 1100px;
  background: #2b2b2b;
  border-radius: 16px;
  margin-top: 5em;
  margin-left: 0;
  padding: 2rem;
  transition:
    margin-left 240ms cubic-bezier(.2,.9,.25,1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}
.container.open {
  margin-left: 20%
}

/* Title*/
.container h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: bold;
}

/* Table */
table {
  width: 100%;
  border-spacing: 0;
  border: 2px solid #757575;
  border-radius: 12px;
  overflow: hidden; /* ensures radius clips the content */
}

.table-wrapper {
  display: block;
  overflow-x: auto; 
}

thead {
  background: #3a3a3a;
  cursor: pointer;
}

thead tr:first-child th:first-child {
  border-top-left-radius: 12px;
  border-right: #757575;
  border-width: 0;
  border-right-width: 2px;
  border-style: solid;
}

thead tr:first-child th:last-child {
  border-top-right-radius: 12px;
  border-left: #757575;
  border-width: 0;
  border-left-width: 2px;
  border-style: solid;
}


thead th {
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s;
}

tbody tr:last-child .col-total {
  border-bottom-right-radius: 12px;
}

tbody tr .col-total {
  border-left: #757575;
  border-width: 0;
  border-left-width: 2px;
  border-style: solid;
}

tbody tr:last-child .col-username {
  border-bottom-left-radius: 12px;
}

tbody tr .col-username {
  border-right: #757575;
  border-width: 0;
  border-right-width: 2px;
  border-style: solid;
}

thead th:hover {
  background: #4a4a4a;
}

tbody tr {
  background: #2b2b2b;
  transition: background 0.2s ease;
}

tbody tr:nth-child(even) {
  background: #333333;
}

tbody tr:hover {
  background: #444444;
}

td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #3a3a3a;
  cursor: pointer;
}

.boss-controls { color: #fff; }
.boss-controls button {
  background: #3a3a3a;
  border: 1px solid #555;
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
}
.boss-controls button:active { transform: translateY(1px); }
.boss-controls .boss-label {
  min-width: 64px;
  text-align: center;
  font-weight: 600;
}

@media (min-width: 701px) {
  .boss-controls { display: none; }
}

/* inline expandable row - improved */
.expand-row td { padding: 0; border: 0; background: transparent; }

/* container that animates */
.expand-content {
  margin: 8px 12px;
  background: #222;
  border: 1px solid rgba(58,58,58,0);    /* transparent border so border color change won't shift layout */
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 320px; /* left info, right image */
  gap: 12px;
  align-items: start;
  overflow: hidden;

  /* start state for animation */
  max-height: 0;
  transform: translateY(-12px);
  opacity: 0;
  padding: 0 12px; /* horizontal padding preserved, vertical animated */
  transition:
    max-height 500ms ease,
    transform 500ms ease,
    opacity 500ms ease,
    padding 500ms ease,
    border-color 400ms ease;
}

.expand-row.open .expand-content {
  max-height: 500px;  
  transform: translateY(0);
  opacity: 1;
  padding: 12px;
  border-color: #3a3a3a;
}

.expand-left .expand-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.expand-table td { padding: 6px 8px; vertical-align: top; }
.expand-table td.label { font-weight: 700; color: #ddd; width: 140px; }
.expand-table td.value { color: #fff; }

/* right column: vertical divider + image */
.expand-right {
  padding-left: 12px;
  /* border-left is transparent initially and becomes visible when open */
  border-left: 1px solid rgba(255,255,255,0);
  transition: border-color 400ms ease;
}
.expand-row.open .expand-right { border-left-color: rgba(255,255,255,0.06); }

.expand-right img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* responsive: stack on small screens */
@media (max-width: 700px) {
  .expand-content { grid-template-columns: 1fr; }
  .expand-right { order: 2; border-left-color: rgba(255,255,255,0); padding-left: 0; }
}





.image-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.0);    /* start transparent; animate to dark */
  display: block;
  z-index: 1100;
  transition: background 260ms ease;
  -webkit-tap-highlight-color: transparent;
}

/* the cloned image we animate */
.image-viewer-clone {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: left 320ms cubic-bezier(.2,.8,.2,1),
              top 320ms cubic-bezier(.2,.8,.2,1),
              width 320ms cubic-bezier(.2,.8,.2,1),
              height 320ms cubic-bezier(.2,.8,.2,1),
              transform 320ms cubic-bezier(.2,.8,.2,1);
  will-change: left, top, width, height, transform;
  overflow: hidden;
  cursor: zoom-out;
}

/* the inner img inside the clone (keeps aspect) */
.image-viewer-clone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* visible state: overlay becomes dark */
.image-viewer-overlay.visible {
  background: rgba(0,0,0,0.78);
}

/* optional small fade-in for the clone */
.image-viewer-clone.entering {
  transition-duration: 340ms;
}