body {
    font-family: "montserrat";
    background-color: #f5f5f5;
    overflow-x: hidden;
}
.alert {
    border: none !important;
}
ul {
    padding-left: 1rem;
}
::-webkit-scrollbar { /* For Chrome and Safari */
    width: 12px; /* width of the entire scrollbar */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* color of the tracking area */
}

::-webkit-scrollbar-thumb {
    background: #888; /* color of the scroll thumb */
    border-radius: 10px; /* roundness of the scroll thumb */
    border: 2px solid #f1f1f1; /* creates padding around scroll thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* color of the scroll thumb on hover */
}
body { /* For Internet Explorer and Edge */
    scrollbar-face-color: #888; /* color of the scroll thumb */
    scrollbar-track-color: #f1f1f1; /* color of the tracking area */
    scrollbar-width: thin; /* width of the scrollbar */
    scrollbar-3dlight-color: #888; /* color of the scroll thumb */
    scrollbar-arrow-color: #888; /* color of the arrows */
    scrollbar-highlight-color: #888; /* top and left edges of the scroll thumb */
    scrollbar-shadow-color: #888; /* bottom and right edges of the scroll thumb */
    scrollbar-darkshadow-color: #888; /* color of arrows and scroll thumb border */
}

#sidebar {
    position: fixed;
    height: 100vh;
    background-color: #fff;
    padding: 0 10px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    transition: width 0.3s ease, padding 0.3s ease;
    z-index: 1001;
}

#sidebar::-webkit-scrollbar {
    width: 8px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

#sidebar:hover::-webkit-scrollbar-thumb {
    background: #888;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (min-width: 769px) and (max-width: 1199px) {
    #sidebar {
        width: 80px;
        padding: 0 10px;
    }
    #sidebar #logo img {
        display: none;
        opacity: 0;
    }
    #sidebar .favicon-logo {
        display: flex !important;
        width: 40px;
        margin: 15px auto;
    }
    #accordion .card {
        margin-bottom: 0 !important;
    }
    #sidebar .card_header p,
    #sidebar .collapse {
        display: none;
    }
    #sidebar .card_header {
        justify-content: center;
        padding: 15px 5px;
    }
    #sidebar .card_header div {
        justify-content: center;
    }
    #sidebar .card_header .icon-option,
    #sidebar .card_header .ods-icon {
        margin-right: 0;
    }
    #sidebar .card_header ion-icon:last-child {
        display: none;
    }
    #content {
        margin-left: 80px !important;
        width: calc(100% - 80px) !important;
    }
}

@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
    }
    #sidebar.show {
        transform: translateX(0);
    }
    #content {
        margin-left: 0 !important;
    }
}

.sidebar-toggle {
    display: none;
    background-color: #F84982;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.mobile-header {
    display: none;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: #fff;
        border-bottom: 1px solid #ddd;
        padding: 0 15px;
        z-index: 1001;
    }
    .sidebar-toggle {
        display: block;
        position: static;
    }
    .filters-toggle-header {
        display: flex;
        align-items: center;
        background-color: #F84982;
        color: #fff;
        border: none;
        padding: 10px 15px;
        border-radius: 5px;
        cursor: pointer;
        font-weight: 600;
    }
    .filters-toggle-header ion-icon {
        font-size: 20px;
        margin-right: 8px;
    }
    #content {
        margin-top: 60px;
    }
}
#sidebar img {
    width: 90%;
    display: flex;
    margin: 30px auto;
}

#sidebar .favicon-logo {
    width: 30px;
    margin: 20px auto;
}

#sidebar .main-logo {
    width: 75%;
    margin: 10px auto 30px;
}

