/* Estilo Premium para Sistema de Transparência */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Custom Navbar usando cor do banco */
.custom-navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.custom-navbar .nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 16px;
}

.custom-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Efeito Hover nos cards */
.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Cards com mais contraste na Home */
.card-home {
    background-color: #e9eff5 !important;
    /* Slate 100 */
    border: 1px solid #b6b6b6 !important;
    /* Slate 200 */
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.hover-card:hover .icon-wrapper {
    background-color: white !important;
    color: white !important;
}

.hover-card:hover .icon-wrapper i {
    color: white !important;
}

/* Modal e Alerts custom */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer spacing */
main {
    flex: 1 0 auto;
}

/* Correções Mobile Estatísticas */
@media (max-width: 580px) {
    .mobile-center-title {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        margin: 0 0 8px 0 !important;
    }
    .mobile-stack {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        border-radius: 20px !important;
        padding: 15px !important;
        background-color: #f1f5f9 !important;
    }
    .mobile-stack > div {
        width: 100% !important;
        max-width: 200px;
    }
    .mobile-stack input {
        width: 100% !important;
        text-align: center;
        background-color: transparent !important;
    }
}

/* Força exibição do texto e ícones em inputs de data (iOS/Android fix) */
input[type="date"] {
    position: relative;
    min-height: 38px;
    color: #1e293b !important; /* Slate 800 */
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    z-index: 2;
}

input[type="date"]::-webkit-datetime-edit {
    display: flex;
    color: #1e293b !important;
    font-weight: 500;
}

/* Layout Sóbrio (Setor Responsável) */
.bg-dark-sobrio {
    background: #1e293b !important; /* Slate 800 fixo */
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
}

.custom-footer {
    background: #1e293b !important;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important;
    border-top: 2px solid rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.card-sobrio {
    background: rgba(0, 0, 0, 0.3) !important; /* Destaque interno mais dark */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
    border-radius: 16px;
    height: 100%;
}

.card-sobrio:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-circle-sobrio {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.font-light {
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.9) !important; /* Quase branco com alta legibilidade */
}

.sobrio-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #ffffff !important;
    text-transform: uppercase;
}

.sobrio-data {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffffff !important; /* Contraste total */
}

.sobrio-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 15px 0;
}

@media (max-width: 991px) {
    .card-sobrio {
        margin-bottom: 0.5rem;
    }
}

/* Responsividade de Cabeçalho (DeltaSIC) */
@media (max-width: 576px) {
    .navbar-brand {
        max-width: 80% !important; /* Deixa espaço para o toggler */
        white-space: normal !important; /* Permite quebrar linha */
    }
    
    .navbar-brand span.fs-5 {
        font-size: 0.95rem !important; /* Diminui título */
    }
    
    .navbar-brand span.fs-7 {
        font-size: 0.65rem !important; /* Diminui órgão */
    }
    
    .custom-navbar .container {
        flex-wrap: nowrap !important; /* Força toggler na mesma linha */
    }
}