/* public/css/style.css */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc; /* slate-50 */
}
/* Garante a exibição do ícone do menu hamburguer no header */
.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Ensure images scale down responsively and do not overflow their containers */
img {
    max-width: 100%;
    height: auto;
}


.app-header-bar {
    background-color: #f8f9fa !important;
    color: #000 !important;
}

.app-header-bar .nav-link,
.app-header-bar .navbar-brand,
.app-header-bar .navbar-text {
    color: #000 !important;
}

.header-brand-logo {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.app-footer {
    min-height: 54px;
}

.app-footer-gov {
    background: #071d41;
    border-top: 1px solid #33527a;
    color: #ffffff;
    display: block;
    padding: 2rem 0 0;
}

.app-footer-gov .logo {
    padding-bottom: 1.5rem;
}

.app-footer-gov .logo img {
    max-height: 48px;
    max-width: 180px;
}

.app-footer-gov .br-list.horizontal {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
}

.app-footer-gov .br-list.horizontal .header {
    width: 100%;
}

.app-footer-gov .br-list.horizontal [class*="col-"] {
    flex-grow: 0;
    padding: 0;
}

.app-footer-gov .br-item {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    display: flex;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.app-footer-gov .br-item .content {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.1rem;
    padding: 0.5rem;
}

.app-footer-gov .br-item:not(:disabled):hover {
    background-image: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12));
}

.app-footer-gov .br-list .br-list {
    display: block;
}

.app-footer-gov .social-network-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.app-footer-gov .social-network .br-button.circle {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
}

.app-footer-gov .assigns img {
    max-height: 46px;
    max-width: 180px;
}

.app-footer-gov .info {
    text-align: center;
}

.app-footer-gov .br-divider {
    border-color: rgba(255, 255, 255, 0.25);
    margin-top: 0 !important;
}

.app-footer-gov .footer-toggle-icon {
    font-size: 1.25rem;
}

.app-footer-link-button {
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .app-footer-gov .br-list.horizontal [class*="col-"] {
        flex-basis: 100% !important;
        max-width: 100%;
    }

    .app-footer-gov .br-list.horizontal .header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
        padding: 0.15rem 0;
    }

    .app-footer-gov .br-list .br-list {
        display: none;
    }
}

.app-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-footer-copy {
    text-align: left;
}

.app-footer-privacy-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.35rem;
}

.app-footer-privacy-link:hover {
    text-decoration: underline;
}

.app-footer-logo-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-brand-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 575.98px) {
    .app-footer-content {
        flex-direction: column;
        align-items: center;
    }

    .app-footer-copy {
        text-align: center;
    }
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #0d6efd;
}

.user-avatar .material-icons {
    font-size: 24px;
}

/* Generic modal styles used outside of Bootstrap components */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.custom-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 0.5rem;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity: 1; transform: scale(1);}
}
.custom-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.custom-close-button:hover,
.custom-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Estilo para garantir que os chart-containers respeitem a altura e largura */
.chart-container {
    position: relative;
    height: 300px; /* Altura base, pode ser ajustada com Tailwind responsivo */
    width: 100%;
    max-width: 600px; /* Limita a largura máxima do gráfico */
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) { /* Exemplo de ajuste para telas maiores */
    .chart-container {
        height: 350px;
    }
}

/* Estilos para a listagem de links */
.link-small {
    font-size: 0.875rem;
}

.link-timestamp {
    color: #6c757d;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Estilo visual das tabelas modernizadas usadas nas listas internas */
.table-modern thead th {
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    border-bottom-width: 0;
}

.table-modern tbody tr + tr {
    border-top: 1px solid #e5e7eb;
}

.table-modern .icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eef2ff;
    font-size: 1.1rem;
}

.table-modern .icon-20 {
    font-size: 1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* Estilos do seletor de estágios do ciclo de vida */
.ciclo-vida-arrows {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0;
    padding: 0.5rem 0;
    justify-content: flex-start;
    align-items: center;
}

.ciclo-vida-arrows::-webkit-scrollbar {
    height: 6px;
}

.ciclo-vida-arrows::-webkit-scrollbar-thumb {
    background-color: rgba(15, 23, 42, 0.25);
    border-radius: 9999px;
}

.ciclo-vida-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

.ciclo-vida-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: #0ea5e9;
    cursor: pointer;
}

.ciclo-vida-label {
    margin: 0;
    font-weight: 500;
    text-decoration: none;
}

.ciclo-vida-checkbox:checked + .ciclo-vida-label {
    font-weight: 700;
    text-decoration: underline;
}

