﻿/* Zoom Navigation */
.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 1rem;
    z-index: 1300;
    height: 100%;
}

    .zoom-nav:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .zoom-nav.prev {
        left: 0;
    }

    .zoom-nav.next {
        right: 0;
    }

/* Zoom Close Button */
.zoom-close-square {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1301;
    padding: 0;
    width: 3rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .zoom-close-square:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

/* Link Menu */
#link-menu {
    position: fixed;
    z-index: 2000;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px;
    min-width: 250px;
    pointer-events: auto !important; /* NEU: Explizit setzen */
}

#new-object-name {
    font-size: 14px;
}

#link-menu .btn-sm {
    font-size: 13px;
}

.zoom-toggle-labels {
    position: absolute;
    top: 0;
    right: 60px; /* Neben dem Close-Button */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1301;
    padding: 0;
    width: 3rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .zoom-toggle-labels:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

/* Labels verstecken wenn Container die Klasse hat */
#zoom-container.labels-hidden .dot-label {
    display: none !important;
}

/* Aber bei Hover IMMER anzeigen */
#zoom-container .item-number-overlay:hover .dot-label {
    display: block !important;
}

/* Link Menu - erweitert */
#link-menu {
    position: fixed;
    z-index: 2000; /* Erhöht von 1400 */
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px;
    min-width: 280px;
}

    /* Sicherstellen dass alle Inputs klickbar sind */
    #link-menu * {
        position: relative;
        z-index: 2001;
        pointer-events: auto !important; /* NEU: Explizit setzen */
    }

    #link-menu input,
    #link-menu select,
    #link-menu button {
        pointer-events: auto !important;
    }

    #link-menu .form-select,
    #link-menu .form-control {
        font-size: 14px;
    }

    #link-menu .btn-sm {
        font-size: 13px;
    }

    /* Trennlinie Styling */
    #link-menu .text-center {
        position: relative;
        margin: 10px 0;
    }

        #link-menu .text-center::before,
        #link-menu .text-center::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 35%;
            height: 1px;
            background-color: #dee2e6;
        }

        #link-menu .text-center::before {
            left: 0;
        }

        #link-menu .text-center::after {
            right: 0;
        }

/* Input Validierung */
#new-object-name.is-invalid {
    border-color: #dc3545;
}

/* Label Styling */
#link-menu label {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Button in Input-Group */
#create-object-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}