/* --- RESET E VARIÁVEIS (TEMA DARK NEON) --- */
:root {
    --bg-dark: #050511;
    --primary-blue: #3b82f6;
    --neon-blue: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.3);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- BACKGROUND ANIMADO --- */
.bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: floatBlob 10s infinite alternate;
}
.one { background: radial-gradient(#1d4ed8, transparent); top: -100px; left: -100px; }
.two { background: radial-gradient(#0891b2, transparent); bottom: 0; right: -100px; animation-delay: 2s; }

@keyframes floatBlob {
    from { transform: translate(0, 0); }
    to { transform: translate(40px, 40px); }
}

/* --- HERO SECTION (CLIENTE) --- */
.hero { text-align: center; padding: 60px 20px; margin-bottom: -40px; }
.logo-container { text-align: center; margin-bottom: 20px; }
.hero-logo-img { width: 280px; height: auto; display: block; margin: 0 auto; mix-blend-mode: screen; }
.hero-subtitle { color: var(--neon-blue); font-size: 1.2rem; letter-spacing: 5px; margin-top: 5px; font-weight: 700; }
.hero p { color: var(--text-muted); margin-bottom: 30px; }

.btn-hero {
    background: transparent; border: 1px solid var(--neon-blue); color: var(--neon-blue);
    padding: 10px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: 0.3s;
}
.btn-hero:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 20px var(--neon-blue); }

.btn-consultar {
    background: rgba(255,255,255,0.1); color: var(--neon-blue); border: 1px solid var(--neon-blue);
    padding: 8px 15px; border-radius: 20px; cursor: pointer; margin-bottom: 20px; font-size: 0.9rem; transition: 0.3s;
}
.btn-consultar:hover { background: var(--neon-blue); color: #000; }

/* --- ESTILOS DO ADMIN (HEADER & NAV) --- */
.header-admin {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; background-color: rgba(5, 5, 17, 0.95); border-bottom: 1px solid var(--glass-border);
}
.logo { font-size: 1.4rem; font-weight: 700; color: #fff; text-shadow: 0 0 10px rgba(6, 182, 212, 0.5); }
.btn-sair { background: transparent; border: 1px solid #ef4444; color: #ef4444; padding: 5px 15px; border-radius: 20px; cursor: pointer; transition: 0.3s; }
.btn-sair:hover { background: #ef4444; color: white; }

.nav-container { display: flex; gap: 15px; padding: 20px; justify-content: center; flex-wrap: wrap; }
.nav-btn {
    background: rgba(255, 255, 255, 0.05); color: #94a3b8; border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px; border-radius: 30px; cursor: pointer; font-weight: 600;
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.nav-btn:hover, .nav-btn.active {
    background: var(--primary-blue); color: white; border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); transform: translateY(-2px);
}

.container-centralizado { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.admin-card { background: rgba(22, 27, 34, 0.6); border: 1px solid var(--glass-border); border-radius: 15px; padding: 20px; margin-bottom: 20px; }

/* --- CALENDÁRIO PREMIUM (VISUAL NOVO) --- */
#calendar { color: #e2e8f0; }

/* Remove as linhas feias */
.fc-theme-standard td, .fc-theme-standard th { border-color: rgba(255, 255, 255, 0.05) !important; }
.fc-scrollgrid { border: none !important; }

/* Títulos dos dias (SEG, TER...) */
.fc-col-header-cell-cushion { 
    color: var(--neon-blue); text-transform: uppercase; font-size: 0.85rem; padding: 15px 0 !important; text-decoration: none !important; 
}
.fc-daygrid-day-number { color: #94a3b8 !important; text-decoration: none !important; margin: 5px !important; }

/* Células do dia */
.fc-daygrid-day { transition: background 0.2s; }
.fc-daygrid-day:hover { background: rgba(255, 255, 255, 0.02); }
.fc-day-today { background: rgba(6, 182, 212, 0.05) !important; }

/* Título do Mês e Botões */
.fc-toolbar-title { font-size: 1.8rem !important; font-weight: 700; text-transform: capitalize; color: white; }
.fc-button { background: rgba(255,255,255,0.1) !important; border: none !important; border-radius: 8px !important; text-transform: capitalize; }
.fc-button:hover { background: var(--primary-blue) !important; }
.fc-button-active { background: var(--primary-blue) !important; box-shadow: 0 0 10px var(--primary-blue) !important; }

/* --- CARTÕES DE AGENDAMENTO (CÁPSULAS) --- */
/* Remove o estilo padrão do FullCalendar */
.fc-event {
    background: transparent !important; border: none !important; box-shadow: none !important;
    margin-bottom: 5px !important;
}
.fc-daygrid-event-dot { display: none !important; } /* Remove bolinha padrão */

/* Estilo do nosso cartão personalizado */
.evento-custom {
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.evento-custom:hover { transform: scale(1.02); filter: brightness(1.2); }

/* Cores por Status */
.evento-custom.Pendente {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), transparent);
    border-color: #fbbf24;
}
.evento-custom.Confirmado {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), transparent);
    border-color: #10b981;
}
.evento-custom.Concluido {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), transparent);
    border-color: #3b82f6;
}

/* Texto dentro do cartão */
.evento-topo { display: flex; justify-content: space-between; font-size: 0.75rem; opacity: 0.9; margin-bottom: 2px; }
.evento-hora { font-weight: bold; color: white; }
.evento-nome { font-size: 0.85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- FORMULÁRIOS E GERAIS --- */
.container {
    max-width: 500px; margin: 0 auto 50px; padding: 30px; border-radius: 20px;
    background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(15px);
}
.step-title { display: flex; align-items: center; gap: 8px; color: var(--neon-blue); font-weight: 600; margin-bottom: 12px; }

input, select {
    width: 100%; padding: 12px 15px; background: var(--input-bg);
    border: 1px solid var(--glass-border); border-radius: 10px; color: #fff; outline: none; margin-bottom: 10px;
}
input:focus, select:focus { border-color: var(--primary-blue); }
option { background-color: #0f172a; color: white; }

/* OPÇÕES DE PAGAMENTO */
.option-row {
    display: flex; align-items: center; gap: 12px; color: #e2e8f0; margin-bottom: 10px; cursor: pointer; 
    background: rgba(255,255,255,0.08); padding: 12px; border-radius: 8px; transition: 0.3s;
}
.option-row:hover { background: rgba(255,255,255,0.15); }
.option-row input { width: 18px; height: 18px; accent-color: var(--neon-blue); margin-bottom: 0; }

.btn-whatsapp {
    width: 100%; padding: 15px; background: linear-gradient(45deg, #25D366, #128C7E);
    color: white; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; margin-top: 10px;
}

/* --- LOGIN SCREEN --- */
.login-wrapper { height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #0f172a, #000); }
.login-card { background: rgba(255,255,255,0.05); padding: 40px; border-radius: 20px; width: 100%; max-width: 350px; text-align: center; border: 1px solid var(--glass-border); }
.btn-login { width: 100%; padding: 12px; background: var(--primary-blue); color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 10px; }

/* --- MODAIS --- */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); 
    display: none; z-index: 9999; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.ativo { display: flex; opacity: 1; }

.modal-box, .modal-content { 
    background: #111827; border: 1px solid #374151; padding: 30px; 
    border-radius: 15px; width: 90%; max-width: 400px; position: relative; 
    transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.ativo .modal-box, .modal-overlay.ativo .modal-content { transform: scale(1); }

.modal-close, .close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #ccc; font-size: 1.5rem; cursor: pointer; }
.modal-header h3 { margin-bottom: 20px; color: var(--primary-blue); border-bottom: 1px solid #333; padding-bottom: 10px; font-size: 1.4rem; }
.modal-info p { margin: 12px 0; color: #cbd5e1; display: flex; justify-content: space-between; font-size: 0.95rem; }

/* Botões do Modal */
.modal-actions { margin-top: 25px; display: grid; gap: 10px; }
.btn-modal { padding: 12px; border-radius: 8px; border: none; font-weight: bold; cursor: pointer; color: white; display: flex; justify-content: center; gap: 8px; align-items: center; }
.btn-wpp { background: #10b981; }
.btn-confirm-pix { background: #3b82f6; }
.btn-concluir { background: #8b5cf6; }
.btn-cancel { background: #ef4444; }
.btn-cancelar { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #ef4444; padding: 5px 10px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-cancelar:hover { background: #ef4444; color: white; }

/* Outros elementos */
.search-box { display: flex; gap: 10px; margin-top: 15px; margin-bottom: 15px; }
.search-box button { background: var(--primary-blue); color: white; border: none; padding: 0 20px; border-radius: 10px; font-weight: bold; cursor: pointer; }

.status-card { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 10px; margin-bottom: 10px; border-left: 4px solid #555; }
.status-card.confirmado { border-left-color: #10b981; }
.status-card.pendente { border-left-color: #fbbf24; }

.main-footer { text-align: center; padding: 20px; background: rgba(0, 0, 0, 0.5); border-top: 1px solid var(--glass-border); margin-top: 40px; color: var(--text-muted); }
.admin-link { display: inline-block; margin-top: 5px; color: var(--neon-blue); text-decoration: none; font-size: 0.85rem; opacity: 0.7; }

@media (max-width: 768px) {
    .nav-container { flex-wrap: wrap; }
    .nav-btn { font-size: 12px; padding: 8px 16px; }
    .hero-logo-img { width: 180px; }
    .fc-toolbar { flex-direction: column; gap: 10px; }
}