/* =======================================
   Modern UI Effects Stylesheet
   Autor: Copilot for Marcelo Macedo (Farol Operacional)
   Descrição: Efeitos visuais modernos para aprimorar a interface
   ======================================= */

/* Efeitos de profundidade e perspectiva */
.depth-effect {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.depth-effect:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.12);
}

/* Efeito de ondulação para botões */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animações de entrada para componentes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Transições suaves entre páginas */
.smooth-transition {
    transition: opacity 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards 0.1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Destaque para elementos ativos */
.nav-highlight {
    position: relative;
    font-weight: bold;
}

.nav-highlight:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: shimmerNavLink 2s infinite;
}

@keyframes shimmerNavLink {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Destaque para células da tabela */
.cell-highlight {
    background-color: rgba(13, 110, 253, 0.05);
    transition: background-color 0.3s ease;
}

/* Estilos aprimorados para cards */
.card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    transform: translateY(-3px);
}

/* Estilos para seções de parallax */
.parallax-bg {
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Efeito de foco personalizado */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    transition: box-shadow 0.2s ease-in-out;
}

/* Estilização aprimorada para o navbar */
.navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Efeitos para badges e tags */
.badge {
    transform: translateZ(0);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1) translateZ(0);
}

/* Melhorias visuais para tabelas */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td {
    transition: background-color 0.2s ease;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Efeitos de stroke em elementos importantes */
.important-element {
    position: relative;
}

.important-element::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #0d6efd, #198754) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: source-out;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.important-element:hover::after {
    opacity: 1;
}

/* Placeholders com animação */
@keyframes placeholderShimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.content-placeholder {
    animation-duration: 1.25s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeholderShimmer;
    animation-timing-function: linear;
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 800px 104px;
    height: 20px;
    position: relative;
}

/* Estilos para tooltips modernos */
.modern-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    max-width: 300px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.modern-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Efeitos 3D para cards importantes */
.card-3d {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card-3d-inner {
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

.card-3d:hover .card-3d-inner {
    transform: translateZ(40px);
}

/* Efeito neon para destaques */
.neon-effect {
    text-shadow: 0 0 5px rgba(13, 110, 253, 0.7), 0 0 10px rgba(13, 110, 253, 0.5),
        0 0 20px rgba(13, 110, 253, 0.3);
    transition: text-shadow 0.3s ease;
}

.neon-effect:hover {
    text-shadow: 0 0 5px rgba(13, 110, 253, 0.9), 0 0 10px rgba(13, 110, 253, 0.7),
        0 0 20px rgba(13, 110, 253, 0.5), 0 0 40px rgba(13, 110, 253, 0.3);
}

/* Cursor personalizado para elementos interativos */
[class*='cursor-effect'] {
    cursor: pointer;
    position: relative;
}

/* Tema escuro - ajustes específicos */
.theme-dark .depth-effect:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.theme-dark .ripple {
    background-color: rgba(255, 255, 255, 0.2);
}

.theme-dark .cell-highlight {
    background-color: rgba(88, 166, 255, 0.1);
}

/* Media queries para responsividade */
@media (max-width: 768px) {
    .depth-effect:hover {
        transform: none !important;
    }

    .card-3d-inner {
        transform: none !important;
    }
}
