﻿#viewer-container {
    width: 100%;
    height: 100%;
    position: absolute;
}

.toolbar-button.active {
    background-color: #00a862;
}

#toolbar-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    background-color: rgb(70 70 70);
    border-radius: 4px;
    padding: 2px;
}

#toolbar-panel1, #toolbar-panel2, #toolbar-panel3 {
    display: inline-flex;
    justify-content: center;
    gap: 5px;
}

#toolbar-panel2 {
    border-left: 2px solid #828282;
}

#toolbar-panel3 {
    border-left: 2px solid #828282;
}


.toolbar-button {
    color: #000;
    padding: 2px 5px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background-color: #464646;
    transition: background-color 0.3s ease;
}

    .toolbar-button:hover {
        background-color: #93c8ff;
        color: #fff;
    }

    .toolbar-button img {
        filter: brightness(0) invert(1);
        width: 32px;
    }

    .toolbar-button:hover img {
        filter: invert(0);
    }

    .toolbar-button.highlighted {
        background-color: #93c8ff;
        color: #fff;
    }

        .toolbar-button.highlighted img {
            filter: invert(0);
        }

@media (max-width: 600px) {
    #toolbar-container {
        flex-direction: column;
    }

    .toolbar-button {
        padding: 2px 5px;
    }

        .toolbar-button img {
            width: 16px;
        }
}

.camera-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    background-color: rgb(70 70 70);
    border-radius: 4px;
    flex-direction: column;
    bottom: 45px;
}

    .camera-popup .toolbar-button {
        padding: 5px 10px;
    }

        .camera-popup .toolbar-button img {
            width: 20px;
        }

.toolbar-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#notification_popup {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 20px;
    background-color: white;
    color: #333333;
    padding: 20px;
    border-radius: 8px; 
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    z-index: 10001; 
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    #notification_popup.show {
        display: block;
        opacity: 1; 
        transform: translateY(0); 
    }


.popup-content {
    text-align: center; 
    font-size: 16px; 
    color: #333333;
}


@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/*.info-popup-content {
    background-color: #023c7982;
}*/

.error-popup-content {
    background-color: rgba(255, 0, 0, 0.8);
}

@keyframes slideUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.progress-bar {
    width: 250px; 
    height: 20px;
    background-color: #f3f3f3; 
    border-radius: 10px; 
    position: fixed;
    bottom: 15px;
    right: 20px; 
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    border: 1px solid #ccc; 
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #62aeff, #3793f2);
    width: 0%;
    border-radius: 10px; 
    transition: width 0.4s ease-in-out; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    font-weight: bold; 
    font-size: 14px; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); 
}

.selected {
    background-color: #007bff;
    color: white;
}

#minimap-container {
    display: none;
    position: fixed;
    top: 10px;
    right: 8px;
    width: 230px;
    height: 230px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: white;
    border-radius: 5px;
    z-index: 1003;
}

#compass-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    animation: pulse 2s infinite;
    /*filter: drop-shadow(0 0 8px blue);*/
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

#additionalInfoPopup-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #888;
    padding: 2px;
}

#additionalInfoPopup {
    display: flex;
    flex-direction: column;
    user-select: text;
    position: absolute;
    top: 180px;
    right: 180px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    border: 1px solid #007bff;
    border-radius: 5px;
    width: 350px;
    max-width: 380px;
    max-height: 500px;
    resize: vertical;
    z-index: 1000;
    box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.5);
}

#additionalInfoPopup-header h3 {
    background-color: #007bff;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #888;
    font-size: 16px;
}

#close-additionalInfoPopup img {
    cursor: pointer;
    width: 22px;
    height: 22px;
}

#additionalInfoPopup-content {
    overflow: auto;
    padding: 10px;
    max-height: 340px;
}

    #additionalInfoPopup-content::-webkit-scrollbar {
        width: 8px;
    }

    #additionalInfoPopup-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    #additionalInfoPopup-content::-webkit-scrollbar-thumb {
        background: rgba(0, 123, 255, 0.4);
        border-radius: 10px;
    }

        #additionalInfoPopup-content::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 123, 255, 0.7);
        }

.label {
    display: block;
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
    pointer-events: auto;
    z-index: 1500;
}

    .label::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 0;
        border: 6px solid transparent;
        border-top-color: #fff;
        border-bottom: 0;
        margin-left: -6px;
        margin-bottom: -6px;
    }
.hidden {
    display: none !important; 
}

