﻿:root {
    --sidebar-width: 250px;
    --sidebar-mini-width: 70px;
    --header-height: 56px;
    --footer-height: 55px;
}

.extra-small {
    font-size: 0.72rem;
}

.captchaInput {
    font-family: 'Consolas', 'Courier New', monospace;
    letter-spacing: 1px;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.menu-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #6c757d #343a40;
}

    .menu-scroll-area::-webkit-scrollbar {
        width: 12px;
    }

    .menu-scroll-area::-webkit-scrollbar-track {
        background-color: #343a40;
    }

    .menu-scroll-area::-webkit-scrollbar-thumb {
        background-color: #6c757d;
        border-radius: 10px;
        border: 3px solid #343a40;
    }

.sidebar-footer {
    flex-shrink: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link[data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-right {
    transform: rotate(90deg);
}

.sidebar.collapsed {
    width: var(--sidebar-mini-width);
}

    .sidebar.collapsed .sidebar-text,
    .sidebar.collapsed .sidebar-footer-text,
    .sidebar.collapsed .collapse-icon {
        display: none !important;
    }

.logo-mini {
    display: none;
}

.sidebar.collapsed .logo-full {
    display: none;
}

.sidebar.collapsed .logo-mini {
    display: inline-block;
}

.app-header,
.main-content,
.app-footer {
    transition: margin-left 0.3s, width 0.3s, left 0.3s;
}

.app-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    z-index: 100;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.logo-placeholder {
    height: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

    .logo-placeholder img {
        width: auto;
        height: 100%;
    }

.logo-attribution-text {
    font-size: 10px;
    color: #000000;
    font-weight: 500;
    margin-bottom: 0px;
    text-shadow: 1px 1px 0 #ffffff, -1px -1px 0 #ffffff, 0 0 2px rgba(255, 255, 255, 0.7);
    font-family: Verdana, Geneva, Tahoma, sans-serif !important;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    min-height: 100vh;
}

.app-footer {
    position: fixed;
    bottom: 0;
    z-index: 60;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    flex-shrink: 0;
}

.sidebar.collapsed ~ .app-header {
    left: var(--sidebar-mini-width);
    width: calc(100% - var(--sidebar-mini-width));
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-mini-width);
}

    .sidebar.collapsed ~ .main-content .app-footer {
        left: var(--sidebar-mini-width);
        width: calc(100% - var(--sidebar-mini-width));
    }

.dropdown-menu .bg-primary {
    background-color: #007bff !important;
}

.user-menu-wrapper {
    display: flex;
    align-items: center;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
    background-size: cover;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header-container {
    padding-top: 20px;
}

.login-nav-tabs .nav-link {
    border: none;
    color: var(--bs-secondary);
    padding-bottom: 0.75rem;
    background-color: #acb4ff;
}

    .login-nav-tabs .nav-link.active {
        border-bottom: 3px solid var(--bs-primary);
        color: var(--bs-primary);
        background-color: transparent;
        border-color: transparent transparent var(--bs-primary) transparent;
    }

.input-group {
    flex-wrap: wrap;
}

.validation-message {
    display: block !important;
    color: red;
    width: 100%;
    margin: 2px 0;
    padding: 2px 0;
}

#pageLoader.page-loader {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 9999;
    display: none;
    opacity: 0.7;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

    #pageLoader.page-loader.active {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto;
    }

#pageLoader .loading-progress {
    transform: rotate(-90deg);
    transition: all 0.3s ease-out;
}

#pageLoader .bg-circle {
    fill: none;
    stroke: #eee;
    stroke-width: 5;
}

#pageLoader .progress-circle {
    fill: none;
    stroke: #0d6efd;
    stroke-width: 5;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.5s ease-out;
}

#pageLoader .btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.progress-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
    padding: 0;
}

.progress-timeline-line {
    position: absolute;
    top: 32px;
    left: 35px;
    right: 35px;
    height: 6px;
    background-color: #dee2e6;
    z-index: 1;
    border-radius: 3px;
}

.progress-timeline-fill {
    height: 100%;
    width: 0%;
    background-color: var(--bs-primary);
    transition: width 0.6s ease-in-out;
    border-radius: 3px;
}

.progress-step-item {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .progress-step-item:last-child {
        flex: 0;
    }

.progress-step-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: white;
    color: #6c757d;
    border: 4px solid #dee2e6;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 1.8rem;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.progress-step-item.active .progress-step-icon {
    background-color: white;
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
    transform: scale(1.05);
}

