/* Pannello staff AcquaticMC — light */

body.adm { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: var(--bg); }

.adm-side {
  position: sticky; top: 0; height: 100vh; z-index: 5; background: var(--navy); color: #a7bed4;
  display: flex; flex-direction: column; padding: 20px 14px;
}

.adm-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 16px; }
.adm-brand img { width: 40px; height: 40px; object-fit: contain; }
.adm-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.adm-brand b { font-family: var(--display); font-size: 16px; color: #fff; }
.adm-brand i { font-style: normal; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #7dc0ff; }

.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 9px; color: #a7bed4;
  font-family: var(--display); font-size: 14px; font-weight: 500; transition: .16s;
}
.adm-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-nav a.is-on { background: var(--blue); color: #fff; font-weight: 600; }

.adm-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.adm-side-foot a, .adm-side-foot button {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 9px; background: transparent;
  border: 0; color: #8ba7c1; font-family: var(--display); font-size: 13.5px; width: 100%; text-align: left; transition: .16s;
}
.adm-side-foot a:hover, .adm-side-foot button:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.adm-main { display: flex; flex-direction: column; min-width: 0; }
.adm-top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 30px;
  background: #fff; box-shadow: 0 1px 0 rgba(15, 23, 42, .07); position: sticky; top: 0; z-index: 4;
}
.adm-top h1 { font-size: 23px; }
.adm-top-r { display: flex; align-items: center; gap: 16px; font-size: 13.5px; color: var(--grey); }
.adm-top-r .dot.on { box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

.adm-body { padding: 26px 30px 60px; flex: 1; }
.adm-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 30px; border-top: 1px solid var(--line-soft); color: var(--grey-2); font-size: 12.5px; }
.adm-foot .signature a { color: var(--ink); }

.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; margin-bottom: 24px; }
.adm-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.adm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.adm-card .ico { color: var(--blue); }
.adm-card b { display: block; font-family: var(--display); font-weight: 700; font-size: 27px; color: var(--ink); margin-top: 8px; line-height: 1.1; }
.adm-card span { font-size: 12px; color: var(--grey-2); text-transform: uppercase; letter-spacing: 1.1px; }

.adm-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.adm-panel { background: #fff; border: 1px solid var(--line-soft); border-radius: 13px; box-shadow: var(--shadow-sm); overflow: hidden; }
.adm-panel > h3 { padding: 17px 22px; border-bottom: 1px solid var(--line-soft); font-size: 16px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.adm-panel .pad { padding: 20px 22px; }
.adm-panel table.tbl th:first-child, .adm-panel table.tbl td:first-child { padding-left: 22px; }
.adm-panel table.tbl th:last-child, .adm-panel table.tbl td:last-child { padding-right: 22px; }
.adm-panel table.tbl thead th { padding-top: 16px; }

.bars { display: flex; align-items: flex-end; gap: 7px; height: 132px; padding: 14px 4px 0; }
.bars .bar { flex: 1; background: linear-gradient(180deg, var(--blue-hot), var(--blue)); border-radius: 5px 5px 0 0; min-height: 4px; position: relative; animation: grow .7s cubic-bezier(.2, 1, .3, 1) both; }
.bars .bar span { position: absolute; inset: auto 0 -20px; text-align: center; font-size: 10.5px; color: var(--grey-2); }
.bars .bar b { position: absolute; inset: -20px 0 auto; text-align: center; font-size: 11.5px; color: var(--ink); opacity: 0; transition: .18s; font-family: var(--display); }
.bars .bar:hover { filter: brightness(1.08); }
.bars .bar:hover b { opacity: 1; }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } }

.adm-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.adm-toolbar form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-toolbar input, .adm-toolbar select { width: auto; min-width: 200px; padding: 10px 13px; }
.adm-toolbar .spacer { flex: 1; }

.adm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.adm-form .full { grid-column: 1 / -1; }

.mini-list { display: grid; gap: 2px; }
.mini-list .row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.mini-list .row:last-child { border: 0; }
.mini-list .row b { color: var(--ink); }

.img-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.img-cell { position: relative; width: 128px; }
.img-cell img { width: 128px; height: 84px; object-fit: cover; border: 1px solid var(--line-soft); border-radius: 9px; }
.img-cell form { position: absolute; top: 6px; right: 6px; }
.img-cell button { background: var(--bad); border: 0; color: #fff; border-radius: 6px; padding: 5px 6px; line-height: 0; box-shadow: var(--shadow-sm); }

.log-line { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: var(--grey); }
.log-line:last-child { border: 0; }
.log-line b { font-family: var(--display); text-transform: uppercase; letter-spacing: .8px; color: var(--blue); font-size: 10.5px; min-width: 62px; }
.log-line time { margin-left: auto; color: var(--grey-2); font-size: 12px; white-space: nowrap; }

.cmd-box { background: var(--navy); border-radius: 9px; padding: 12px 14px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: #d7e6f5; white-space: pre-wrap; word-break: break-word; }

.login-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: linear-gradient(160deg, #0f2138, #16304f 60%, #12395f); }
.login-box { width: min(420px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); padding: 34px; animation: toastIn .35s cubic-bezier(.2, 1.2, .4, 1) both; }
.login-box img { width: 76px; margin: 0 auto 14px; }
.login-box h1 { font-size: 24px; text-align: center; margin-bottom: 4px; }
.login-box p.sub { text-align: center; color: var(--grey-2); text-transform: uppercase; letter-spacing: 1.4px; font-size: 11.5px; margin: 0 0 26px; font-family: var(--display); }

details > summary { list-style: none; }
details[open] > form { animation: toastIn .22s ease both; }

@media (max-width: 900px) {
  body.adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
  .adm-brand { border: 0; padding: 0; margin: 0; }
  .adm-nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .adm-side-foot { margin: 0; border: 0; padding: 0; flex-direction: row; }
  .adm-grid, .adm-form { grid-template-columns: 1fr; }
  .adm-body, .adm-top, .adm-foot { padding-inline: 18px; }
}
