﻿.file-upload {
    border: 1px solid #ccc;
    text-align: center;
    background-color: #fff;
    margin: 20px 0;
}

.drop-area {
    cursor: pointer;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    overflow: hidden; /* Ensure stripes do not overflow */
    background-color: #f9f9f9;
    transition: background 0.3s ease;
}

.cloud-icon {
    font-size: 24px;
    color: #f8784b; /* Set a blue color for the cloud icon */
    margin-bottom: 10px; /* Space between the icon and text */
}

.drop-area:hover {
    background: linear-gradient(135deg, #f0f0f0 25%, transparent 25%, transparent 50%, #f0f0f0 50%, #f0f0f0 75%, transparent 75%, transparent) 0 0;
    background-size: 20px 20px; /* Size of stripes */
    animation: stripes 2s linear infinite; /* Animation applied */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

@keyframes stripes {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 40px; /* Moves stripes diagonally */
    }
}

.preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

    .preview .file-container {
        position: relative;
        display: inline-block;
        margin: 5px;
    }

    .preview img {
        max-width: 80px;
        max-height: 80px;
        border: 1px solid #ccc;
        border-radius: 5px;
        object-fit: cover;
    }

.error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.8); /* Semi-transparent red */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    z-index: 10; /* Ensure it's on top of the preview */
    pointer-events: none; /* Disable interaction with the overlay */
    text-align: center;
}

.remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}
