/* ============================================
   ADMIN - Estilos
   Tema: Sidebar escura + conteúdo claro
   Fonte: Poppins
   ============================================ */

:root {
    --adm-sidebar-w: 240px;
    --adm-topbar-h: 56px;
    --adm-bg: #f1f5f9;
    --adm-sidebar-bg: #0f172a;
    --adm-sidebar-hover: rgba(255,255,255,.06);
    --adm-sidebar-active: rgba(34,197,94,.15);
    --adm-sidebar-active-border: #22c55e;
    --adm-text: #334155;
    --adm-text-light: #64748b;
    --adm-border: #e2e8f0;
    --adm-white: #ffffff;
    --adm-verde: #16a34a;
    --adm-verde-light: #22c55e;
    --adm-azul: #1d4ed8;
    --adm-danger: #dc2626;
    --adm-warning: #d97706;
    --adm-success: #16a34a;
    --adm-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --adm-shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --adm-radius: 10px;
    --adm-radius-sm: 6px;
    --font: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.admin-body {
    font-family: var(--font);
    font-size: 13.5px;
    background: var(--adm-bg);
    color: var(--adm-text);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ===== TOPBAR ===== */
.adm-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--adm-topbar-h);
    background: var(--adm-white);
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    z-index: 1000;
    box-shadow: var(--adm-shadow);
}
.adm-topbar-left { display: flex; align-items: center; gap: .875rem; }
.adm-burger {
    background: none; border: none;
    font-size: 1.3rem; color: var(--adm-text);
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; transition: background .15s;
}
.adm-burger:hover { background: var(--adm-bg); }
.adm-brand {
    display: flex; align-items: center; gap: .5rem;
    font-size: .95rem; font-weight: 700; color: var(--adm-text);
    letter-spacing: -.3px;
}
.adm-brand i { color: var(--adm-verde); font-size: 1.1rem; }
.adm-brand em { color: var(--adm-verde); font-style: normal; }

.adm-topbar-right { display: flex; align-items: center; gap: .5rem; }
.adm-topbar-btn {
    display: flex; align-items: center; gap: .35rem;
    padding: .4rem .75rem;
    border-radius: var(--adm-radius-sm);
    font-size: .78rem; font-weight: 500; color: var(--adm-text-light);
    transition: all .15s;
    border: 1px solid var(--adm-border);
}
.adm-topbar-btn:hover { background: var(--adm-bg); color: var(--adm-text); }

/* User menu */
.adm-user-menu {
    display: flex; align-items: center; gap: .5rem;
    padding: .35rem .625rem; border-radius: var(--adm-radius-sm);
    cursor: pointer; position: relative;
    transition: background .15s;
    border: 1px solid var(--adm-border);
}
.adm-user-menu:hover { background: var(--adm-bg); }
.adm-user-avatar {
    width: 30px; height: 30px;
    background: var(--adm-verde);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.adm-user-info span { display: block; font-size: .8rem; font-weight: 600; line-height: 1.2; }
.adm-user-info small { color: var(--adm-text-light); font-size: .68rem; text-transform: capitalize; }
.adm-dropdown-arrow { font-size: .7rem; color: var(--adm-text-light); transition: transform .2s; }
.adm-user-menu.open .adm-dropdown-arrow { transform: rotate(180deg); }
.adm-user-dropdown {
    display: none;
    position: absolute; top: calc(100% + .5rem); right: 0;
    background: white; border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius); box-shadow: var(--adm-shadow-md);
    min-width: 180px; z-index: 999; overflow: hidden;
}
.adm-user-menu.open .adm-user-dropdown { display: block; }
.adm-user-dropdown a {
    display: flex; align-items: center; gap: .5rem;
    padding: .625rem 1rem; font-size: .82rem;
    transition: background .15s; color: var(--adm-text);
}
.adm-user-dropdown a:hover { background: var(--adm-bg); }
.adm-user-dropdown a.danger { color: var(--adm-danger); }
.adm-user-dropdown a.danger:hover { background: #fee2e2; }
.adm-dropdown-divider { height: 1px; background: var(--adm-border); margin: .25rem 0; }

/* ===== SIDEBAR ===== */
.adm-sidebar {
    position: fixed;
    top: var(--adm-topbar-h); left: 0; bottom: 0;
    width: var(--adm-sidebar-w);
    background: var(--adm-sidebar-bg);
    overflow-y: auto; overflow-x: hidden;
    z-index: 900;
    transition: transform .3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}
.adm-sidebar::-webkit-scrollbar { width: 4px; }
.adm-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 4px; }

