/* =======================================
   Custom Stylesheet
   Autor: Marcelo Macedo (Farol Operacional)
   Descrição: CSS base para layout e tema
   ======================================= */

.theme-dark {
    background-color: #111111 !important;
    color: #ffffff !important;
}

.theme-light {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.theme-dark .card {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}

.theme-light .card {
    background-color: #f8f9fa !important;
    color: #000000 !important;
}

.theme-dark .table {
    background-color: #1e1e1e !important;
    color: #fff !important;
}

.theme-light .table {
    background-color: #fff !important;
    color: #000 !important;
}

input,
.form-control {
    background-color: inherit !important;
    color: inherit !important;
}

.card-farol .farol-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.card-farol .farol-bolinha {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: currentColor;
}

.card-farol {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    color: var(--farol-text-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-farol:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Estilo para os tooltips dos cards de filtro */
[id^='filtro-card'] {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

[id^='filtro-card']:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar .nav-link {
    color: white !important;
    opacity: 1 !important;
}

.navbar .nav-link.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Estilização para textos de clientes no dropdown */
.Select-menu-outer .Select-option {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    min-height: 30px !important;
    padding: 6px 12px !important;
    display: flex !important;
    align-items: center !important;
}

/* Melhora a visualização do dropdown de clientes */
.dash-dropdown .Select-value-label {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Classes Glass Morphism para uso geral */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Animações e efeitos adicionais */
.glow {
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(88, 166, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(88, 166, 255, 0);
    }
}

.card.shimmer {
    position: relative;
    overflow: hidden;
}

.card.shimmer::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    to {
        transform: rotate(30deg) translate(100%, 100%);
    }
}

/* Aumenta o tamanho do container do dropdown */
.Select-control,
.Select.is-open > .Select-control {
    min-height: 38px !important;
    max-width: none !important;
}

/* Aumenta a largura do menu dropdown */
.Select-menu-outer {
    min-width: 350px !important;
    max-width: 500px !important;
}
