/* Volatility Modal Styles */
.volatility-modal {
    position: absolute;
    width: 100px;
    padding: 8px;
    background-color: #f0f0f0; /* Gräulicher Hintergrund */
    border: 1px solid #ccc; /* Leichter Rahmen */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Weicher Schatten */
    border-radius: 5px; /* Abgerundete Ecken */
    z-index: 1001;
    display: none;
    cursor: default;
}

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

.volatility-modal::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px; /* Pfeil nach oben */
    border-color: transparent transparent #f0f0f0 transparent;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Swiper Styles */
.volatility-swiper-container {
    width: 100%;
    height: 120px;
    margin: 2px auto;
    overflow: hidden;
}

.volatility-swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    height: 50px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    background-color: #f0f0f0; /* Hintergrundfarbe der Slides */
    color: #333; /* Textfarbe */
}

.volatility-swiper-slide-active {
    background-color: white; /* Aktives Slide in weiß */
    color: #333; /* Textfarbe */
    border-radius: 5px;
    border: 1px solid #ccc; /* Leichter Rahmen */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Schatten */
}

/* Bestätigungsbutton */
#volatility-confirm-button {
    width: 100%; /* Passt sich der Modalbreite an */
    padding: 8px;
    margin-top: 8px;
    border: 1px solid #ccc; /* Leichter Rahmen */
    border-radius: 5px; /* Abgerundete Ecken */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Schatten */
    background-color: white;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
}

#volatility-confirm-button:hover {
    background-color: #e6e6e6;
}

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

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