
/* =====================================================
   TONY DA SILVA — PAINEL DE ADMINISTRAÇÃO
   Identidade visual da galeria privada
   ===================================================== */

:root {
    --bg: #f5f5f3;
    --surface: #ffffff;
    --surface-soft: #f0efec;
    --text: #222222;
    --muted: #77736d;
    --dark: #171717;
    --gold: #b99a67;
    --gold-hover: #a38450;
    --border: #e5e2dc;
    --danger: #a94442;
    --success: #477a57;
    --radius: 10px;
    --shadow: 0 5px 22px rgba(0,0,0,.06);
}

/* BASE */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--gold-hover);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--dark);
}

/* CABEÇALHO */

.top,
.admin-top,
.admin-header {
    width: 100%;
    min-height: 90px;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #9b9696;
    color: #fff;
    border-bottom: 3px solid var(--gold);
}

.brand,
.admin-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.brand-logo,
.admin-logo {
    display: block;
    max-width: 180px;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* 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;
  }
}
.brand-name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.top-note {
    color: #fff;
    font-size: 13px;
    letter-spacing: .5px;
}

/* CONTEÚDO */

main,
.wrap,
.container,
.admin-container,
.page-container {
    width: min(1180px, 92%);
    margin: 35px auto;
}

h1, h2, h3, h4 {
    color: var(--dark);
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: clamp(26px, 4vw, 36px);
    margin: 0 0 12px;
}

h2 {
    font-size: 25px;
    margin: 25px 0 15px;
}

h3 {
    font-size: 19px;
}

p,
.muted {
    color: var(--muted);
}

.eyebrow {
    color: var(--gold-hover);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* CARTÕES E PAINÉIS */

.card,
.panel,
.admin-box,
.admin-card,
.dashboard-card,
.client-card,
.form-card,
.login-box,
.stats-card,
.content-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.client-card,
.dashboard-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.client-card:hover,
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 25px rgba(0,0,0,.10);
}

/* GRELHAS */

.admin-grid,
.clients-grid,
.dashboard-grid,
.stats-grid,
.cards-grid,
.client-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* FORMULÁRIOS */

label {
    display: block;
    margin: 8px 0 4px;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    margin: 6px 0 14px;
    background: #fff;
    color: var(--text);
    border: 1px solid #d9d6d0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(185,154,103,.15);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--gold);
}

input[type="file"] {
    max-width: 100%;
    padding: 8px;
    border: 1px dashed #c9c3b9;
    border-radius: 6px;
    background: #faf9f7;
}

/* BOTÕES */

button,
.btn,
input[type="submit"],
input[type="button"],
.btn-action,
.btn-action-admin,
.btn-action-green,
.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 11px 21px;
    border: 1px solid var(--dark);
    border-radius: 6px;
    background: var(--dark);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-1px);
}

button:disabled,
input:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.btn-action-admin {
    background: var(--gold);
    border-color: var(--gold);
}

.btn-action-green {
    background: var(--success);
    border-color: var(--success);
}

.btn-danger,
.btn-delete,
button.danger {
    background: var(--danger);
    border-color: var(--danger);
}

button.secondary,
.btn-secondary,
.btn-light {
    background: #fff;
    color: var(--dark);
    border: 1px solid var(--border);
}

button.secondary:hover,
.btn-secondary:hover,
.btn-light:hover {
    background: var(--surface-soft);
    color: var(--dark);
    border-color: var(--gold);
}

/* BOTÃO DE SAIR */

.btn-deconnexion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.btn-deconnexion:hover {
    background: rgba(255,255,255,.18);
    border-color: #fff;
    color: #fff;
}

/* MENSAGENS */

.error,
.alert-error {
    padding: 12px 15px;
    margin: 12px 0;
    background: #fff0ef;
    color: var(--danger);
    border-left: 4px solid var(--danger);
    border-radius: 5px;
}

.success,
.alert-success {
    padding: 12px 15px;
    margin: 12px 0;
    background: #edf6ef;
    color: var(--success);
    border-left: 4px solid var(--success);
    border-radius: 5px;
}

/* TABELAS */

.table-wrap,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

thead th {
    padding: 13px 14px;
    background: var(--surface-soft);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 12px 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tbody tr:hover {
    background: #faf9f7;
}

/* SEPARADORES */

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 25px 0;
}

/* ABAS */

.tabs,
.admin-tabs,
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
    padding: 8px;
    background: #eeece8;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.tabs a,
.admin-tabs a,
.tab-nav a {
    padding: 8px 14px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.tabs .active,
.admin-tabs .active,
.tab-nav .active {
    background: #fff;
    color: var(--dark);
    border: 1px solid var(--border);
}

/* PRÉ-VISUALIZAÇÃO */

.admin-preview-banner,
.preview-banner {
    margin: 15px 0;
    padding: 14px 18px;
    background: #f4eee2;
    color: #59472d;
    border: 1px solid #e4d3b5;
    border-radius: 7px;
}

/* FOTOGRAFIAS NO ADMINISTRADOR */

.admin-photos,
.photo-list,
.photo-grid,
.manage-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.admin-photo,
.photo-item,
.manage-photo {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.admin-photo img,
.photo-item img,
.manage-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.admin-photo .photo-details,
.photo-item .photo-details {
    padding: 9px 11px;
    overflow-wrap: anywhere;
    font-size: 13px;
}

/* PROGRESSO DE ENVIO */

.progress,
.progress-bar,
.upload-progress {
    width: 100%;
    min-height: 9px;
    overflow: hidden;
    background: #e9e6e0;
    border-radius: 20px;
}

.progress-bar,
.upload-progress > span {
    display: block;
    min-height: 9px;
    background: var(--gold);
    border-radius: inherit;
}

/* RODAPÉ */

footer {
    margin-top: 55px;
    padding: 25px 5%;
    background: var(--dark);
    color: #d0ccc4;
    text-align: center;
    font-size: 13px;
}

/* RESPONSIVO */

@media (max-width: 760px) {
    .top,
    .admin-top,
    .admin-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 4%;
        gap: 12px;
    }

    .brand,
    .admin-brand {
        flex-direction: column;
        gap: 8px;
    }

    .brand-logo,
    .admin-logo {
        max-width: 155px;
    }

    main,
    .wrap,
    .container,
    .admin-container,
    .page-container {
        width: 94%;
        margin: 22px auto;
    }

    .card,
    .panel,
    .admin-box,
    .admin-card,
    .dashboard-card,
    .client-card,
    .form-card,
    .stats-card {
        padding: 17px;
    }

    .table-wrap,
    .table-responsive {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }
}

@media (max-width: 420px) {
    body {
        font-size: 14px;
    }

    .admin-grid,
    .clients-grid,
    .dashboard-grid,
    .stats-grid,
    .cards-grid,
    .client-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 21px;
    }

    .tabs,
    .admin-tabs,
    .tab-nav {
        flex-direction: column;
    }

    .tabs a,
    .admin-tabs a,
    .tab-nav a {
        text-align: center;
    }
}
