/* ========== ADMIN PAINEL ========== */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
}
.stat-card h3 {
    font-size: 2rem;
    margin: 0;
}
.stat-card p {
    color: #777;
    margin: 0;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid #e0e0e0;
    background: var(--white);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.tab-btn:hover {
    border-color: var(--primary);
}
.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.tab-content {
    display: none;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.tab-content.active {
    display: block;
}

/* Mensagens */
.mensagens-lista .msg-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}
.mensagens-lista .msg-item:last-child {
    border-bottom: none;
}
.msg-item strong {
    color: var(--secondary);
}
.msg-item .msg-data {
    color: #999;
    font-size: 0.85rem;
}

/* Produtos Admin */
.produtos-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.produto-admin-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}
.produto-admin-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.produto-admin-card h4 {
    margin: 0.5rem 0;
}
.produto-admin-card .preco {
    color: var(--primary);
    font-weight: 700;
}
.produto-admin-card .acoes {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}
.produto-admin-card .acoes button {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}
.btn-editar {
    background: #3498db;
    color: white;
}
.btn-excluir {
    background: #e74c3c;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.modal.open {
    display: flex;
}
.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}
.modal-close:hover {
    color: #333;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.login-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-header h1 {
    color: var(--secondary);
    margin: 0.5rem 0;
}
.login-header p {
    color: #777;
}
.toggle-senha {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}
.form-group {
    position: relative;
}
.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Responsivo Admin */
@media (max-width: 768px) {
    .admin-tabs {
        flex-direction: column;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}