@media (min-width: 1200px) {
    #sidebar .favicon-logo {
        display: none;
    }
    #sidebar .main-logo {
        content: url('https://www.ibermusicas.org/wp-content/uploads/2020/04/LOGO.png');
        margin: 30px auto 40px;
    }
    #sidebar .ods-icon {
        margin-right: 15px !important;
    }
    #sidebar.collapsed {
        width: 80px;
        padding: 0 10px;
    }
    #sidebar.collapsed #logo .main-logo {
        opacity: 0;
        visibility: hidden;
    }
    #sidebar.collapsed .favicon-logo {
        width: 40px;
        margin: 15px auto;
        opacity: 1;
        visibility: visible;
        display: block;
    }
    #sidebar.collapsed .card_header p,
    #sidebar.collapsed .collapse {
        display: none;
    }
    #sidebar.collapsed .card_header {
        justify-content: center;
        padding: 15px 5px;
    }
    #sidebar.collapsed .card_header div {
        justify-content: center;
    }
    #sidebar.collapsed .card_header .icon-option,
    #sidebar.collapsed .card_header .ods-icon {
        margin-right: 0 !important;
    }
    #sidebar.collapsed .card_header ion-icon:last-child {
        display: none;
    }
    #sidebar.collapsed ~ #content {
        margin-left: 80px !important;
        width: calc(100% - 80px) !important;
    }
    #sidebar.collapsed #accordion .card {
        margin-bottom: 0 !important;
    }
}

#sidebar .ods-icon {
    margin: 0;
    width: 24px;
}

#accordion .card {
    margin-bottom: 10px;
    border: none;
    position: relative;
}

.custom-tooltip {
    position: fixed;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-tooltip.show {
    opacity: 1;
}

.submenu-dropdown {
    position: fixed;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    min-width: 200px;
}

.submenu-dropdown.show {
    opacity: 1;
    pointer-events: auto;
}

.submenu-dropdown ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.submenu-dropdown ul li {
    padding: 0;
}

.submenu-dropdown ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.submenu-dropdown ul li a:hover {
    background-color: #f5f5f5;
}
.sidebar-bottom-overlay {
    position: sticky;
    width: 100%;
    height: 75px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, #fff, transparent);
    pointer-events: none;
}

@media (min-width: 1200px) {
    #collapseMenuCard {
        display: block;
    }
    #collapseMenuCard ion-icon {
        color: #F84982 !important;
    }
    #sidebar.collapsed #collapseMenuCard ion-icon {
        transform: rotate(180deg);
    }
}

@media (max-width: 1199px) {
    #collapseMenuCard {
        display: none;
    }
}
#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
}
#mySidebar, #filtersBar {
    position: fixed;
    height: 100%;
    padding: 20px;
    background-color: #fff;
    z-index:1;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    #filtersBar {
        transform: translateX(100%);
        right: 0;
        z-index: 1000;
    }
    #filtersBar.show {
        transform: translateX(0);
    }
    .close-filters {
        display: inline-flex !important;
    }
}

.filters-toggle {
    display: none;
}