.ciclo-vida-checkbox:focus-visible {
    outline: 2px solid rgba(14, 165, 233, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 575.98px) {
    .ciclo-vida-arrows {
        gap: 0.6rem 1rem;
    }

    .ciclo-vida-option {
        font-size: 0.9rem;
    }
}

/* Utilidades para remover estilos inline e manter compatibilidade com CSP restritivo */
.env-warning-bar {
    background-color: #ffcc00;
    color: #000;
    text-align: center;
    padding: 6px 10px;
    font-weight: bold;
    font-size: 14px;
    margin: 0;
}

.icon-18 {
    font-size: 18px;
}

.icon-20 {
    font-size: 20px;
}

.icon-16 {
    font-size: 1rem;
}

.minw-160 {
    min-width: 160px;
}

.minw-200 {
    min-width: 200px;
}

.minh-420 {
    min-height: 420px;
}

.cursor-help {
    cursor: help;
}

.icon-circle-36 {
    width: 36px;
    height: 36px;
}

.input-80px {
    width: 80px;
}

.suggestion-list {
    max-height: 200px;
    overflow-y: auto;
    display: none;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.suggestion-list.z-100 {
    z-index: 100;
}

.list-inline-hidden {
    display: none;
    font-size: 0.875rem;
}

.section-hidden {
    display: none;
}

.overlay-card {
    display: none;
    z-index: 1050;
    max-width: 350px;
}

.alert-hidden {
    display: none;
}

#app-config {
    display: none;
}


.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cookie-consent__content {
    max-width: 980px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.32);
    padding: 1rem 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent__eyebrow {
    color: #93c5fd;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.cookie-consent__title {
    color: #fff;
}

.cookie-consent__description {
    max-width: 650px;
    font-size: 0.93rem;
    color: #cbd5e1;
}

.cookie-consent__actions {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-consent__actions .btn-light {
    background-color: #f8fafc;
}

.cookie-consent__actions .btn-outline-secondary {
    border-color: #94a3b8;
    color: #e2e8f0;
}

.cookie-consent__actions .btn-outline-secondary:hover {
    background-color: #334155;
    color: #fff;
    border-color: #334155;
}

@media (max-width: 575.98px) {
    .cookie-consent {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cookie-consent__content {
        padding: 1rem;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* Header padrão digital gov.br (apenas no pós-login) */
.br-header {
    --header-padding: 0.85rem;
    --header-logo-size: 42px;
    --header-title-size: 1.1rem;
    --header-subtitle-size: 0.9rem;
    background: #fff;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.1);
    display: flex;
    padding: var(--header-padding) 0;
    position: relative;
    z-index: 30;
}

.br-header .header-top,
.br-header .header-bottom {
    display: flex;
}

.br-header .header-top {
    justify-content: flex-end;
}

.br-header .header-bottom {
    justify-content: space-between;
    margin-top: .6rem;
}

.br-header .header-logo {
    align-items: center;
    display: flex;
    flex: 1;
    gap: .75rem;
}

.br-header .header-logo img {
    height: var(--header-logo-size);
    width: auto;
    filter: none;
}

.br-header .header-logo .br-divider {
    width: 1px;
    align-self: stretch;
    background: #d1d5db;
}

.br-header .header-sign {
    color: #111827;
    font-weight: 600;
}

.br-header .header-actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    gap: .35rem;
}

.br-button.circle {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.br-button.small.circle {
    width: 34px;
    height: 34px;
}

.br-header .header-links .br-list {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 210px;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    padding: .5rem 0;
}

.br-header .header-links.dropdown.show .br-list {
    display: block;
}

.br-header .br-list .header {
    padding: .2rem .95rem .55rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: .25rem;
}

.br-header .br-list .title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

.br-header .br-item {
    display: block;
    padding: .45rem .95rem;
    color: #1f2937;
    text-decoration: none;
}

.br-header .br-item:hover {
    background: #f8fafc;
}

.br-header .header-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #ffdf7e;
    color: #124984;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.br-header .header-menu {
    align-items: center;
    display: flex;
    flex: 1;
}

.br-header .header-info {
    margin-left: .75rem;
}

.br-header .header-title {
    color: #0f172a;
    font-size: var(--header-title-size);
    font-weight: 600;
}

.br-header .header-subtitle {
    color: #334155;
    font-size: var(--header-subtitle-size);
    margin-top: .15rem;
}

.br-header .header-search {
    align-items: center;
    display: none;
    gap: .45rem;
}

.br-header .header-search.active {
    display: flex;
}

.br-header .header-search .br-input {
    position: relative;
}

.br-header .header-search .br-input label {
    display: none;
}

.br-header .header-search .br-input input {
    width: 320px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: .5rem 2.6rem .5rem .85rem;
    outline: none;
}

.br-header .header-search .br-input .br-button {
    position: absolute;
    right: 2px;
    top: 2px;
}

.br-header .search-close {
    display: inline-flex;
}

.br-header[data-sticky].sticky {
    position: sticky;
    top: 0;
}

@media (max-width: 991.98px) {
    .br-header .header-logo .br-divider,
    .br-header .header-sign,
    .br-header .header-subtitle {
        display: none;
    }

    .br-header .header-search .br-input input {
        width: 190px;
    }
}
