.upload-area {
            border: 2px dashed #ccc;
            padding: 30px;
            text-align: center;
            margin-bottom: 20px;
            border-radius: 5px;
            background-color: #f9f9f9;
            transition: all 0.3s;
        }
        .upload-area:hover {
            border-color: #4CAF50;
            background-color: #f0f0f0;
        }
        .upload-area.active {
            border-color: #4CAF50;
            background-color: #e8f5e9;
        }
        .preview-container {
            margin-top: 30px;
            display: none;
        }
        .image-item {
            display: flex;
            align-items: center;
            padding: 15px;
            margin-bottom: 15px;
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .image-preview {
            width: 100px;
            height: 100px;
            object-fit: contain;
            margin-right: 20px;
            border: 1px solid #ddd;
        }
        .image-info {
            flex: 1;
        }
        .image-name {
            font-weight: bold;
            margin-bottom: 5px;
            word-break: break-all;
        }
        .image-size {
            color: #666;
            font-size: 14px;
        }
        .size-control {
            display: flex;
            align-items: center;
            margin: 10px 0;
        }
        .size-slider {
            flex: 1;
            margin: 0 15px;
        }
        .size-value {
            width: 60px;
            text-align: center;
        }
        .action-buttons {
            display: flex;
            flex-direction: column;
            margin-left: 20px;
        }
        .btn {
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            margin-bottom: 5px;
            transition: background-color 0.3s;
        }
        .btn-download {
            background-color: #4CAF50;
            color: white;
        }
        .btn-download:hover {
            background-color: #45a049;
        }
        .btn-upload {
            background-color: #2196F3;
            color: white;
            margin-top: 15px;
        }
        .btn-upload:hover {
            background-color: #0b7dda;
        }
        .btn-clear {
            background-color: #f44336;
            color: white;
        }
        .btn-clear:hover {
            background-color: #d32f2f;
        }
        .global-controls {
            background-color: #fff;
            padding: 15px;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            margin-bottom: 20px;
            display: none;
        }
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            color: white;
            font-size: 24px;
            display: none;
        }
        .file-input {
            display: none;
        }
        .error-message {
            color: #f44336;
            margin-top: 10px;
        }
        .success-message {
            color: #4CAF50;
            margin-top: 10px;
        }
        @media (max-width: 768px) {
            .image-item {
                flex-direction: column;
                align-items: flex-start;
            }
            .image-preview {
                margin-right: 0;
                margin-bottom: 15px;
            }
            .action-buttons {
                margin-left: 0;
                margin-top: 15px;
                flex-direction: row;
                gap: 10px;
            }
            .size-control {
                flex-direction: column;
                align-items: flex-start;
            }
            .size-slider {
                width: 100%;
                margin: 10px 0;
            }
        }
