﻿
/* Header */
header {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #6d6d6de3;
    color: #121212;
    height: 40px;
}
/* Left Sidebar */
#left-sidebar {
    position: fixed;
    left: 0;
    width: 49px;
    height: calc(100vh);
    background-color: #6d6d6de3;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    display:none;
}

/* Tab Buttons */
.tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    color: #fff;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

    .tab-button .icon {
        margin-right: 10px;
    }

    .tab-button:hover {
        background-color: #444;
        color: white;
    }

    .tab-button.active {
        background-color: rgba(240, 240, 240, 0.62);
        color: #000000;
    }

    .tab-button.selected {
        background-color: #f1f1f1;
        color: #000000;
    }

    .tab-button img.tab-icon {
        width: 28px;
        height: 32px;
        border-radius: 50%;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

    .tab-button.active img.tab-icon {
        filter: none;
    }
/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 10px;
        text-align: left;
    }

    #viewer-container {
        height: calc(100vh - 80px);
    }

        #viewer-container:before {
            font-size: 16px;
            text-align: left;
        }
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: rgb(255 255 255);
    height: calc(100vh);
    overflow-y: auto;
}

    .tab-content.active {
        display: block;
    }

#content-container {
    position: fixed;
/*    left: 50px;
*/    width: 0;
    height: calc(100vh );
    background-color: rgba(240, 240, 240, 0.1);
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    border-right: 2px solid #333;
    border-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transform: translateX(-50px);
}

    #content-container.open {
        opacity: 1;
        transform: translateX(0);
    }

.toggle-content {
    position: absolute;
    bottom: 2px;
    right: 2px;
    cursor: pointer;
}

.inner-tabs {
    display: flex;
    margin-bottom: 10px;
}

.inner-tab-button {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border: none;
    background-color: #ddd;
    transition: background-color 0.3s;
}

    .inner-tab-button.active {
        background-color: #93c8ff;
    }

.inner-tab-content {
    display: none;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
}

    .inner-tab-content.active {
        display: block;
    }

#views-search-container {
    margin: 10px 0;
    width: calc(100% - 2px);
    max-width: 600px;
    box-sizing: border-box;
}

#views-search-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#levels-search-container {
    margin: 10px 0;
    width: calc(100% - 2px);
    max-width: 600px;
    box-sizing: border-box;
}

#levels-search-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#issues-search-container {
    margin: 10px 0;
    width: calc(100% - 2px);
    max-width: 600px;
    box-sizing: border-box;
}

#issues-search-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#markups-search-container {
    margin: 10px 0;
    width: calc(100% - 2px);
    max-width: 600px;
    box-sizing: border-box;
}

#markups-search-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.thumbnail-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.thumbnail-image {
    width: 80px;
    height: auto;
    margin-right: 10px;
}

.thumbnail-name {
    font-size: 14px;
}


.markup-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.markup-popup-content {
    text-align: center;
}

.markup-popup button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
}

/*Switch*/
.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 104px;
    height: 12px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 17px;
        width: 17px;
        left: 4px;
        bottom: 0;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(80px);
    -ms-transform: translateX(80px);
    transform: translateX(80px);
}

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.switch-label {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}


/*info*/
.info-popup {
    display: block;
    position: fixed;
    left: 300px;
    bottom: 5px;
    transform: translate(-50%, -50%);
    width: 300px;
    background-color: #f1f1f180;
    border: 1px solid #007bff;
    border-radius: 10px;
    z-index: 1001;
    box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.5);
}

.info-popup-header {
    background-color: #ffffff; 
    color: #007bff;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .info-popup-header h3 {
        margin: 0;
        padding-left: 10px;
    }

.info-icon {
    width: 24px;
    height: 24px;
}

.close-button {
    background: none;
    border: none;
    color: #007bff; 
    cursor: pointer;
}

.info-popup-content {
    padding: 15px;
    color: #494949;
    font-size: 14px;
}



.close-button {
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.info-icon {
    width: 24px;
    height: 24px;
}

/* Custom scrollbar */
.info-popup-content::-webkit-scrollbar {
    width: 8px;
}

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

.info-popup-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

    .info-popup-content::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 123, 255, 0.7);
    }
.info-popup-content ul {
    list-style: none;
    padding-left: 0;
}

.info-popup-content li {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 14px;
}

.info-popup-content .icon {
    margin-right: 5px;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.popup-controls {
    display: flex;
    align-items: center;
}

.minimize-button, .close-button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
}

/*icon minimize*/
.minimized-popup-icon {
    display: none;
    position: fixed;
    bottom: 26px;
    left: 72px;
    cursor: pointer;
    z-index: 1002;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
    border-radius: 50%; 
    overflow: hidden;
}

    .minimized-popup-icon img {
        width: 30px;
        height: 30px;
        display: block; 
        transition: transform 0.3s ease;
    }

    .minimized-popup-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }

        .minimized-popup-icon:hover img {
            transform: rotate(10deg);
        }
