﻿html, body {
    height: 100%;
    margin: 0;
}

div.modal {
    background: rgba(0, 0, 0, .7);
}

/* Float Panel Styles */
.float-panel {
    position: fixed;
    z-index: 997;
    background: var(--bs-body-bg);
    border: 1px solid #999999;
    border-radius: 5px;
}

    .float-panel .float-panel-header {
        position: absolute;
        width: 100%;
        padding: .5em .5em 0 .5em;
        border-radius: 5px 5px 0 0;
        background-color: var(--bs-body-bg);
        height: 2.5em;
    }

        .float-panel .float-panel-header .float-panel-title {
            font-size: 14px;
            color: var(--bs-body-bg);
            background-color: rgb(131, 69, 140);
            height: 2.2em;
            line-height: 2.2em;
            text-align: center;
            font-weight: bold;
        }

        .float-panel .float-panel-header .float-panel-close {
            position: absolute;
            right: .6em;
        }

    .float-panel .float-panel-message {
        position: absolute;
        top: 2.5em;
        left: 0;
        right: 0;
        padding: .2em .5em;
        font-size: larger;
        font-weight: bold;
        text-decoration: underline;
    }

    .float-panel .float-panel-content {
        overflow-x: hidden;
        overflow-y: auto;
        position: absolute;
        top: 4.6em;
        left: 0;
        right: 0;
        bottom: 3em;
        padding: .5em;
    }

    .float-panel .float-panel-no-msg {
        top: 2.5em !important;
    }

    .float-panel .float-panel-no-footer {
        bottom: 0 !important;
    }

    .float-panel .float-panel-footer {
        overflow-y: auto;
        position: absolute;
        padding: .5em;
        left: 0;
        right: 0;
        bottom: 0;
        border-top: 1px solid #dddddd;
    }

        .float-panel .float-panel-footer .loading {
            display: inline-block;
        }

/* Loading Modal */
#loading-modal {
    background: rgba(0, 0, 0, 0.65);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1058;
}

#loading-modal-progress {
    min-width: min(100vw, 16em);
}

#loading {
    animation: pulse 1.5s infinite;
}

/* Module Panel */
.module-panel .card {
    text-align: center;
}

    .module-panel .card .card-body {
        height: 12em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Logos */
.logo-menu,
.logo-login-main {
    width: 170px !important;
    height: 80px !important;
    object-fit: contain;
    filter: drop-shadow(0 8px 25px rgba(0,0,0,0.4));
    z-index: 10;
}

.logo-login-main {
    width: 200px !important;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.2));
}

.logo-bottom-right {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 280px !important;
    height: 120px !important;
    object-fit: contain;
    z-index: 5;
    filter: drop-shadow(0 8px 25px rgba(0,0,0,0.4));
    pointer-events: none;
}

#fix-bottom-logo {
    position: fixed;
    right: .5em;
    bottom: .1em;
    pointer-events: none;
}

    #fix-bottom-logo img {
        -webkit-filter: drop-shadow(2px 2px 2px #222);
        filter: drop-shadow(5px 5px 5px #222);
        width: 9.4em;
    }

body.rbp-xs #fix-bottom-logo,
body.rbp-sm #fix-bottom-logo,
body.rbp-md #fix-bottom-logo {
    right: .5em;
    left: auto;
}

/* Select2 Dark Themes (consolidated) */
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection,
html[data-bs-theme="dark"] .select2-container .select2-selection--single,
html[data-bs-theme="dark"] .select2-dropdown,
html[data-bs-theme="dark"] .select2-search__field {
    background-color: #212529 !important;
    border-color: #495057 !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection,
html[data-bs-theme="dark"] .select2-container .select2-selection__rendered,
html[data-bs-theme="dark"] .select2-container .select2-selection__arrow,
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-results__option,
html[data-bs-theme="dark"] .select2-results__option {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection__choice,
html[data-bs-theme="dark"] .select2-results__option--highlighted {
    background-color: #343a40 !important;
}

[data-bs-theme="dark"] .gj-picker {
    background-color: var(--bs-body-bg) !important;
}

/* DataTables */
th.dt-head-center, td.dt-head-center {
    text-align: center !important;
}

/* Sidebar */
[data-bs-theme="light"] #sidebar .list-group-item a:hover,
[data-bs-theme="light"] #sidebar .list-group-item a:focus,
[data-bs-theme="light"] #sidebar .list-group-item a:active {
    background-color: rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}

[data-bs-theme="dark"] #sidebar .list-group-item a:hover,
[data-bs-theme="dark"] #sidebar .list-group-item a:focus,
[data-bs-theme="dark"] #sidebar .list-group-item a:active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    outline: none !important;
}

/* Animations */
[data-bs-toggle="collapse"]:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

