.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.upload-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upload-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upload-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.upload-thumb .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.upload-thumb:hover .remove-btn {
    opacity: 1;
}

.upload-thumb .remove-btn:hover {
    background: rgba(220, 53, 69, 0.9);
}

.upload-area.dragover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}


.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.image-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
}

.image-box img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.image-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.image-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    background: var(--card-bg);
}

.upload-box:hover {
    border-color: var(--primary);
    background: #f8fbff;
}

.upload-box i {
    font-size: 2rem;
    color: var(--text-400);
    margin-bottom: .5rem;
}

