/* Sidebar */
.brand-link .brand-image {
    float: none;
    margin: 8px 14px 8px 14px;
}
.user-logo {
    font-size: 3em;
    text-align: center;
}
.sidebar-username {
    color: #C2C7D0 !important;
    font-size: 1em;
    font-weight: 600;
    width: auto;
    word-wrap: normal;
    overflow-wrap: normal;
    text-align: center;
}
.reserved-area {
    color: #C2C7D0 !important;
    font-size: 1.125em;
    font-weight: 700;
    width: auto;
    text-align: center;
    padding: 10px 0px 10px 0px;
}
.user-panel .info {
    white-space: wrap;
    padding: 0px;
}
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active, [class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:hover {
    background-color: #97bf0d;
    color: #fff;
}
[class*=sidebar-dark-] {
    background-color: #29333d;
}
.sidebar-collapse.sidebar-mini .sidebar-logo,
.sidebar-collapse.sidebar-mini .info,
.sidebar-collapse.sidebar-mini .user-panel,
.sidebar-collapse.sidebar-mini .brand-image {
    display: none !important;
    transition: margin-left .3s linear, opacity .3s ease, visibility .3s ease;
}
.sidebar-collapse.sidebar-mini .brand-link {
    height: 76px;
}
/* Navbar */
.navbar-white {
    height: 75px;
    background-color: #29333d;
    color: white;
}
.navbar-white a {
    color: #C2C7D0 !important;
}
.navbar-white a:hover {
    color: #97bf0d !important;
}
.navbar-white .active {
    color: #97bf0d !important;
    font-weight: 700;
}
.dark-mode .navbar-white {
    background-color: #29333d;
    color: white;
}
.main-header {
    border-bottom: 0px;
}
.dark-mode .sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #97bf0d;
}
.dark-mode .card-primary .card-header,
.dark-mode .navbar-white,
.dark-mode .main-footer,
.dark-mode .sidebar-dark-primary {
    background-color: #2c3136 !important;
}
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-drop.active {
    background-color: #97bf0d;
    color: #fff;
}

/* Footer */
.main-footer {
    font-size: 0.65em;
    background-color: #29333d;
    color: #C2C7D0;
    padding: 0.8rem;
}
#menu-footer-left{
	list-style-type: none;
	padding: 0;
}
#menu-footer-left li {
    display: inline-block;
}
#menu-footer-left li a{
    font-family: "Merriweather";
    font-size: 1em;
	color: white;
	text-decoration: none;
}
#menu-footer-left li a:hover{
	color: #97bf0d; 
}
.menu-item-last .nav-divider {
    display: none;
}

/* Login and Registration */
.btn-login {
    background-color: #97bf0d;
    color: white;
    text-transform: capitalize;
    font-size: 1em;
    border: 1px solid #97bf0d;
    border-radius: 0px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-login:hover {
    background-color: #a8d10f !important;
    border: 1px solid #a8d10f !important;
}
.login-logo {
    font-family: 'Merriweather', serif !important;
    font-size: 1.5em;
    color: #29333d;
    margin-bottom: 20px;
    text-align: center;
}
.login-box, .register-box {
    margin: 0 auto;
    padding-top: 108px;
    padding-bottom: 108px;
}
.callout.callout-danger {
    background-color: #ffefef;
}
.icheck-primary>input:first-child:checked+label::before {
    background-color: #97bf0d;
    border-color: #97bf0d;
}
.login-box-msg, .login-small-text {
    font-size: 0.875em;
}
.login-small-text a {
    color: #97bf0d;
}
.signin-box {
    margin-bottom: 1rem;
}

/*Eventi*/
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.nav-event {
    color: #ff6900;
}
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.nav-event:hover {
    color: #ff8f3f;
}
.nav-link.nav-event.active {
    background-color: #ff6900 !important;
    color: #fff !important;
}
.card-event .card-header {
    background-color: #ff6900 !important;
    color: #fff;
}
.jit-link, .event-text a {
    color: #97bf0d;
}
.jit-link:hover, .event-text a:hover {
    color: #a8d10f;
}
.sidebar-mini .nav-sidebar .nav-link.nav-event {
    white-space: normal !important;
}
.info-iscr-evento {
    color: #3c763d;
    background-color: #dff0d8;
    border: 1px #3c763d;
}
.info-iscr-evento p {
    margin-bottom: 4px;
}
.icheck-primary.check-event label{
    font-size: 0.875em !important;
    font-weight: 500 !important;
}
.card-primary.card-event .card-header{
    background-color: #97bf0d !important;
}
.card-primary.card-event .card-header:hover{
    background-color: #a8d10f !important;
}
.ajax-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it is above all other content */
    color: white;
    text-align: center;
}
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Annunci e Corsi */
.modalButtons {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.modalButtons button {
    margin: .25rem;
}
.order-archive-button {
    display: flex;
    align-items: center;
}

/* General */
.card-primary .card-header {
    background-color: #29333d !important;
}
.btn-primary {
    background-color: #97bf0d !important;
    border-color: #97bf0d !important;
}
.btn-primary:hover {
    background-color: #80a20b !important;
    border-color: #80a20b !important;
}
.btn-primary.active, 
.btn-primary.active:hover {
    background-color: #78990a !important;
    border-color: #78990a !important;
}
.breadcrumb-item a {
    color: #97bf0d !important;
}
.disattivazione-btn {
    margin: 4px 0px 20px 0px;
}
.btn-outline-jit {
    color: #97bf0d;
    border-color: #97bf0d;
}
.btn-outline-jit:hover {
    color: #80a20b;
}
.btn-outline-jit.active {
    color: #fff;
    background-color: #97bf0d;
    border-color: #97bf0d;
}
.modal-details p {
    font-size: 0.8em;
    margin-bottom: 8px;
}
.modal-annuncio {
    background-color: #29333d;
    color: white;
}
.modal-annuncio span {
    color: white;
}
.card-annuncio .card-header, .card-annuncio .card-footer {
    padding-top:5px;
    padding-bottom:5px;
    background-color: #29333d;
}
.card-annuncio .card-footer {
border-bottom-left-radius: 0.25rem;
border-bottom-right-radius: 0.25rem;
}
.card-annuncio .card-body {
    background-color: #29333d;
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
}
.hide {
    display:none !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #97bf0d;
    border-color: #97bf0d;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ebebeb;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: white;
}
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
}
.testo-contattaci {
    font-size: 1.125em;
    margin-top: 10px;
    margin-bottom: 20px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[aria-selected]:hover {
    background-color: #97bf0d;
    color: #fff;
}

.grecaptcha-badge { 
    visibility: hidden; 
    opacity: 0;
}

.bg-orange, .bg-orange>a {
    color: #fff !important;
}

.btn-nowrap {
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 767.98px) { 
    .mb-mobile-16 {
        margin-bottom: 16px;
    }

    .modalButtons {
        justify-content: center;
    }

    p {
        font-size: 0.875em;
    }

    h1 {
        font-size: 2em;
    }

    .small-box h3 {
        font-size: 1.5em;
    }

    .small-box-footer {
        font-size: 0.875em;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-only ul {
        margin-bottom: 0px;
    }
}