/* Fancy Cheese — staff / gallery manager */

.admin-body {
  min-height: 100vh;
}

/* ------------------------------ PIN gate ------------------------------ */

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gate-card {
  width: min(100%, 22rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.gate-logo {
  width: 110px;
}

.pin-dots {
  display: flex;
  gap: 0.8rem;
  min-height: 1rem;
  align-items: center;
  justify-content: center;
}

.pin-dots .dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
}

.pin-dots .dot.filled {
  background: var(--ink);
}

.gate-error {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #a03225;
}

.gate-card.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  width: 100%;
}

.keypad button {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 540;
  padding: 0.85rem 0;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.keypad button:active {
  background: var(--ink);
  color: var(--paper);
  transform: scale(0.97);
}

.keypad .key-alt {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gate-submit {
  width: 100%;
  justify-content: center;
}

.gate-home {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

/* ------------------------------- panel ------------------------------- */

.panel-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.panel-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.panel-head .brand img {
  width: 46px;
}

.panel-actions {
  display: flex;
  gap: 0.6rem;
}

.panel-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
}

.panel-main {
  padding-block: 2rem 5rem;
}

/* dropzone */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 0.8rem;
  padding: clamp(2.2rem, 6vw, 4rem) 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragover {
  background: var(--paper-deep);
  border-color: var(--ink);
  outline: none;
}

.dz-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 560;
  margin: 0;
}

.dz-sub {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* upload progress rows */
.upload-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.upload-row {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  display: grid;
  gap: 0.35rem;
}

.upload-row .name {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}

.upload-row .status-err {
  color: #a03225;
}

.upload-row .bar-track {
  height: 4px;
  background: var(--paper-deep);
  border-radius: 2px;
  overflow: hidden;
}

.upload-row .bar-fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 0.2s ease;
}

/* divider */
.panel-divider {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2.5rem 0 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.panel-divider .count {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* admin gallery grid */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}

.admin-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--paper-deep);
}

.admin-cell img,
.admin-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-cell .del {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 0;
  background: rgba(23, 19, 16, 0.8);
  color: var(--paper);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.admin-cell .del:hover {
  background: #a03225;
  transform: scale(1.08);
}

.admin-cell .tag {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  background: rgba(23, 19, 16, 0.8);
  color: var(--paper);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
}

.admin-empty {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  padding: 2.5rem 0;
}
