/* Painel Administrativo */
:root { --sidebar-w: 250px; }
body.admin-body { background: #f4f5f9; }

.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--cor-secundaria, #1a1a2e);
    color: #cfcbe0;
    flex-shrink: 0;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}
.sidebar .brand-admin { display: flex; align-items: center; gap: 10px; padding: 0 24px 24px; color: #fff; font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.sidebar .brand-admin img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sidebar nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 24px;
    color: #b8b4cc;
    font-weight: 500;
    font-size: .92rem;
    border-left: 3px solid transparent;
}
.sidebar nav a i { width: 18px; text-align: center; }
.sidebar nav a:hover { background: rgba(255,255,255,.04); color: #fff; }
.sidebar nav a.active { background: rgba(255,255,255,.06); color: #fff; border-left-color: var(--cor-primaria, #c9184a); }
.sidebar .nav-group-title { padding: 18px 24px 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #766f92; }
.sidebar .sidebar-footer { margin-top: auto; padding: 16px 24px 0; border-top: 1px solid rgba(255,255,255,.08); }

.admin-content { flex: 1; min-width: 0; }
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #ececec;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-topbar h1 { font-size: 1.3rem; margin: 0; }
.admin-main { padding: 30px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; border-radius: 14px; padding: 22px; border: 1px solid #ececec; }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-card .stat-label { color: #6b6577; font-size: .85rem; }

.admin-card { background: #fff; border-radius: 14px; padding: 24px; border: 1px solid #ececec; margin-bottom: 24px; }
.admin-card h3 { margin-top: 0; }

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: .9rem; }
table.admin-table th { color: #6b6577; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
table.admin-table tr:hover td { background: #fafafa; }

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .form-row, .form-row-3, .stat-cards { grid-template-columns: 1fr; } }
.check-inline { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.check-inline input { width: 17px; height: 17px; }

.tag-status { padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; display: inline-block; }
.tag-ativa, .tag-pago, .tag-confirmado, .tag-concluido { background: #e5f8ee; color: #1a7a4c; }
.tag-pendente, .tag-nao_pago { background: #fff4e0; color: #a5670c; }
.tag-bloqueada, .tag-cancelado, .tag-expirada { background: #fdecec; color: #c0392b; }

.action-icons a { color: #6b6577; margin-right: 12px; }
.action-icons a:hover { color: var(--cor-primaria, #c9184a); }

.upload-preview { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; background: #f0f0f0; margin-bottom: 10px; }

.license-box { border: 2px dashed var(--cor-borda); border-radius: 14px; padding: 24px; text-align: center; }