.ifcjs-dimension-label {
    font-family: Arial, sans-serif; 
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 4px;
    border-radius: 3px; 
    font-weight: bold; 
    border: 1px solid #ddd; 
}
/*#coordinates {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid black;
    padding: 5px;
    pointer-events: none;
    z-index: 1000;
}*/
#comparePopup {
    position: fixed; 
    left: 70%;
    top: 30%;
    transform: translate(-50%, -50%); 
    width: 80%;
    max-width: 600px;
    height: auto; 
    max-height: 80%; 
    background-color: #fff; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; 
    display: none; 
}

#comparePopup h3 {
    color: #2876c9;
    text-align: center;
    margin-bottom: 20px;
}

#comparePopup #versionsList div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

#comparePopup #versionsList input[type="checkbox"] {
    margin-right: 10px;
}

#comparePopup #versionsList label {
    flex-grow: 1;
}
#comparePopup button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    font-weight: bold;
    color: #fff;
    background-color: #2876c9;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    #comparePopup button:hover {
        background-color: #0056b3;
    }

    #comparePopup button:last-child {
        background-color: #f44336;
    }

        #comparePopup button:last-child:hover {
            background-color: #d32f2f;
        }

 /*Compare result*/
#comparisonResultPopup {
    position: fixed;
    left: 85%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    max-width: 600px;
    height: auto;
    max-height: 80%;
    background-color: #f9f9f985;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
    overflow: hidden;
}

    #comparisonResultPopup h2 {
        color: #2876c9;
        text-align: center;
        margin-bottom: 20px;
    }

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
    color: #2876c9;
}

#comparisonResultPopup .results-container {
    max-height: calc(100vh - 350px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

#comparisonResultPopup .comparison-result-item {
    background-color: #f9f9f9bf;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

#comparisonResultPopup button {
    margin-top: 10px;
    width: auto;
    padding: 8px 16px;
    background-color: #2876c9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    margin-right: 5px;
}

    #comparisonResultPopup button:hover {
        background-color: #0056b3;
    }


.comparison-result-popup-content {
    background-color: #ffffff87;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}
.summary-counts {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    cursor: pointer;
}

.count-item {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .count-item:hover {
        background-color: #eaeaea;
        color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .count-item.selected {
        background-color: #2876c9;
        color: white;
        font-size: 1.1em;
    }

    .count-item.added {
        color: #4CAF50;
    }

    .count-item.removed {
        color: #F44336;
    }

    .count-item.modified {
        color: #FFC107;
    }
.results-container.added-results {
    border-left: 5px solid #4CAF50; 
}

.results-container.removed-results {
    border-left: 5px solid #F44336; 
}

.results-container.modified-results {
    border-left: 5px solid #FFC107; 
}

#homeviewcube {
    position: absolute;
    top: 10px;
    right: 110px;
    cursor: pointer;
    opacity: 0.6; 
    transition: opacity 0.3s ease;
}

    #homeviewcube:hover {
        opacity: 1;
    }

    #homeviewcube img {
        width: 35px; 
        height: 35px;
    }

/*Load modal*/
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

.bottom-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #212830;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); 
    display: flex;
    justify-content: left;
    padding: 2px 0;
    z-index: 1000;
    border-top: 1px solid #212830;
}

    .bottom-toolbar .layout-tab {
        padding: 8px 16px;
        margin: 0 2px; 
        background: #f9f9f9; 
        border: 1px solid #d3d3d3; 
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        font-size: 13px; 
        font-weight: 500; 
    }

        .bottom-toolbar .layout-tab:hover,
        .bottom-toolbar .layout-tab.active {
            background: #d0d0d0; 
            color: #000; 
            border-bottom: 3px solid #2979ff; 
        }

#loadmodePopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
    visibility: visible;
}

.loadmode-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 450px; 
    width: 100%;
    text-align: center;
    z-index: 10000; 
}

.loadmode-option {
    margin-top: 20px;
    text-align: left;
}

.loadmode-tooltip {
    position: relative;
    display: block; 
    margin-bottom: 10px;
}

    .loadmode-tooltip input {
        margin-right: 10px;
    }

    .loadmode-tooltip .loadmode-tooltiptext {
        visibility: hidden;
        width: 300px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 5px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -150px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .loadmode-tooltip:hover .loadmode-tooltiptext {
        visibility: visible;
        opacity: 1;
    }

/* Nút bấm */
button#startLoadModeButton {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    button#startLoadModeButton:hover {
        background-color: #0056b3;
    }

#componentFileList {
    max-height: 300px;
    overflow-y: auto;
    text-align: left; 
}

.file-item {
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    display: flex;
    align-items: center;
}

    .file-item input {
        margin-right: 10px;
    }