@media (max-width: 768px) {
    .filters-toggle {
        display: none !important;
    }
}
.filterbar-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 20px;
    align-items: center;
}
.form-div h5 {
    margin: 30px 0;
    font-size: 16px;
    text-transform: uppercase;
}
.actionButton {
    display: flex;
    align-items: center;
    background-color: #F84982;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}
.actionButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.actionButton ion-icon {
    font-size: 20px;
    margin-right: 10px;
}

.close-filters ion-icon {
    margin-right: 0;
}

.actionButton:hover {
    background-color: #f72a6d;
}
.filter-label {
    font-weight:600;
    margin-bottom: 10px;
    font-size: 15px;
}
.custom-select {
    width: 100% !important;
    font-size: 13px !important;
    margin-bottom: 30px !important;
}
.bootstrap-select .dropdown-menu li {
    padding: 3px 0 !important;
}
.card_header {
    display: flex;        
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.card_header:hover {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.card_header div {
    display: flex;
    align-items: center;
}
.card_header div p {
    margin-bottom: 0;
}
.card_header:hover {
    background-color: #e9ecef;
}

.card_header .icon-option {
    margin-right: 15px;
    font-size: 24px;
}

.card_header .ods-icon {
    height: 24px;
    width: 24px;
    margin-right: 15px;
    display: block;
}

.card_header.collapsed ion-icon[name="caret-down-outline"] {
    transform: rotate(-90deg);
}

.card_header .float-right {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.card div ul li {
    list-style: none;
    padding: 20px 10px;
}
.card div ul li a {
    color: #333;
    text-decoration: none;
    border-radius: 5px;
}
.dynamic-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dynamic-link p {
    margin-bottom: 0;
}
.chart-wrapper {
    padding: 10px;
    margin-bottom: 10px;
}
.chart-wrapper h4 {
    font-weight: 600;
    font-size: 1.2rem !important;
    margin-bottom: 40px;
}
#content {
    display: flex;
    justify-content: space-between;
    margin-left: 16.666667%;
    width: 83.333333%;
}

@media (min-width: 1200px) {
    #sidebar.collapsed ~ #content {
        margin-left: 80px;
        width: calc(100% - 80px);
        transition: margin-left 0.3s ease, width 0.3s ease;
    }
    #sidebar.collapsed ~ #content #main {
        right: 0;
        left: auto;
        width: calc(83.333333% - 80px);
        transition: width 0.3s ease;
    }
}
#main {
    margin-top: 20px;
    padding: 0 25px;
    position: fixed;
    overflow-y: auto;
    height: 100vh;
    right: 0;
}
.section-box {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}
.section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.section-header h4, .section-header h2 {
    font-weight: bold;
}
.section-header p {
    color: #666;
}
.countBox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.count-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align:center;
    background-color: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 15px;
    z-index: 1;
    transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    word-break: break-word;
    min-width: 0;
}

.countBox > div {
    min-width: 0;
    flex: 1 1 auto;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .countBox .col-md-3,
    .countBox_2 .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1200px) {
    .countBox .col-md-3,
    .countBox_2 .col-md-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
.count-card:hover {
    background-color: #357395;
}
.count-card ion-icon {
    font-size: 40px;
}
.count-card img {
    transition: filter 0.5s ease;
}
.count-card:hover img {
    filter: brightness(0) invert(1);
}
.totalProjects {
    margin: 10px 0;
    font-size: clamp(18px, 3vw, 30px);
    color: #357395;
    white-space: nowrap;
}
.count-card:hover ion-icon, .count-card:hover span {
    color: #fff;
}
.report {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 15px;
    border-bottom: 3px solid #6BB2CA;
    transition: all .25s ease;
    -o-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -webkit-transition: all .25s ease;
}
.report:hover {
    transform: translate(0,-5px);
    opacity: 0.75;
}
.report .left-side {
    display: flex;
    flex-direction: column;
    padding-right: 30px;
}
.report .left-side h4 {
    font-size: 20px;
    color: #F84982; /* PINK COLOR */
    margin-bottom: 20px;
}
.report .left-side p {
    margin-bottom: 0;
}
.report .left-side span {
    font-size: 13px;
    color: #999;
}
.report .left-side span ion-icon {
    margin-right:10px;
}
.report .left-side hr {
    margin: 1.2rem 0;
    opacity: 0.1 !important;
}
.report .right-side {
    display: flex;
}
.report .right-side a {
    font-size: 25px;
    margin-left: 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}
.report .right-side a:hover {
    color: #F84982; /* PINK COLOR */
    text-decoration: none;
}
.btn-outline-secondary {
    --bs-btn-active-bg: #F84982;
    --bs-btn-active-border-color: #F84982;
}
.img-container {
    margin-bottom: 20px;
    transition: all .25s ease;
    -o-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -moz-transition: all .25s ease;
    -webkit-transition: all .25s ease;
}
.img-container:hover {
    transform: translate(0,-5px);
    opacity: 0.75;
}