/* Festa dos Amigos — gerenciador.css */

.mgr-wrap {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
    font-size: 1rem;
    color: #1f2937;
}

/* ── Cabeçalho ──────────────────────────────────────────────────────────── */
.mgr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    box-shadow: var(--f-shadow);
    margin-bottom: .25rem;
}

.mgr-header strong { font-size: 1.05rem; color: #111827; }

.mgr-header-user {
    display: block;
    font-size: .85rem;
    color: var(--f-gray);
    font-weight: 400;
    margin-top: 2px;
}

/* ── Navegação ──────────────────────────────────────────────────────────── */
.mgr-nav {
    display: flex;
    gap: .25rem;
    background: #fff;
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: .5rem .75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--f-shadow);
}

.mgr-nav-item {
    padding: .45rem 1rem;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--f-gray);
    text-decoration: none;
    transition: background .15s, color .15s;
}

.mgr-nav-item:hover { background: var(--f-gray-light); color: #1f2937; }

.mgr-nav-item.active {
    background: var(--f-blue-bg);
    color: var(--f-blue);
}

/* ── Conteúdo ───────────────────────────────────────────────────────────── */
.mgr-content {
    background: #fff;
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--f-shadow);
}

.mgr-content h3 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}

/* ── Filtros ────────────────────────────────────────────────────────────── */
.mgr-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}

.mgr-filter a {
    padding: .3rem .85rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--f-gray);
    text-decoration: none;
    background: var(--f-gray-light);
    border: 1px solid var(--f-border);
    transition: background .15s, color .15s;
}

.mgr-filter a:hover,
.mgr-filter a.active {
    background: var(--f-blue-bg);
    color: var(--f-blue);
    border-color: var(--f-blue-bd);
}

/* ── Tabela ─────────────────────────────────────────────────────────────── */
.mgr-table-wrap { overflow-x: auto; }

.mgr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.mgr-table th {
    text-align: left;
    padding: .6rem .75rem;
    background: var(--f-gray-light);
    border-bottom: 2px solid var(--f-border);
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
}

.mgr-table td {
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--f-border);
    vertical-align: middle;
}

.mgr-table tbody tr:hover { background: #fafafa; }

/* ── Botão pequeno ──────────────────────────────────────────────────────── */
.mgr-btn-sm {
    display: inline-block;
    padding: .3rem .75rem;
    font-size: .82rem;
    font-weight: 600;
    border-radius: 5px;
    background: var(--f-blue-bg);
    color: var(--f-blue);
    border: 1px solid var(--f-blue-bd);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}

.mgr-btn-sm:hover { background: #dbeafe; text-decoration: none; }

/* ── Caixas internas ────────────────────────────────────────────────────── */
.mgr-box {
    background: #f8fafc;
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.1rem;
}

.mgr-box h4 {
    margin: 0 0 .75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.mgr-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem 0;
    font-size: .9rem;
    border-bottom: 1px solid #f1f5f9;
}

.mgr-meta:last-child { border-bottom: none; }

.mgr-meta > span:first-child {
    min-width: 130px;
    font-weight: 600;
    color: #374151;
}

.mgr-dl-btn {
    padding: .2rem .65rem;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 4px;
    background: var(--f-blue-bg);
    color: var(--f-blue);
    border: 1px solid var(--f-blue-bd);
    text-decoration: none;
}

.mgr-dl-btn:hover { background: #dbeafe; }

/* ── Voltar ─────────────────────────────────────────────────────────────── */
.mgr-back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--f-blue);
    text-decoration: none;
}

.mgr-back-link:hover { text-decoration: underline; }

.mgr-error { color: var(--f-red); font-weight: 600; }

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .mgr-wrap { padding: 0 .5rem; }
    .mgr-content { padding: 1.1rem 1rem; }
    .mgr-table th, .mgr-table td { padding: .5rem .5rem; font-size: .82rem; }
    .mgr-meta > span:first-child { min-width: 90px; }
}
