/* Modern styles for Diario Oficial */

:root {
    --primary-color: #113260;
    --secondary-color: #275492;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #fff;
    --border-color: #dee2e6;
}

#content {
    min-height: 100vh;
}

.filter-col {
    background-color: var(--light-gray);
    border-right: 1px solid var(--border-color);
}

#contentDiary {
    background-color: var(--white);
}

#boxDiaries {
    display: flex;
    flex-wrap: wrap;
}

#boxDiaries > .col-md-4 {
    display: flex;
    flex-direction: column;
}

#boxDiaries .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#boxDiaries .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: .25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
    background-image: url('/storage/img/background/diario-card.png');
    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.card-header {
    background-image: linear-gradient(0.65deg, #e8ebef, #ffffff);
    color: #275492;
}

.card-body {
    border: 1px solid var(--border-color);
    border-radius: .25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
    background-color: transparent !important;
    color: white;
}

.card-footer{
    background-image: linear-gradient(0.65deg, #e8ebef, #ffffff);
    color: #275492;
    padding: 0 !important;
}

.btn-card{
    color: #113260;
    background-image: linear-gradient(0.65deg, #e8ebef, #ffffff);
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 5px !important;
    border-bottom-right-radius: 5px !important
}

#search {
    background: linear-gradient(to right, #113260, #275492) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease-in-out;
}

#search:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px -10px rgba(0,0,0,0.75);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.skeleton {
    background-color: #e9ecef;
    border-radius: .25rem;
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: #e9ecef;
    }
    100% {
        background-color: #ced4da;
    }
}

.card-title{
    background-color: black !important;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(to right, #113260, #275492) !important;
    color: #fff;
    border-color: #113260;
}

.pagination {
    background-image: linear-gradient(to right, #d0d5dc, #ffffff);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .075);
    padding: 1rem;
    border-radius: .25rem;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
}

.pagination ul {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
}

nav[aria-label="Page navigation"] {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Remove scrollbar dos containers pais da paginação */
.col-md-12.d-flex.justify-content-center {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
}

/* Remove scrollbar do row que contém a paginação */
#contentDiary .row:last-child {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
}

/* Esconde scrollbar mas mantém funcionalidade de scroll (se necessário) */
.pagination::-webkit-scrollbar,
.pagination ul::-webkit-scrollbar,
nav[aria-label="Page navigation"]::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.pagination,
.pagination ul,
nav[aria-label="Page navigation"] {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
