* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --accent-color: #25d366;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
                url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center center / cover no-repeat fixed;
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.3);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
}

header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 3px solid var(--secondary-color);
    margin-bottom: 30px;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

/* Mensagens */
.mensagem {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.mensagem.sucesso {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensagem.erro {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Formulário */
.form-agendamento {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #333;
}

/* Info de contato */
.info-contato {
    background: rgba(248, 249, 250, 0.95);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-contato h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-contato p {
    margin-bottom: 10px;
    color: #666;
}

/* Botões WhatsApp */
.btn-whatsapp {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background: #20ba5a;
}

.btn-whatsapp-large {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 18px;
    transition: background 0.3s;
    margin-top: 15px;
}

.btn-whatsapp-large:hover {
    background: #20ba5a;
}

/* Página de sucesso */
.sucesso-box {
    text-align: center;
    padding: 40px;
    background: rgba(248, 249, 250, 0.95);
    border-radius: 10px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.check-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 20px;
}

.sucesso-box h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.detalhes-agendamento {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.detalhes-agendamento h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.detalhes-agendamento p {
    margin-bottom: 10px;
    padding: 5px 0;
}

.whatsapp-box {
    margin: 30px 0;
    padding: 20px;
    background: rgba(232, 245, 233, 0.95);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.acoes {
    margin-top: 30px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #6c757d;
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Admin */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 3px solid var(--secondary-color);
    margin-bottom: 30px;
}

.btn-logout {
    padding: 10px 20px;
    background: var(--error);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c82333;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-box h3 {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
}

.filtros {
    background: rgba(248, 249, 250, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filtro-form {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.filtro-form .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
}

.agendamentos-list {
    margin-bottom: 30px;
}

.agendamentos-list h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tabela-agendamentos {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.tabela-agendamentos thead {
    background: var(--primary-color);
    color: var(--white);
}

.tabela-agendamentos th,
.tabela-agendamentos td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.tabela-agendamentos tbody tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
}

.status-confirmado {
    background: #d4edda;
    color: #155724;
}

.status-cancelado {
    background: #f8d7da;
    color: #721c24;
}

.status-concluido {
    background: #d1ecf1;
    color: #0c5460;
}

.acoes-cell {
    white-space: nowrap;
}

.btn-action {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.btn-action:hover {
    opacity: 0.8;
}

.btn-confirmar {
    background: var(--success);
    color: var(--white);
}

.btn-cancelar {
    background: var(--warning);
    color: var(--text-color);
}

.btn-concluir {
    background: #17a2b8;
    color: var(--white);
}

.btn-excluir {
    background: var(--error);
    color: var(--white);
}

.link-whatsapp {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.link-whatsapp:hover {
    text-decoration: underline;
}

.sem-dados {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.admin-actions {
    text-align: center;
    padding: 20px 0;
}

/* Login */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.login-box h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    color: #666;
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    .form-agendamento {
        padding: 20px;
    }

    .tabela-agendamentos {
        font-size: 14px;
    }

    .tabela-agendamentos th,
    .tabela-agendamentos td {
        padding: 8px;
    }

    .filtro-form {
        flex-direction: column;
    }

    .filtro-form .form-group {
        width: 100%;
    }
}

