/* ==========================================================================
   Lumo Finanças - Estilos Customizados
   ========================================================================== */

@layer base {
    html, body {
        margin: 0;
        padding: 0;
        background-color: #ffffff;
    }
    body {
        overscroll-behavior: none;
    }
    main > :first-child {
        margin-top: 0 !important;
    }
    main > :last-child {
        margin-bottom: 0 !important;
    }
}

/* Ocultar barra de rolagem mantendo funcionalidade */
::-webkit-scrollbar {
    display: none;
}

/* Telas / Navegação SPA */
.screen-view {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 24px;
}
.screen-view.active {
    display: flex;
}

/* Tela de Autenticação */
#authScreen {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, rgba(143, 78, 0, 0.08) 0%, transparent 60%);
}

/* Modais e Overlays */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 27, 33, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}
.modal-overlay.show {
    display: flex;
}

/* Notificação Toast */
.toast-notification {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #ffffff;
    border: 1px solid #c4c7d0;
    color: #1a1b21;
    padding: 14px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 200;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Seletor de Data */
.date-picker-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #74777f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.date-picker-btn:hover {
    color: #8f4e00;
}

/*
 * O <input type="date"> que guarda o calendário nativo. Fica invisível atrás do
 * botão, mas continua renderizado: showPicker() é recusado em elemento com
 * display:none. A posição é o que ancora o calendário perto do botão.
 */
.date-native-picker {
    position: absolute;
    right: 12px;
    bottom: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: none;
    opacity: 0;
    pointer-events: none;
}

/* Botões de Tipo de Pagamento */
.payment-type-btn {
    transition: all 0.2s;
}
.payment-type-btn.active {
    background: #8f4e00;
    color: #ffffff;
    border-color: #8f4e00;
}

/* Contêineres de Gráficos */
.chart-container {
    position: relative;
}

/* Chip de Categoria com Botão de Exclusão */
.cat-chip:hover .cat-delete-btn {
    opacity: 1;
}
.cat-delete-btn {
    opacity: 0;
    transition: opacity 0.2s;
}
