:root {
    --bg-page: #f4f6f8;
    --bg-card: #ffffff;
    --primary: #4b0082;
    /* Roxo Açaí */
    --accent: #00e676;
    /* Verde Neon */
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-dark);
}

.admin-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.dashboard-header {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    flex-direction: column;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.user-status {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 4px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* CONTEÚDO PRINCIPAL */
.dashboard-content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.8rem;
    color: #333;
}

/* GRID DE CARTÕES */
.dashboard-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.choice-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.choice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

/* Destaque para o card da Máquina */
.choice-card.highlight {
    border: 2px solid var(--primary);
    background: linear-gradient(to bottom right, #fff, #fbfaff);
}

/* Ícones Circulares */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.icon-circle.purple {
    background: #f3e5f5;
    color: var(--primary);
}

.icon-circle.blue {
    background: #e3f2fd;
    color: #1976d2;
}

.icon-circle.gold {
    background: #fff8e1;
    color: #ffa000;
}

.choice-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.choice-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-link {
    margin-top: auto;
    /* Empurra para o final */
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsividade */
@media (max-width: 600px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-left {
        align-items: center;
    }

    .dashboard-choices {
        grid-template-columns: 1fr;
    }
}

/* --- ESTILOS DO MODAL DE ADMIN --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* --- TELA DE LOGIN (NOVO DESIGN) --- */

/* Centraliza a caixa de login na tela */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-page) 0%, #e8eaf6 100%);
}

.admin-box {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--border);
}

/* Marca/Logo no Login */
.admin-box .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.admin-box .logo.small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f5f5f5;
    padding: 5px;
}

.admin-box .brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

/* Botão Google */
.google-btn {
    background-color: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    /* Redondo moderno */
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.google-btn:hover {
    background-color: #f7f8f8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #d2e3fc;
}

.google-btn:active {
    background-color: #eff3f8;
    transform: scale(0.98);
}

.form-status {
    font-size: 0.9rem;
    font-weight: 500;
}