/* =============================================
   PORTAL DA TRANSPARÊNCIA & ACESSO RÁPIDO
   CSS de Alto Padrão para Joomla 3.10.6
   Baseado em Bootstrap 5 com tema azul
   ============================================= */

/* === CARDS === */
.widget-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 170px;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #003d69;
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
   font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #003d69, #0077B6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.widget-card i {
    font-size: 1.75rem;
    margin-bottom: 0.625rem;
    color: #003d69;
    transition: all 0.3s ease;
}

.widget-card span {
    display: block;
    font-weight: 500;
    color: #003d69;
    transition: color 0.3s ease;
  font-weight: 600;
}

.widget-card:hover,
.widget-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 92, 153, 0.25);
    border-color: #003d69;
    background: #003d69;
    color: #ffffff;
    text-decoration: none;
}

.widget-card:hover::before,
.widget-card:focus::before {
    transform: scaleX(1);
}

.widget-card:hover i,
.widget-card:focus i {
    color: #ffffff;
    transform: scale(1.1);
}

.widget-card:hover span,
.widget-card:focus span {
    color: #ffffff;
}

.widget-card .menu-note,
.widget-card small {
    font-size: 0.7em;
    line-height: 1.2;
    color: #6c757d;
    margin-top: 0.5rem;
    font-weight: 400;
    text-align: justify;
    transition: color 0.3s ease;
}

.widget-card:hover .menu-note,
.widget-card:hover small,
.widget-card:focus .menu-note,
.widget-card:focus small {
    color: #ffffff !important;
}

/* === TÍTULO DO MÓDULO === */
.module-title.title-blue,
h3.module-title.title-blue {
    color: #003d69;
   font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 5px;
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#widget_acesso_rapido .module-title.title-blue {
    border-bottom: none;
}

/* === ABAS (NAV TABS) === */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: none !important;
    margin-bottom: 1rem;
    margin-top: 0.625rem;
    padding-bottom: 0;
    list-style: none;
    padding-left: 0;
}

.nav-tabs .nav-item {
    margin-bottom: 0;
    list-style: none;
    border-radius: 500px;
}

.nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: #f2f4f8;
    border: none;
    border-radius: 25px;
    color: #003d69;
    font-weight: 500;
   /* font-size: 0.875rem;*/
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 500px !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    background: #003d69;
    color: #ffffff;
    text-decoration: none;
}

.nav-tabs .nav-item.active .nav-link,
.nav-tabs .nav-link.active {
    background: #003d69;
    color: #ffffff;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 92, 153, 0.3);
}

.nav-tabs .nav-link i {
   /* font-size: 1rem;*/
    flex-shrink: 0;
}

/* Garantir que os ícones apareçam */
.nav-tabs .nav-link i::before {
    display: inline-block;
}

.nav-tabs .nav-link:focus-visible {
    outline: 2px solid rgba(0, 92, 153, 0.4);
    outline-offset: 2px;
    border-radius: 25px;
}

/* === TAB CONTENT === */
.tab-content {
    animation: fadeIn 0.4s ease-in-out;
}

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

.tab-pane {
    display: none;
    padding: 10px;
}

.tab-pane.active {
    display: block;
}