.adm-nav { padding: .875rem .625rem 2rem; }
.adm-nav-label {
    font-size: .62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: rgba(255,255,255,.25);
    padding: 1rem .75rem .4rem;
}
.adm-nav-item {
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem .875rem;
    border-radius: 8px;
    color: rgba(255,255,255,.6);
    font-size: .82rem; font-weight: 400;
    transition: all .15s;
    margin-bottom: 1px;
    position: relative;
}
.adm-nav-item i { font-size: .95rem; width: 18px; text-align: center; flex-shrink: 0; }
.adm-nav-item:hover { background: var(--adm-sidebar-hover); color: rgba(255,255,255,.9); }
.adm-nav-item.active {
    background: var(--adm-sidebar-active);
    color: var(--adm-verde-light);
    font-weight: 600;
    border-left: 3px solid var(--adm-sidebar-active-border);
    padding-left: calc(.875rem - 3px);
}
.adm-badge {
    margin-left: auto;
    background: #ef4444; color: white;
    font-size: .62rem; font-weight: 700;
    padding: .15rem .45rem; border-radius: 20px; min-width: 18px; text-align: center;
}

.adm-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 899;
}

/* ===== MAIN ===== */
.adm-main {
    margin-left: var(--adm-sidebar-w);
    margin-top: var(--adm-topbar-h);
    min-height: calc(100vh - var(--adm-topbar-h));
    padding: 1.75rem;
}

/* ===== FLASH ===== */
.adm-flash {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1rem; border-radius: var(--adm-radius);
    font-size: .85rem; font-weight: 500;
    margin-bottom: 1.25rem;
    animation: fadeSlide .3s ease;
}
.adm-flash button { margin-left: auto; background: none; border: none; opacity: .6; font-size: .9rem; cursor: pointer; }
.adm-flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.adm-flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.adm-flash-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.adm-flash-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== FOOTER ===== */
.adm-footer {
    margin-left: var(--adm-sidebar-w);
    padding: .875rem 1.75rem;
    border-top: 1px solid var(--adm-border);
    background: var(--adm-white);
    display: flex; justify-content: space-between;
    font-size: .75rem; color: var(--adm-text-light);
}

/* ===== PAGE HEADER ===== */
.adm-page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.adm-page-header h1 {
    font-size: 1.35rem; font-weight: 800;
    color: #0f172a; letter-spacing: -.4px;
}
.adm-page-header p { font-size: .82rem; color: var(--adm-text-light); margin-top: .15rem; }
.adm-page-actions { display: flex; gap: .625rem; flex-wrap: wrap; }

/* ===== BREADCRUMB ===== */
.adm-breadcrumb {
    display: flex; align-items: center; gap: .4rem;
    font-size: .78rem; color: var(--adm-text-light);
    margin-bottom: 1.25rem;
}
.adm-breadcrumb a { color: var(--adm-verde); }
.adm-breadcrumb .sep { color: var(--adm-border); }

