/* ==========================================================================
   CSS CUSTOMIZADO - TEMA DARK XUI (XUI FINANCE)
   Salvar em: /css/style.css
   ========================================================================== */

/* 1. Customização da Scrollbar (Barra de Rolagem) para se misturar ao Tema Dark */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #09090b; /* bg-darkBg (Zinco 950) */
}

::-webkit-scrollbar-thumb {
    background: #27272a; /* Zinco 800 */
    border-radius: 9999px;
    border: 1px solid #09090b;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46; /* Zinco 700 */
}

/* 2. Reset e Comportamento de Rolagem Fluida */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent; /* Remove o flash azul ao clicar no mobile */
}

body {
    background-color: #09090b;
    color: #f4f4f5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 3. Efeitos de Transição Globais para Elementos Interativos (Cards e Botões) */
.transition-all-custom {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4. Estilização para Inputs e Textareas no Foco (XUI Glow Effect) */
input:focus, 
select:focus, 
textarea:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2); /* Sombra suave Indigo */
    border-color: #6366f1 !important;
    outline: none;
}

/* 5. Correção de visualização para inputs de data no Chrome/Safari Dark */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Deixa o ícone de calendário branco */
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* 6. Efeito de Desfoque de Vidro (Glassmorphism) para Header Fixo e Navegação Mobile */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 7. Melhoria na legibilidade de Tabelas Longas no Mobile */
.overflow-x-auto {
    mask-image: linear-gradient(to right, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 95%, transparent 100%);
}

/* 8. Animação suave para abertura do Sidebar Mobile */
#sidebar {
    will-change: transform;
}