/* /css/modal.css */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.modal-content {
    position: absolute;
    background: transparent;
    padding: 2em;
    width: 90%;
    max-width: 600px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
}

.close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 36px;
    font-size: 20px;
    color: white;
    background-color: transparent;
    border: 2px solid red;
    border-radius: 25%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close:hover {
    background-color: red;
    /* Bei Hover wird Fläche rot */
    color: white;
    /* X bleibt weiß */
    box-shadow: 0 0 8px red;
    /* Bonus: Glow-Effekt */
}

#customFileLabel {
    display: inline-block;
    padding: 0.5em 1em;
    font-family: inherit;
    font-size: 1em;
    color: initial;
    background-color: ButtonFace;
    border: 1px solid ButtonText;
    border-radius: 4px;
    cursor: pointer;
}

#customFileLabel:hover {
    filter: brightness(95%);
}

#customFileButton {
    font: inherit;
    padding: 0.4em 0.8em;
    cursor: pointer;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007BFF;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    margin-top: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.infobox.success {
    background-color: #e6ffed;
    border-left: 5px solid #4caf50;
    padding: 15px 20px;
    margin-top: 20px;
    font-family: 'Segoe UI', sans-serif;
    color: #2e7d32;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Snackbar-Style */

.snackbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #323232;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    animation: fadeUp 4s ease forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, 0);
        pointer-events: auto;
    }

    90% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -10px);
        pointer-events: none;
    }
}