[data-bs-toggle="collapse"] .fa-chevron-down {
    transition: transform 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes slideInCenter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Hover Effects */
.d-inline-block:hover {
    cursor: pointer;
    background-color: #b3d9ff;
}

[data-bs-theme="dark"] .d-inline-block:hover {
    cursor: pointer;
    background-color: #375a7f;
}

/* Login Container */
.login-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .login-video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.floating-login-box {
    padding-top: 4.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    max-width: 92vw;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    padding: 50px;
    z-index: 10;
    animation: slideInCenter 0.8s ease-out;
}

[data-bs-theme="dark"] .floating-login-box {
    background: rgba(33, 37, 41, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.login-form {
    max-width: none;
}

/* Login Button */
.login-btn {
    position: relative;
    width: 100%;
    height: 36px;
    padding: 0;
    margin: 15px 0;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 700;
    font-size: 16px;
    color: white !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 4px 12px rgba(118, 75, 162, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .login-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }

    .login-btn:hover::before {
        left: 100%;
    }

    .login-btn:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5), 0 8px 20px rgba(118, 75, 162, 0.4);
    }

.btn-text, .btn-loading {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading {
    position: absolute;
    top: 0;
    left: 0;
    background: inherit;
    border-radius: inherit;
}

    .btn-loading .spinner-border {
        width: 20px;
        height: 20px;
        border-width: 2px;
        color: rgba(255, 255, 255, 0.9);
    }

/* Password Eye Icon Fix */
.floating-login-box .input-group .input-group-text,
.floating-login-box .toggle-password {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: var(--bs-primary) !important;
    padding: 0.45rem 0.65rem !important;
    opacity: 1 !important;
}

.floating-login-box .toggle-password {
    border-left: none !important;
    color: #6c757d !important;
    padding: 0.45rem 0.75rem !important;
}

    .floating-login-box .toggle-password:hover {
        background: rgba(255, 255, 255, 1) !important;
        color: #495057 !important;
        transform: scale(1.05);
    }

.floating-login-box .input-group .form-control {
    background: rgba(255, 255, 255, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: var(--bs-body-color) !important;
    padding-right: 1rem !important;
}

    .floating-login-box .input-group .form-control:focus {
        background: rgba(255, 255, 255, 0.5) !important;
        border-color: rgba(13, 110, 253, 0.6) !important;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    }

[data-bs-theme="dark"] .floating-login-box .input-group .input-group-text,
[data-bs-theme="dark"] .floating-login-box .toggle-password {
    background: rgba(55, 65, 81, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--bs-primary) !important;
}

[data-bs-theme="dark"] .floating-login-box .input-group .form-control {
    background: rgba(55, 65, 81, 0.5) !important;
    color: var(--bs-white) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Policy Checkboxes */


    .policy-checkboxes .form-check {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

        .policy-checkboxes .form-check:last-child {
            margin-bottom: 0;
        }

    .policy-checkboxes .form-check-input {
        width: 18px;
        height: 18px;
        margin-top: 2px;
    }

    .policy-checkboxes .form-check-label,
    .policy-checkboxes .form-check-label a {
        font-size: 14px;
        line-height: 1.5;
    }

    .policy-checkboxes .form-check-label {
        color: var(--bs-body-color);
    }

        .policy-checkboxes .form-check-label a {
            font-weight: 500;
            text-decoration: none;
            color: #3b82f6;
        }

            .policy-checkboxes .form-check-label a:hover {
                text-decoration: underline;
                color: #1d4ed8;
            }

[data-bs-theme="dark"] .policy-checkboxes .form-check-label {
    color: var(--bs-white);
}

    [data-bs-theme="dark"] .policy-checkboxes .form-check-label a {
        color: #60a5fa;
    }

        [data-bs-theme="dark"] .policy-checkboxes .form-check-label a:hover {
            color: #93c5fd;
        }

/* Responsive */
@media (max-width: 768px) {
    .floating-login-box {
        left: 50%;
        width: calc(100% - 40px);
        max-width: 450px;
        padding: 40px 30px;
        transform: translate(-50%, -50%);
    }

    .logo-bottom-right {
        bottom: 20px;
        right: 20px;
        width: 200px !important;
        height: 85px !important;
    }
}
.site-selector-top-right {
    top: 1rem !important;
    right: 1rem !important;
    z-index: 10;
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important; 
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid var(--bs-border-color); 
}

    .site-selector-top-right select {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        border: none !important;
        background: var(--bs-tertiary-bg) !important;
        color: var(--bs-body-color) !important;
    }

    .site-selector-top-right:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
    }
.navbar-help-btn {
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.navbar-help-img {
    max-width: 80px !important;
    max-height: 80px !important;
    width: auto;
    height: auto;
    object-fit: contain;
}

