﻿:root {
    --sidebar-width: 280px;
    --brand-blue: #244D73;
    --brand-orange: #F7941D;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active-bg: rgba(255, 255, 255, 0.15);
    --loader-overlay: rgba(36, 77, 115, 0.85);
}

body {
    background-color: #ffffff !important;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar-wrapper {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    background-color: var(--brand-blue) !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.sidebar-content, .sidebar-brand, .sidebar-footer {
    background-color: transparent !important;
}

    .sidebar-brand img {
        display: block !important;
        max-height: 45px;
        width: auto;
        filter: brightness(0) invert(1);
        margin: 0 auto;
    }

.user-info-mobile {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-menu .nav-item {
        margin: 4px 12px;
    }

    .sidebar-menu .nav-link {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        color: rgba(255, 255, 255, 0.8) !important;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

        .sidebar-menu .nav-link:hover {
            background-color: var(--sidebar-hover);
            color: #ffffff !important;
        }

        .sidebar-menu .nav-link.active {
            background-color: var(--sidebar-active-bg) !important;
            color: var(--brand-orange) !important;
            border-left: 4px solid var(--brand-orange);
        }

.main-wrapper {
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

    .main-wrapper .navbar {
        z-index: 1030;
        width: 100%;
        display: flex !important;
    }

.navbar .container-fluid {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1600px) {
    .main-wrapper {
        margin-left: var(--sidebar-width) !important;
    }

    .navbar .justify-content-end {
        display: flex !important;
        flex: 1;
    }

    .d-custom-hide-desktop {
        display: none !important; 
    }

    .d-custom-show-desktop {
        display: flex !important; 
    }
}

@media (max-width: 1599.98px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
        z-index: 3000;
    }

        .sidebar-wrapper.active {
            transform: translateX(0);
        }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .navbar {
        background-color: white !important;
    }
}

.overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}

.loading-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--loader-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease-in-out;
}

.loading-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-arc {
    width: 120px;
    height: 120px;
    border: 5px solid transparent;
    border-top: 5px solid var(--brand-orange);
    border-radius: 50%;
    animation: spin-loader 1.2s linear infinite;
}

#loading-text {
    position: absolute;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    white-space: nowrap;
}

@keyframes spin-loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.d-none {
    display: none !important;
}

.logo-navbar-height {
    max-height: 50px;
}

.navbar-min-height {
    min-height: 70px;
}

.icon-burger-size {
    font-size: 2rem;
}

.spacer-40 {
    width: 40px;
}

.font-xxs {
    font-size: 0.65rem;
}

.user-card-mobile {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-border-opacity {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.toast-index {
    z-index: 1100;
}

.toast-container-login {
    z-index: 1100;
}

.loading-wrapper.active {
    display: flex !important;
}

.div-banner {
    background-color: #001a2c; 
    color: white;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.text-banner {
    font-size: 14px;
    font-weight: 500;
}

.terms-link {
    font-size: 12px;
    color: white;
    text-decoration: none;
}

    .terms-link:hover {
        color: #f39c12;
        text-decoration: underline;
    }

body {
    padding-bottom: 60px;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 2rem 1.5rem 1rem 1.5rem;
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.img-banner {
    height: 30px;
}

.modal-title {
    color: #002137;
}

.modal-body {
    font-size: 0.9rem;
}

.div-banner {
    background-color: #001529; 
    padding: 10px 0;
}

.text-banner {
    color: #ffffff;
    font-size: 14px;
}

.custom-modal-style {
    background-color: #fffaf2 !important; 
    border-radius: 40px !important; 
    border: none !important;
}

    .custom-modal-style .modal-header {
        text-align: center;
    }

    .custom-modal-style .modal-title {
        font-family: 'AnimaFontExtraBold', sans-serif;
        color: #1a4a7c; 
        font-size: 24px;
    }

.section-subtitle {
    font-weight: 800;
    color: #1a4a7c;
    margin-top: 20px;
    font-size: 1.2rem;
}

.btn-close-custom {
    position: absolute;
    right: 25px;
    top: 20px;
    background: none;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    line-height: 1;
}

.content-text-area {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.modal-dialog-scrollable .modal-content {
    max-height: 90vh;
}

.d-custom-hide-desktop {
    display: flex !important;
}

.d-custom-show-desktop {
    display: none !important; 
}

.show-above-1600 {
    display: none !important;
}

.show-below-1600 {
    display: block !important;
}

@media (min-width: 1600px) {
    .show-above-1600 {
        display: block !important;
    }

    .show-below-1600 {
        display: none !important;
    }
}

@media (max-width: 1599.98px) {
    .navbar .d-lg-none { 
        display: flex !important;
    }
}

.d-custom-show-desktop {
    display: none !important;
}

.d-custom-hide-desktop {
    display: flex !important;
}

@media (min-width: 1600px) {
    .d-custom-hide-desktop {
        display: none !important;
    }

    .d-custom-show-desktop {
        display: flex !important;
    }
}