/* === CATEGORIAS TRANSPARÊNCIA === */
.transparencia-category-title {
    color: #003d69;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px dotted #CCCCCC;
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.transparencia-group {
    margin-bottom: 1.5rem;
}

.transparencia-card {
    margin-bottom: 1rem;
}

/* === BUSCA === */
.mod-finder__search {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 750px;
    border-radius: 40px;
    background-color: #f2f4f8;    border: 1px solid #dee2e6;    padding: 0.625rem 0.9375rem;
    align-items: center;
    box-shadow: 0 4px 12px rgba(184, 184, 184, 0.15);
    transition: all 0.3s ease;
    margin: 1.5rem auto 1.5rem auto;
}

.mod-finder__search .awesomplete {
    flex: 1;
}

.mod-finder__search .input-group {
    display: flex;
    width: 100%;
    align-items: center;
}

.mod-finder__search input.form-control,
.mod-finder__search input.js-finder-search-query {
    flex: 1;
    height: 42px;
    padding: 0 0.875rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none;
}

.mod-finder__search input.form-control::placeholder,
.mod-finder__search input.js-finder-search-query::placeholder {
    color: #aaa;
}

.mod-finder__search input.form-control:focus,
.mod-finder__search input.js-finder-search-query:focus {
    outline: none;
    box-shadow: none;
}

.mod-finder__search .btn,
.mod-finder__search button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background-color: #003d69;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: pulse 2s infinite;
}

.mod-finder__search .btn:hover,
.mod-finder__search button:hover {
    background: #004777;
}

.mod-finder__search .btn .icon-search,
.mod-finder__search button .icon-search,
.mod-finder__search .btn .fas,
.mod-finder__search button .fas {
    font-size: 1.125rem;
    color: #ffffff;
}

.mod-finder__search .btn span:not(.icon-search):not(.fas),
.mod-finder__search button span:not(.icon-search):not(.fas) {
    display: none;
}

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

.mod-finder__search .form-control:focus-visible {
    outline: 2px solid rgba(0, 92, 153, 0.4);
    outline-offset: 2px;
    border-radius: 8px;
}

/* === CONTAINER ACESSO RÁPIDO === */
#widget_acesso_rapido {
    position: relative;
    margin-top: 1.25rem;
    background-image: linear-gradient(rgb(255 255 255) 30%, rgb(255 255 255 / 0%) 50%);
    
    border-radius: 10px;
    padding: 0;
    overflow: visible;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 15px;
}

#widget_acesso_rapido .module-title {
    width: 100%;
    padding: 0 15px;
    margin-bottom: 1rem;
}
#widget_acesso_rapido .widget-card {
    margin-bottom: 10px;
    height: 120px;
    padding-top: 30px;
}
#widget_acesso_rapido::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    height: 12px;

    pointer-events: none;
    border-radius: 10px 10px 0 0;
}

/* === MENU LATERAL (Acesso Rápido) === */
#widget_acesso_rapido .left-menu,
.left-menu {
    background:#005C99;
    border-radius: 10px 0 0 10px;
    padding: 0.9375rem;
    min-height: 350px;
    float: left !important;
}

#widget_acesso_rapido .left-menu .list-group,
.left-menu .list-group {
    margin: 0;
    padding: 0;
}

#widget_acesso_rapido .left-menu .list-group-item,
.left-menu .list-group-item {
    background: transparent;
    border: none;
    padding: 0.375rem 0;
}

#widget_acesso_rapido .left-menu .list-group-item a,
.left-menu a {
    text-decoration: none;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

#widget_acesso_rapido .left-menu .list-group-item a::after,
.left-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.5) 100%);
    border-radius: 2px;
    transition: width 0.35s ease, opacity 0.2s ease;
}

#widget_acesso_rapido .left-menu .list-group-item a:hover::after,
.left-menu a:hover::after {
    width: 80%;
}

#widget_acesso_rapido .left-menu .list-group-item.active a::after,
.left-menu li.active > a::after {
    width: 80%;
}

#widget_acesso_rapido .left-menu:hover .list-group-item.active a::after,
.left-menu:hover li.active > a::after {
    width: 0;
    opacity: 0;
}

#widget_acesso_rapido .left-menu .list-group-item a i,
.left-menu a i {
    font-size: 1rem;
    width: 24px;
    text-align: center;
}

/* === ABAS DO ACESSO RÁPIDO === */
#widget_acesso_rapido .right-tabs,
.right-tabs {
    padding: 0.625rem;
    background: #ffffff;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 350px;
    float: left !important;
}