.progress-step-item.done .progress-step-icon {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    font-size: 1.8rem;
}

.course-card {
    border: 2px solid #eee;
    transition: all 0.2s;
    cursor: pointer;
}

    .course-card.selected {
        border-color: var(--bs-primary);
        background-color: var(--bs-light);
        box-shadow: 0 0 10px rgba(13, 110, 253, 0.2);
    }

.quiz-panel {
    display: flex;
    min-height: 650px;
    border-radius: 0.75rem;
    border: none;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.quiz-questions {
    flex-grow: 1;
    padding: 25px;
    background-color: white;
}

.quiz-palette {
    width: 280px;
    flex-shrink: 0;
    background-color: #f0f3f6;
    padding: 20px;
    border-left: 1px solid #dee2e6;
}

.question-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 8px;
    margin: 5px;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #f0f3f6;
    color: #495057;
    border: 1px solid #dee2e6;
    text-align: center;
    display: inline-block;
    font-weight: bold;
}

    .question-number.answered {
        background-color: var(--bs-success);
        color: white;
        border-color: var(--bs-success);
    }

    .question-number.current {
        background-color: var(--bs-primary);
        color: white;
        border-color: var(--bs-primary);
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
    }

    .question-number.marked-review {
        background-color: #6f42c1;
        color: white;
        border-color: #6f42c1;
    }

.capture-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    width: 100%;
    max-width: 24rem;
    border-top: 4px solid #4f46e5;
}

.capture-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .video-container > video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0.3rem;
    }

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 2px solid #10b981;
    padding: 0.25rem;
}

.camera-placeholder {
    color: #9ca3af;
    text-align: center;
    padding: 2.5rem;
}

.camera-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
}

.button-group {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-box {
    background-color: #dbeafe;
    color: #1e40af;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-upload-area, .document-upload-area {
    border-style: dashed !important;
    cursor: pointer;
}

.profile-pic-preview {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .profile-pic-preview img {
        object-fit: cover;
    }

.profile-pic-placeholder-icon {
    width: 30px;
    height: 30px;
}

.document-preview-container {
    width: 50px;
    height: 50px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: .25rem;
    cursor: pointer;
}

.document-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.document-icon {
    width: 50px;
    height: 50px;
}

.border-info-4 {
    border-left: 4px solid var(--bs-info) !important;
}

.border-info-5 {
    border-left: 5px solid var(--bs-info) !important;
}

.profile-wrapper {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    padding: 30px;
}

.profile-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.profile-pic-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bs-primary);
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.2);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

    .profile-pic-container:hover::after {
        content: "\f475";
        font-family: 'bootstrap-icons';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        border-radius: 50%;
        opacity: 1;
        transition: opacity 0.3s;
    }

    .profile-pic-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
}

.nav-pills {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.data-label {
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.2rem;
    display: block;
    font-size: 0.9rem;
}

.data-value {
    color: #212529;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #e9ecef;
}

.address-card {
    border-left: 4px solid #adb5bd;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

    .address-card.primary-address {
        border-left-color: var(--bs-primary);
    }

.required-label::after {
    content: ' *';
    color: red;
    font-weight: bold;
}

.kpi-card {
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

    .kpi-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
    }

.chart-container {
    height: 350px;
    position: relative;
}

@media (max-width: 991.98px) {
    .app-header, .main-content, .app-footer {
        left: 0 !important;
        width: 100% !important;
        margin-left: 0 !important;
        transition: none;
    }

    .sidebar {
        width: var(--sidebar-width) !important;
        left: calc(-1 * var(--sidebar-width)) !important;
    }

        .sidebar.collapsed {
            left: 0 !important;
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
        }

            .sidebar.collapsed .sidebar-text,
            .sidebar.collapsed .sidebar-footer-text,
            .sidebar.collapsed .collapse-icon {
                display: inline-block !important;
            }

            .sidebar.collapsed .logo-full {
                display: block;
            }

            .sidebar.collapsed .logo-mini {
                display: none !important;
            }
}

@media (max-width: 992px) {
    .quiz-panel {
        flex-direction: column;
        min-height: auto;
    }

    .quiz-palette {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #dee2e6;
    }
}

@media (max-width: 767.98px) {
    .logo-placeholder {
        height: 25px;
    }
}

@media (max-width: 460px) {
    .logo-placeholder {
        height: 20px;
    }
}
