/* =======================================
   Advanced Visual Effects Stylesheet
   Autor: Copilot for Marcelo Macedo (Farol Operacional)
   Descrição: Efeitos visuais avançados para componentes específicos
   ======================================= */

/* Estilização avançada para o Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar:hover::before {
    opacity: 1;
}

.navbar-brand {
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateZ(0) scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Estilização para os cartões farol */
.card-farol {
    position: relative;
    overflow: hidden;
}

.card-farol::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.8) 0%,
        transparent 70%
    );
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.card-farol:hover::after {
    opacity: 0.3;
    transform: scale(1);
}

/* Efeito reflexo para os cards */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.card:hover::before {
    left: 150%;
    transition: left 0.75s ease;
}

/* Estilização para comentários */
.comment {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.comment::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        135deg,
        transparent,
        rgba(13, 110, 253, 0.5),
        transparent
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: source-out;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment:hover::before {
    opacity: 1;
}

/* Efeito para as tabelas de dados */
.dash-table-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dash-table-container::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 15px;
    background: linear-gradient(135deg, #0d6efd, #198754, #dc3545, #0d6efd);
    background-size: 400% 400%;
    z-index: -1;
    animation: gradientTableBorder 10s ease infinite;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.dash-table-container:hover::after {
    opacity: 0.2;
}

@keyframes gradientTableBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Efeitos para dropdowns */
.Select-control {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.Select-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.Select.is-open > .Select-control {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* Efeitos para botões de ação */
.btn-action {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 60%
    );
    transform: scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.btn-action:hover::before {
    transform: scale(2);
}

/* Efeitos para checkboxes */
.form-check-input {
    position: relative;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    animation: checkPulse 0.5s ease-out;
}

@keyframes checkPulse {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Tema escuro */
.theme-dark .card::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
}

.theme-dark .comment::before {
    background: linear-gradient(
        135deg,
        transparent,
        rgba(88, 166, 255, 0.3),
        transparent
    );
}

.theme-dark .dash-table-container::after {
    background: linear-gradient(135deg, #58a6ff, #00cc66, #ff5e5e, #58a6ff);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .card::before,
    .card-farol::after {
        display: none;
    }

    .dash-table-container::after {
        opacity: 0.05;
    }
}