/* ===== STAT CARDS ===== */
.adm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem; margin-bottom: 1.5rem;
}
.adm-stat-card {
    background: var(--adm-white);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--adm-shadow);
    transition: box-shadow .15s;
}
.adm-stat-card:hover { box-shadow: var(--adm-shadow-md); }
.adm-stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.adm-stat-icon.verde   { background: #dcfce7; color: var(--adm-verde); }
.adm-stat-icon.azul    { background: #dbeafe; color: var(--adm-azul); }
.adm-stat-icon.laranja{ background: #fef3c7; color: var(--adm-warning); }
.adm-stat-icon.roxo    { background: #ede9fe; color: #7c3aed; }
.adm-stat-icon.vermelho{ background: #fee2e2; color: var(--adm-danger); }
.adm-stat-num { font-size: 1.55rem; font-weight: 800; color: #0f172a; line-height: 1; }
.adm-stat-label { font-size: .73rem; color: var(--adm-text-light); margin-top: .2rem; }
.adm-stat-delta { font-size: .72rem; font-weight: 600; margin-top: .25rem; }
.adm-stat-delta.up { color: var(--adm-verde); }
.adm-stat-delta.neutral { color: var(--adm-text-light); }

/* ===== CARDS ===== */
.adm-card {
    background: var(--adm-white);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow);
    overflow: hidden;
}
.adm-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--adm-border);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.adm-card-title { font-size: .95rem; font-weight: 700; color: #0f172a; }
.adm-card-body { padding: 1.25rem; }

/* ===== TABELAS ===== */
.adm-table-wrap { overflow-x: auto; }
table.adm-table {
    width: 100%; border-collapse: collapse;
    font-size: .82rem;
}
.adm-table th {
    background: #f8fafc;
    padding: .7rem 1rem;
    text-align: left;
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .6px;
    color: var(--adm-text-light);
    border-bottom: 2px solid var(--adm-border);
    white-space: nowrap;
}
.adm-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle; color: var(--adm-text);
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: #f8fafc; }
.adm-table .img-thumb {
    width: 44px; height: 44px; border-radius: 6px;
    object-fit: cover; border: 1px solid var(--adm-border);
    background: var(--adm-bg);
}
.adm-table .img-thumb-placeholder {
    width: 44px; height: 44px; border-radius: 6px;
    background: var(--adm-bg); border: 1px solid var(--adm-border);
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; font-size: 1.1rem;
}
.adm-table .actions { display: flex; gap: .375rem; }
.adm-table .action-btn {
    width: 30px; height: 30px;
    border-radius: 6px; border: 1px solid var(--adm-border);
    background: white; display: flex; align-items: center; justify-content: center;
    font-size: .82rem; color: var(--adm-text-light);
    cursor: pointer; transition: all .15s;
}
.adm-table .action-btn:hover { background: var(--adm-bg); color: var(--adm-text); }
.adm-table .action-btn.edit:hover { border-color: var(--adm-azul); color: var(--adm-azul); background: #dbeafe; }
.adm-table .action-btn.delete:hover { border-color: var(--adm-danger); color: var(--adm-danger); background: #fee2e2; }
.adm-table .action-btn.view:hover { border-color: var(--adm-verde); color: var(--adm-verde); background: #dcfce7; }

/* ===== BADGES ===== */
.adm-tag {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .2rem .55rem; border-radius: 20px;
    font-size: .7rem; font-weight: 600; white-space: nowrap;
}
.adm-tag-verde  { background: #dcfce7; color: #166534; }
.adm-tag-cinza  { background: #f1f5f9; color: #64748b; }
.adm-tag-azul   { background: #dbeafe; color: #1e40af; }
.adm-tag-danger { background: #fee2e2; color: #991b1b; }
.adm-tag-warning{ background: #fef3c7; color: #92400e; }

.badge-nivel { padding: .2rem .6rem; border-radius: 20px; font-size: .7rem; font-weight: 700; white-space: nowrap; display: inline-block; }
.badge-nivel.super  { background: #fef3c7; color: #92400e; }
.badge-nivel.admin  { background: #dbeafe; color: #1e40af; }
.badge-nivel.editor { background: #f1f5f9; color: #64748b; }

/* Toggle ativo */
.toggle-ativo {
    position: relative; display: inline-block;
    width: 40px; height: 22px; cursor: pointer;
}
.toggle-ativo input { display: none; }
.toggle-slider {
    position: absolute; inset: 0;
    background: #cbd5e1; border-radius: 20px;
    transition: background .2s;
}
.toggle-slider::after {
    content: ''; position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    background: white; border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-ativo input:checked + .toggle-slider { background: var(--adm-verde); }
.toggle-ativo input:checked + .toggle-slider::after { transform: translateX(18px); }

/* ===== FILTROS ===== */
.adm-filters {
    display: flex; flex-wrap: wrap; gap: .625rem;
    margin-bottom: 1.25rem; align-items: center;
}
.adm-filters input, .adm-filters select {
    padding: .5rem .75rem;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    font-size: .82rem; color: var(--adm-text);
    outline: none; background: white;
    transition: border-color .15s;
    font-family: var(--font);
    height: 36px; box-sizing: border-box;
}
.adm-filters input:focus, .adm-filters select:focus {
    border-color: var(--adm-verde-light);
}
.adm-filters input[type="search"] { min-width: 220px; }
.adm-filters .btn-adm {
    height: 36px;
    padding: 0 1rem;
    font-size: .82rem;
}

/* ===== BOTÕES ===== */
.btn-adm {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: var(--adm-radius-sm);
    font-family: var(--font); font-size: .82rem; font-weight: 600;
    cursor: pointer; border: none; transition: all .15s;
    white-space: nowrap; line-height: 1;
}
.btn-adm:disabled { opacity: .6; cursor: not-allowed; }
.btn-adm-primary { background: var(--adm-verde); color: white; }
.btn-adm-primary:hover { background: #15803d; }
.btn-adm-azul { background: var(--adm-azul); color: white; }
.btn-adm-azul:hover { background: #1e3a8a; }
.btn-adm-secondary { background: white; color: var(--adm-text); border: 1px solid var(--adm-border); }
.btn-adm-secondary:hover { background: var(--adm-bg); }
.btn-adm-danger { background: var(--adm-danger); color: white; }
.btn-adm-danger:hover { background: #b91c1c; }
.btn-adm-sm { padding: .35rem .75rem; font-size: .78rem; }
.btn-adm-lg { padding: .625rem 1.25rem; font-size: .9rem; }
.btn-adm-block { width: 100%; }

/* ===== FORMULÁRIOS ===== */
.adm-form-section {
    background: white; border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius); margin-bottom: 1.25rem;
    overflow: hidden;
}
.adm-form-section-title {
    padding: .875rem 1.25rem;
    border-bottom: 1px solid var(--adm-border);
    font-size: .82rem; font-weight: 700; color: #0f172a;
    background: #f8fafc;
    display: flex; align-items: center; gap: .5rem;
}
.adm-form-section-title i { color: var(--adm-verde); }
.adm-form-body { padding: 1.25rem; }

.adm-form-grid { display: grid; gap: 1rem; }
.adm-form-grid-2 { grid-template-columns: 1fr 1fr; }
.adm-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.adm-form-group { display: flex; flex-direction: column; gap: .3rem; }
.adm-form-label {
    font-size: .77rem; font-weight: 600;
    color: #475569; text-transform: none;
}
.adm-form-label .req { color: var(--adm-danger); }
.adm-control {
    padding: .55rem .875rem;
    border: 1.5px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    font-family: var(--font); font-size: .85rem;
    color: #0f172a; background: white; outline: none;
    transition: border-color .15s;
    appearance: none;
}
.adm-control:focus { border-color: var(--adm-verde-light); box-shadow: 0 0 0 3px rgba(34,197,94,.1); }
.adm-control.error { border-color: var(--adm-danger); }
.adm-control[disabled] { background: var(--adm-bg); color: var(--adm-text-light); cursor: not-allowed; }
textarea.adm-control { resize: vertical; min-height: 90px; }
.adm-form-hint { font-size: .72rem; color: var(--adm-text-light); }
.adm-form-error { font-size: .72rem; color: var(--adm-danger); }

/* Input com prefixo */
.adm-input-group { display: flex; }
.adm-input-prefix {
    padding: .55rem .75rem;
    background: var(--adm-bg); border: 1.5px solid var(--adm-border);
    border-right: none; border-radius: var(--adm-radius-sm) 0 0 var(--adm-radius-sm);
    font-size: .82rem; color: var(--adm-text-light); white-space: nowrap;
}
.adm-input-group .adm-control { border-radius: 0 var(--adm-radius-sm) var(--adm-radius-sm) 0; }

/* Upload de imagem */
.adm-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    border: 2px dashed var(--adm-border); border-radius: var(--adm-radius);
    padding: 2rem; text-align: center; cursor: pointer;
    transition: all .2s; background: #f8fafc;
    user-select: none;
}
.adm-upload-area:hover, .adm-upload-area.drag-over {
    border-color: var(--adm-verde-light); background: #f0fdf4;
}
.adm-upload-area i { font-size: 2rem; color: #cbd5e1; display: block; margin-bottom: .5rem; }
.adm-upload-area p { font-size: .82rem; color: var(--adm-text-light); margin: 0; }
.adm-upload-area small { font-size: .72rem; color: #94a3b8; }

/* Preview imagem */
.adm-img-preview-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: .5rem; margin-top: .75rem;
}
.adm-img-preview-item {
    position: relative; aspect-ratio: 1;
    border-radius: 8px; overflow: visible;
    border: 1px solid var(--adm-border);
}
.adm-img-preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.adm-img-preview-item .remove-img {
    position: absolute; top: -6px; right: -6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(220,38,38,.9); color: white; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; cursor: pointer; z-index: 2;
}

/* Specs editor */
.specs-list { display: flex; flex-direction: column; gap: .5rem; }
.spec-row { display: flex; gap: .5rem; align-items: center; }
.spec-row .adm-control { flex: 1; }
.spec-row .remove-spec {
    width: 32px; height: 32px; border: 1px solid var(--adm-border);
    background: white; border-radius: 6px; color: var(--adm-danger);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; font-size: .85rem; transition: all .15s;
}
.spec-row .remove-spec:hover { background: #fee2e2; border-color: var(--adm-danger); }

/* ===== PAGINAÇÃO ===== */
.adm-pagination {
    display: flex; align-items: center; justify-content: space-between;
    padding: .875rem 1.25rem;
    border-top: 1px solid var(--adm-border);
    font-size: .8rem; color: var(--adm-text-light);
}
.adm-pagination-pages { display: flex; gap: .25rem; }
.adm-pagination-pages a, .adm-pagination-pages span {
    min-width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; border: 1px solid var(--adm-border);
    background: white; color: var(--adm-text); font-size: .8rem;
    transition: all .15s;
}
.adm-pagination-pages a:hover { border-color: var(--adm-verde-light); color: var(--adm-verde); }
.adm-pagination-pages .active { background: var(--adm-verde); color: white; border-color: var(--adm-verde); }
.adm-pagination-pages .disabled { opacity: .4; pointer-events: none; }

/* ===== MODAL ===== */
.adm-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 2000;
    align-items: center; justify-content: center;
    padding: 1rem;
}
.adm-modal-overlay.open { display: flex; }
.adm-modal {
    background: white; border-radius: var(--adm-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-width: 480px; width: 100%;
    animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(-10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.adm-modal-header {
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--adm-border);
    display: flex; align-items: center; justify-content: space-between;
}
.adm-modal-title { font-size: 1rem; font-weight: 700; }
.adm-modal-close {
    background: none; border: none; font-size: 1.1rem;
    color: var(--adm-text-light); cursor: pointer;
    width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.adm-modal-close:hover { background: var(--adm-bg); color: var(--adm-text); }
.adm-modal-body { padding: 1.5rem; }
.adm-modal-footer {
    padding: 1rem 1.5rem; border-top: 1px solid var(--adm-border);
    display: flex; gap: .625rem; justify-content: flex-end;
}

/* ===== EMPTY STATE ===== */
.adm-empty {
    padding: 4rem 2rem; text-align: center; color: var(--adm-text-light);
}
.adm-empty i { font-size: 3rem; color: #e2e8f0; display: block; margin-bottom: 1rem; }
.adm-empty h3 { font-size: 1rem; font-weight: 700; color: var(--adm-text); margin-bottom: .375rem; }

/* ===== LOGIN PAGE ===== */
.adm-login-wrap {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 1rem;
}
.adm-login-card {
    background: white; border-radius: 16px;
    padding: 2.5rem; width: 100%; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.adm-login-logo {
    text-align: center; margin-bottom: 2rem;
}
.adm-login-logo .logo-icon { font-size: 2.5rem; color: var(--adm-verde); }
.adm-login-logo h1 { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin-top: .5rem; }
.adm-login-logo p { font-size: .82rem; color: var(--adm-text-light); }

/* ===== DASHBOARD CHARTS PLACEHOLDER ===== */
.adm-chart-placeholder {
    height: 200px; background: var(--adm-bg); border-radius: var(--adm-radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--adm-text-light); font-size: .82rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .adm-sidebar { transform: translateX(-100%); top: 0; }
    .adm-sidebar.open { transform: translateX(0); box-shadow: 0 0 30px rgba(0,0,0,.3); }
    .adm-overlay.open { display: block; }
    .adm-main { margin-left: 0; }
    .adm-footer { margin-left: 0; }
    .adm-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .adm-main { padding: 1rem; }
    .adm-form-grid-2, .adm-form-grid-3 { grid-template-columns: 1fr; }
    .adm-stats-grid { grid-template-columns: 1fr 1fr; }
    .adm-page-header { flex-direction: column; align-items: flex-start; }
    .adm-topbar-btn span { display: none; }
    .adm-user-info { display: none; }
}
@media (max-width: 480px) {
    .adm-stats-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITIES ===== */
.text-verde { color: var(--adm-verde); }
.text-danger { color: var(--adm-danger); }
.text-muted { color: var(--adm-text-light); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }