html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overscroll-behavior-y: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    background-color: #000;
}

/* --- CORREÇÃO DEFINITIVA DO SALTO DE TELA --- */
/* Aplica a reserva de espaço apenas onde o scroll realmente acontece (view-home) */
#view-home {
    scrollbar-gutter: stable;
    overflow-y: auto; /* Garante que o comportamento de scroll seja gerido aqui */
}

/* --- UTILITÁRIOS GERAIS --- */
input, textarea, select {
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

button, a {
    cursor: pointer;
    touch-action: manipulation;
}

/* --- BARRA DE ROLAGEM CUSTOMIZADA --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #cba74f;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e3ca7d;
}

/* --- CLASSES ESPECÍFICAS --- */
.no-select {
    user-select: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animações (Site Principal) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

.hero-image {
    transition: opacity 2.5s ease-in-out, transform 2.5s ease-in-out;
    opacity: 0;
    transform: scale(1.1);
    will-change: opacity, transform;
}
.hero-image.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-content.active {
    transform: translateY(0);
    opacity: 1;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.animate-bounce-slow {
    animation: bounceSlow 2s infinite;
}

/* Botões de Horário (Site) */
.time-pill {
    transition: all 0.2s;
}
.time-pill:hover {
    border-color: #cba74f;
    color: white;
}
.time-pill.selected {
    background-color: #cba74f;
    color: #000;
    font-weight: bold;
    border-color: #cba74f;
    box-shadow: 0 0 10px rgba(203,167,79,0.3);
}

/* Inputs (Foco) */
input:focus, select:focus {
    outline: none;
    border-color: #cba74f;
    box-shadow: 0 0 0 1px #cba74f;
}

/* Calendário */
#calendar-grid {
    min-height: 250px;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 50%;
    transition: all 0.2s;
}

/* --- ESTILOS DO PAINEL ADMIN --- */

/* Badges de Status */
.badge-confirmed { 
    background-color: rgba(34, 197, 94, 0.1); 
    color: #22c55e; 
    border: 1px solid rgba(34, 197, 94, 0.2); 
}
.badge-pending { 
    background-color: rgba(234, 179, 8, 0.1); 
    color: #eab308; 
    border: 1px solid rgba(234, 179, 8, 0.2); 
}
.badge-canceled { 
    background-color: rgba(239, 68, 68, 0.1); 
    color: #ef4444; 
    border: 1px solid rgba(239, 68, 68, 0.2); 
}

/* Menu Lateral / Inferior (Ativo) */
.nav-item.active, .tab-btn.active {
    color: #cba74f !important;
    background: transparent !important;
}

/* Sidebar Desktop (Ajuste fino) */
aside .tab-btn.active {
    color: #cba74f !important;
    background: transparent !important;
}
aside .tab-btn.active i {
    color: #cba74f !important;
}

/* Mobile Nav (Ícone cresce levemente) */
.nav-item.active i {
    color: #cba74f !important;
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Toggle Switch */
.toggle-checkbox:checked {
    right: 0;
    border-color: #10b981;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #10b981;
}
.toggle-checkbox:checked + .toggle-label:before {
    transform: translateX(100%);
}

.toggle-label {
    width: 44px;
    height: 24px;
    position: relative;
    display: block;
    background: #333;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 999px;
    transition: 0.3s;
}

/* Checkbox de Serviços (Estilo Tag) */
.service-checkbox:checked + div {
    background-color: #cba74f;
    color: #000;
    border-color: #cba74f;
    font-weight: bold;
}

/* Cards de Configuração (Admin) */
.config-card {
    transition: transform 0.2s, border-color 0.2s;
}
.config-card:active {
    transform: scale(0.98);
}

/* Toggles Específicos Adicionais */
/* Toggle Vermelho/Verde (Status Dia) */
.toggle-status-checkbox:checked + .toggle-status-label {
    background-color: #10B981; /* Emerald 500 */
}
.toggle-status-label {
    background-color: #EF4444; /* Red 500 */
}

/* Toggle Gold (Admin) */
.toggle-gold-checkbox:checked + .toggle-gold-label {
    background-color: #cba74f;
}