﻿.contenitore_drop{ background: #f8f6f3;
    border: 1px solid #e4dfd9;padding:10px;
    border-radius: 10px;
        }

  #preview {
        margin-top: 10px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .preview-item {
        position: relative;
        width: 120px;
        height: 120px;
        border-radius: 12px;
        overflow: hidden;
        background: #f5f5f5;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.15);
        transition: transform 0.2s ease;
    }

        .preview-item:hover {
            transform: scale(1.05);
        }

    .preview-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .preview-label {
        font-size: 12px;
        color: #333;
        text-align: center;
        padding: 4px;
    }

    .preview-progress {
        width: 100%;
        height: 6px;
        border: none;
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .video-icon {
        position: absolute;
        width: 40px;
        height: 40px;
        opacity: 0.8;
    }

    /* Icona rimozione */
    .remove-btn {
        position: absolute;
        top: 4px;
        right: 4px;
        background: rgba(0,0,0,0.6);
        color: white;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-size: 16px;
        z-index: 10;
    }
  .loader {
  border: 8px solid #f3f3f3; /* sfondo chiaro */
  border-top: 8px solid #6B8E23; /* verde */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 10px;
  font-size: 16px;
  color: #8B4513; /* marrone */
  font-weight: bold;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