#widget_acesso_rapido .right-tabs .nav-tabs {
    margin-top: 0.3125rem;
    margin-bottom: 0.9375rem;
}

#widget_acesso_rapido .right-tabs .nav-tabs .nav-link {
    margin-top: 0.3125rem;
    margin-bottom: 0.3125rem;
    border-radius: 500px;
}

#widget_acesso_rapido .right-tabs .tab-content,
.right-tabs .tab-content {
    height: 280px;
    min-height: 280px;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

#widget_acesso_rapido .right-tabs .tab-content::-webkit-scrollbar,
.right-tabs .tab-content::-webkit-scrollbar {
    width: 8px;
}

#widget_acesso_rapido .right-tabs .tab-content::-webkit-scrollbar-track,
.right-tabs .tab-content::-webkit-scrollbar-track {
    background: #f2f4f8;
    border-radius: 10px;
}

#widget_acesso_rapido .right-tabs .tab-content::-webkit-scrollbar-thumb,
.right-tabs .tab-content::-webkit-scrollbar-thumb {
    background-color: #003d69;
    border-radius: 10px;
}

/* === WIDGET TRANSPARÊNCIA === */
.widget-transparencia {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

.widget-transparencia .module-title.title-blue {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.widget-transparencia .tab-content {
    height: auto;
    min-height: 300px;
    max-height: auto;
    overflow-x: hidden;
    padding-right: 8px;
    background: #ffffff;
    border-radius: 12px;
}

.widget-transparencia .tab-content::-webkit-scrollbar {
    width: 8px;
}

.widget-transparencia .tab-content::-webkit-scrollbar-track {
    background: #f2f4f8;
    border-radius: 10px;
}

.widget-transparencia .tab-content::-webkit-scrollbar-thumb {
    background-color: #003d69;
    border-radius: 10px;
}

.widget-card:focus-visible,
.nav-tabs .nav-link:focus-visible {
    outline: 2px solid rgba(0, 92, 153, 0.4);
    outline-offset: 2px;
}

/* === RESPONSIVIDADE === */
@media (max-width: 960.98px) {
    .widget-transparencia {
        padding: 1rem;
    }

    .widget-transparencia .tab-content {
        max-height: none;
    }

    .widget-transparencia .nav-tabs .nav-link {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 991px) {
    #widget_acesso_rapido .left-menu {
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
    
    #widget_acesso_rapido .right-tabs,
    .right-tabs {
        padding: 0.625rem;
        border-radius: 10px;
    }
    
    .nav-tabs {
        gap: 0.375rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.875rem;
        /* font-size: 0.8rem; /*
    }
    
    .nav-tabs .nav-link i {
       /* font-size: 0.9rem;*/
    }
}

@media (max-width: 767px) {
    .widget-card {
        height: 140px;
        padding: 0.875rem 0.75rem;
    }
    
    .widget-card i {
      /*  font-size: 1.5rem;*/
        margin-bottom: 0.5rem;
    }
    
    .widget-card span {
        font-size: 0.8rem;
    }
    
    .module-title.title-blue,
    h3.module-title.title-blue {
      /*  font-size: 1.3rem;*/
    }
    
    .transparencia-category-title {
       /* font-size: 1.1rem;*/
    }
    
    .nav-tabs {
        gap: 0.25rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
      /*  font-size: 0.75rem;*/
    }
    
    .mod-finder__search {
        padding: 0.5rem 0.75rem;
    }
    
    .mod-finder__search input.form-control,
    .mod-finder__search input.js-finder-search-query {
        height: 38px;
    }
    
    .mod-finder__search .btn,
    .mod-finder__search button {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 575px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 0.625rem;
      /*  font-size: 0.7rem;*/
    }
    
    .nav-tabs .nav-link i {
       /* font-size: 0.875rem;*/
    }
    
    .widget-card {
        height: 130px;
    }
    
    .flex-grow-1 {
        width: 100%;
        justify-items: center;
    }
}

