﻿body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    justify-content: center;
    align-items: center;
}

.container-upload {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); 
    width: 100%;
}
 

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
    position: relative;
}

    .upload-area:hover {
        border-color: #764ba2;
        background: #f0f2ff;
        transform: translateY(-2px);
    }

    .upload-area.dragover {
        border-color: #764ba2;
        background: #e8ebff;
        transform: scale(1.02);
    }

.upload-icon {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-text {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

.upload-hint {
    color: #999;
    font-size: 14px;
}

input[type="file"] {
    display: none;
}

.preview-container {
    display: none;
    margin-top: 30px;
    position: relative;
}

    .preview-container.active {
        display: block;
    }

.image-preview {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    object-fit: contain;
}

.delete-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .delete-btn:hover {
        background: #ff3838;
        transform: scale(1.1);
    }

.image-info {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
}

    .image-info p {
        margin: 5px 0;
    }

.success-message {
    background: #26de81;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    display: none;
    animation: slideIn 0.3s ease;
}

    .success-message.active {
        display: block;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none;
}
