/* =====================================================
   TONY DA SILVA — PAINEL DE ADMINISTRAÇÃO
   Complemento do admin.css: só os componentes do painel
   (usa as mesmas variáveis e a mesma identidade da galeria).
   Carregar DEPOIS do admin.css.
   ===================================================== */

/* ---------- CABEÇALHO ---------- */

.top .admin-logo { background: #fff; padding: 4px 8px; border-radius: 6px; }
.brand-sub { font-weight: 400; }
.brand-admin { font-weight: 400; font-size: 14px; opacity: .85; letter-spacing: .5px; }

/* ---------- LAYOUT ---------- */

.intro { margin-bottom: 24px; }
.cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.card h2 { font-size: 19px; margin: 0 0 15px; }

/* ---------- PÁGINA DE ENTRADA ---------- */

body.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-page .panel { width: min(440px, 100%); margin: 0; }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.login-brand h1 { margin: 0; font-size: 26px; }
.login-brand h1 span { color: var(--gold-hover); font-weight: 400; }
.login-page .admin-logo { max-width: 150px; max-height: 56px; }
.login-page form button { width: 100%; margin-top: 14px; }

/* ---------- FORMULÁRIOS ---------- */

.field { margin: 12px 0; }
.field label { margin: 0 0 6px; }
.field input, .field select { margin: 0; }
.help { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.notice { color: var(--muted); font-size: 13px; line-height: 1.5; }
.check-label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 14px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: auto; margin: 0; }

/* ---------- BOTÕES ---------- */

.btn.light { background: #fff; color: var(--dark); border-color: var(--border); }
.btn.light:hover { background: var(--surface-soft); color: var(--dark); border-color: var(--gren); }
.btn.red { background: var(--gold); border-color: var(--danger); }

/* ---------- MENSAGENS ---------- */

.msg, .err { padding: 12px 15px; margin: 14px 0; border-radius: 5px; border-left: 4px solid transparent; }
.msg.ok, .ok { background: #edf6ef; color: var(--success); border-left-color: var(--success); }
.msg.err, .err { background: #fff0ef; color: var(--danger); border-left-color: var(--danger); }

/* ---------- SEPARADORES E PESQUISA ---------- */

.tabs { margin: 0 0 14px; }
.tab {
    min-height: 0;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}
.tab:hover { background: rgba(255, 255, 255, .7); color: var(--dark); border-color: transparent; transform: none; }
.tab[aria-selected="true"] { background: #fff; color: var(--dark); border-color: var(--border); }

.searchbox input { margin: 0; }
.q-info { margin: 8px 0; font-size: 13px; color: var(--muted); }

/* ---------- CONTAS ---------- */

.account { margin: 12px 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.account[hidden] { display: none; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.account h3 { margin: 0 0 4px; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.6; }

.account details { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.account details[open] { padding-bottom: 8px; }
.account summary { padding: 4px 0; color: var(--dark); font-weight: 700; cursor: pointer; }
.account summary:hover { color: var(--gold-hover); }

.inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.inline .field { flex: 1; min-width: 180px; }
.inline form { margin: 0; }
.danger { margin-top: 10px; }

/* ---------- ENVIAR E APAGAR FOTOGRAFIAS ---------- */

.up-box { margin-top: 10px; }
.up-box input[type="file"] { width: 100%; margin: 0 0 8px; }
.up-prog { height: 8px; margin-top: 10px; overflow: hidden; background: #e9e6e0; border-radius: 20px; }
.up-bar { width: 0; height: 100%; background: var(--gold); transition: width .2s; }
.up-log { margin-top: 8px; font-size: 13px; line-height: 1.5; }
.up-err { color: var(--danger); }
.up-ok { color: var(--success); font-weight: 700; }

.del-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.del-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; }
.del-item {
    position: relative;
    display: block;
    margin: 0;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 400;
    word-break: break-all;
    cursor: pointer;
}
.del-item img { display: block; width: 100%; height: 80px; margin-bottom: 4px; object-fit: cover; border-radius: 5px; }
.del-item input { position: absolute; top: 10px; left: 10px; width: 18px; height: 18px; }
.del-item:has(input:checked) { border-color: var(--danger); background: #fff0ef; }

.logo-preview { margin: 12px 0; padding: 12px; background: #9b9696; border-radius: var(--radius); text-align: center; }
.logo-preview img { max-width: 100%; max-height: 90px; object-fit: contain; }

/* ---------- RESPONSIVO ---------- */

@media (max-width: 900px) {
    .cols { grid-template-columns: 1fr; }
}
/* MARCA DO ADMIN */
.admin-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    color: #fff;
}

.admin-logo {
    display: block;
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    height: 48px;
    max-height: 48px;
    object-fit: contain;
}

.brand-name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1.2;
}

.brand-sub {
    font-weight: 400;
}

.brand-admin {
    display: block;
    margin-top: 4px;
    color: #e8cda5;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}
.admin-logo {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    height: 46px;
}

.brand-name {
    font-size: 18px;
  }
}