/* Image Viewer Modal */
.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    z-index: 10000;
    flex-direction: column;
}

.image-viewer-modal.active {
    display: flex;
}

/* Toolbar */
.image-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 48px;
}

.image-viewer-title {
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
}

.image-viewer-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
}

.viewer-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.1s ease;
}

.viewer-btn svg {
    width: 20px;
    height: 20px;
}

.viewer-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.viewer-btn:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.viewer-btn.close:hover {
    background-color: rgba(232, 17, 35, 0.9);
}

/* Image Container */
.image-viewer-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.image-viewer-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    user-select: none;
    transition: transform 0.2s ease;
}

/* Navigation Arrows */
.image-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
    z-index: 10;
}

.image-nav-arrow:hover {
    background-color: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.image-nav-arrow:active {
    background-color: rgba(40, 40, 40, 0.9);
}

.image-nav-arrow.prev {
    left: 32px;
}

.image-nav-arrow.next {
    right: 32px;
}

.image-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-nav-arrow:disabled:hover {
    background-color: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Bottom Info Bar */
.image-viewer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    height: 56px;
}

.image-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    font-size: 12px;
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
}

.info-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.1s ease;
}

.info-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.info-text {
    color: #ccc;
    font-size: 12px;
}

.info-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.image-info-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.1s ease;
}

.zoom-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.zoom-btn:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.zoom-slider {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.zoom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.zoom-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    transition: transform 0.1s ease;
}

.zoom-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.zoom-level {
    color: #ccc;
    font-size: 12px;
    min-width: 45px;
    text-align: center;
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
}