/* AirTech Gallery Admin — standalone styling (uses style.css variables) */
.admin-body {
  background: #0E1A3A;
  color: #E7EEFB;
  font-family: var(--font-body, "Manrope", sans-serif);
  min-height: 100vh;
}

/* ---------- Login ---------- */
.admin-login {
  max-width: 400px;
  margin: 8vh auto;
  background: #fff;
  color: #0A1A3C;
  border-radius: 18px;
  padding: 38px 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  text-align: center;
}
.admin-login__logo { display: inline-block; margin-bottom: 14px; }
.admin-login__logo img { height: 46px; }
.admin-login h1 {
  font-family: var(--font-display, "Big Shoulders Display", sans-serif);
  font-size: 1.9rem; font-weight: 900; text-transform: uppercase; letter-spacing: .5px;
}
.admin-login__sub { color: #5A6B8C; margin: 4px 0 22px; font-size: .95rem; }
.admin-login__back { display: inline-block; margin-top: 18px; color: #2E6BD6; font-weight: 600; font-size: .9rem; }

.admin-form { text-align: left; }
.admin-form label { display: block; font-weight: 700; font-size: .85rem; margin: 14px 0 6px; }
.admin-form input {
  width: 100%; padding: 12px 14px; border: 1.5px solid #D5DEEE; border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #F7FAFF;
}
.admin-form input:focus { outline: none; border-color: #2E6BD6; background: #fff; }

/* ---------- Buttons ---------- */
.admin-btn {
  display: inline-block; cursor: pointer; border: 0; border-radius: 10px;
  font-family: inherit; font-weight: 800; font-size: .95rem; padding: 12px 20px;
  text-decoration: none; transition: transform .15s, filter .15s;
}
.admin-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.admin-btn--gold { background: linear-gradient(135deg, #FFD301, #FFB300); color: #0A1A3C; width: 100%; margin-top: 22px; }
.admin-btn--ghost { background: rgba(255,255,255,.12); color: #fff; padding: 9px 16px; font-size: .85rem; }

/* ---------- Dashboard ---------- */
.admin-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; background: #0A142C; border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 10;
}
.admin-top__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 1.25rem; letter-spacing: .5px; text-transform: uppercase; }
.admin-top__brand img { height: 34px; }
.admin-top__actions { display: flex; gap: 10px; }

.admin-main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.admin-card {
  background: #16234A; border: 1px solid rgba(255,255,255,.07); border-radius: 16px;
  padding: 24px 26px; margin-bottom: 26px;
}
.admin-card h2 {
  font-family: var(--font-display, sans-serif); font-size: 1.5rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 12px;
}
.admin-count { background: #2E6BD6; color: #fff; font-size: .8rem; font-weight: 700; padding: 2px 11px; border-radius: 100px; font-family: var(--font-body, sans-serif); }
.admin-muted { color: #9DB0D4; font-size: .92rem; margin-bottom: 16px; }

.admin-upload label { display: block; font-weight: 700; font-size: .85rem; margin: 14px 0 6px; }
.admin-upload input[type="text"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid rgba(255,255,255,.15); border-radius: 10px;
  background: #0E1A3A; color: #fff; font-family: inherit; font-size: .95rem;
}
.admin-upload input[type="file"] {
  width: 100%; padding: 16px; border: 2px dashed rgba(255,255,255,.22); border-radius: 12px;
  background: #0E1A3A; color: #C7D4EC; cursor: pointer;
}
.admin-upload .admin-btn--gold { width: auto; padding: 13px 30px; }

/* ---------- Items grid ---------- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.admin-tile { position: relative; background: #0E1A3A; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.admin-tile__media { position: relative; aspect-ratio: 4 / 3; background: #060d22; border-radius: 12px 12px 0 0; overflow: hidden; }
.admin-tile__media img, .admin-tile__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-tile__badge {
  position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.65); color: #fff;
  font-size: .62rem; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px;
}
.admin-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.admin-tile__title { font-size: .82rem; color: #C7D4EC; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-tile__del {
  flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 7px; cursor: pointer;
  background: rgba(224, 69, 90, .15); color: #FF6B7E; font-size: 1.2rem; line-height: 1;
}
.admin-tile__del:hover { background: #E0455A; color: #fff; }

/* Edit / replace popover */
.admin-tile__actions { display: flex; align-items: center; gap: 6px; }
.admin-edit { position: static; }
.admin-tile__edit {
  list-style: none; cursor: pointer; width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center; font-size: .9rem;
  background: rgba(46, 107, 214, .18); color: #9DC2FF;
}
.admin-tile__edit::-webkit-details-marker { display: none; }
.admin-tile__edit::marker { content: ""; }
.admin-edit[open] .admin-tile__edit { background: #2E6BD6; color: #fff; }
.admin-edit__form {
  position: absolute; left: 10px; right: 10px; z-index: 25; margin-top: 6px;
  background: #0A142C; border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
  padding: 12px 14px; box-shadow: 0 20px 46px rgba(0,0,0,.55);
}
.admin-edit__form label { display: block; font-size: .72rem; font-weight: 700; margin: 8px 0 4px; color: #9DB0D4; }
.admin-edit__form input[type="text"] {
  width: 100%; padding: 8px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px;
  background: #0E1A3A; color: #fff; font-size: .85rem; font-family: inherit;
}
.admin-edit__form input[type="file"] { width: 100%; font-size: .76rem; color: #C7D4EC; margin-top: 2px; }
.admin-edit__save { width: 100%; margin-top: 12px; padding: 9px; font-size: .82rem; }

/* ---------- Alerts ---------- */
.admin-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; font-size: .92rem; }
.admin-alert--ok { background: rgba(46, 204, 113, .15); color: #7CF0A8; border: 1px solid rgba(46, 204, 113, .35); }
.admin-alert--error { background: rgba(224, 69, 90, .15); color: #FF8B9A; border: 1px solid rgba(224, 69, 90, .35); }

@media (max-width: 520px) {
  .admin-top { flex-direction: column; gap: 12px; }
  .admin-login { margin: 4vh 16px; padding: 30px 24px; }
}
