﻿.loader {
    width: 16px;
    height: 16px;
    border: 3px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
#videoPreview {
    display: block !important;
}
input::placeholder {
    color: #bfbfbf !important;
    opacity: 1;
}
#toastContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast base */
.toast-box {
    min-width: 260px;
    max-width: 340px;
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.4s forwards;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Fade-out */
.toast-hide {
    animation: fadeOut 0.5s forwards;
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Colori */
.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

.toast-warning {
    background-color: #ffc107;
    color: #333;
}

.toast-info {
    background-color: #007bff;
}

/* Icone */
.toast-icon {
    font-size: 18px;
    font-weight: bold;
}
