/* Overlay Styles */
.duration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

.duration-overlay.visible {
    display: block;
}

/* Duration Modal Styles */
.duration-modal {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 1001;
    display: none;
    cursor: default;
}

.duration-modal.visible {
    display: block;
}

.duration-swiper-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px; /* Höhe passend zu den Swipern */
}

.swipers-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.digit-swiper {
    width: 50px;
    height: 150px;
    margin: 0px; /* Abstände zwischen den Swipern */
}

.digit-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    height: 50px; /* Höhe der einzelnen Slides */
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.digit-swiper .swiper-slide-active {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Positionierung des DTE-Labels */
.dte-label {
    position: absolute;
    left: 0px; /* Anpassen für das Andocken links */
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-size: 2.5em;
    font-weight: bold;
}

/* Positionierung des "Hinzufügen"-Buttons */
#duration-add-button-container {
    position: absolute;
    right: -50px; /* Anpassen für das Andocken rechts */
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

#duration-add-button {
    width: 150px;
    height: 50px;
    padding: 5px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 2.4em;
    font-weight: 500;
    line-height: 1;
}

#duration-add-button:hover {
    background-color: #e6e6e6;
}

.dark-mode .duration-modal {
    background-color: #3a3a3a !important;
    border-color: #94a3b8 !important;
}

.dark-mode .digit-swiper .swiper-slide {
    background-color: #3a3a3a !important;
    color: #cbd5e1 !important;
}

.dark-mode .digit-swiper .swiper-slide-active {
    background-color: #475569 !important;
    border-color: #cbd5e1 !important;
    color: #f8fafc !important;
}

.dark-mode .dte-label {
    color: #cbd5e1 !important;
}

.dark-mode #duration-add-button {
    background-color: #475569 !important;
    border-color: #cbd5e1 !important;
    color: #f8fafc !important;
}

.dark-mode #duration-add-button:hover {
    background-color: #64748b !important;
}