/* Unified Upload Component Styles */
.unified-uploader {
    border: 2px dashed #007bff;
    border-radius: 10px;
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
}

.unified-uploader:hover {
    background: #e9ecef;
    border-color: #0056b3;
}

.unified-uploader.dz-drag-hover {
    border-style: solid;
    background: #e2e6ea;
}

.uploader-message {
    font-size: 1.1em;
    color: #495057;
}

.uploader-message small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
}

.uploader-message a {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

/* URL Input Modal */
.url-input-container {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.url-input-container.visible {
    display: flex;
    gap: 10px;
}

.url-input-container input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.url-input-container button {
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.url-input-container button:hover {
    background: #0056b3;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    gap: 10px;
    z-index: 10;
}

.gallery-item:hover .overlay {
    opacity: 1;
}


/* ... existing */

.gallery-item button {
    background: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item button svg {
    display: block;
    pointer-events: none;
}

.gallery-item button:active {
    transform: scale(0.9);
}

.gallery-item button:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.gallery-item button.remove {
    background: #ff4d4f;
    color: white;
}

.gallery-item button.remove:hover {
    background: #ff7875;
}

.gallery-item button.move-left,
.gallery-item button.move-right {
    background: white;
    color: #1890ff;
}

.gallery-item button.move-left:hover,
.gallery-item button.move-right:hover {
    background: #e6f7ff;
    color: #40a9ff;
}


.gallery-item .badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    color: #333;
    pointer-events: none;
}