/* =====================================================
   Step 3 — Drag & Drop Upload Zone
   ===================================================== */

.dropzone-area {
    position: relative;
    border: 2.5px dashed #a0aec0;
    border-radius: 14px;
    background: #f7f9fc;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
}

.dropzone-area:hover {
    border-color: #4a90e2;
    background: #eef4fd;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.08);
}

.dropzone-area.dropzone-active {
    border-color: #2b6cb0;
    background: #dbeafe;
    box-shadow: 0 0 0 6px rgba(43, 108, 176, 0.15);
}

.dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    /* Hidden but functionally present — JS triggers click() */
    pointer-events: none;
}

.dropzone-inner {
    pointer-events: none;
}

.dropzone-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1;
}

.dropzone-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.dropzone-subtitle {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 4px;
}

.dropzone-hint {
    font-size: 0.78rem;
    color: #a0aec0;
    margin: 0;
}

/* =====================================================
   Pre-upload Image Previews
   ===================================================== */

.dropzone-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-start;
}

.dropzone-preview-item {
    position: relative;
    width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.dropzone-preview-img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    display: block;
}

.dropzone-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e53e3e;
    color: #fff;
    border: none;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.2s;
}

.dropzone-remove-btn:hover {
    background: #c53030;
}

.dropzone-preview-name {
    display: block;
    font-size: 0.68rem;
    color: #718096;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* =====================================================
   Image Gallery — Drag to Reorder
   ===================================================== */

.img-gallery-item {
    display: flex !important;
    align-items: center;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
    background: #fff;
    border: 1.5px solid #e2e8f0 !important;
    transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: grab;
}

.img-gallery-item:active {
    cursor: grabbing;
}

.img-gallery-item.dragging {
    opacity: 0.45;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: #ebf4ff !important;
}

.img-gallery-item.drag-over {
    border-color: #4a90e2 !important;
    background: #eef4fd !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25) !important;
}

/* Drag handle icon */
.drag-handle {
    font-size: 1.4rem;
    color: #cbd5e0;
    margin-right: 12px;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}

.img-gallery-item:hover .drag-handle {
    color: #718096;
}

/* Thumbnail wrapper */
.gallery-thumb-wrap {
    position: relative;
    flex-shrink: 0;
}

.gallery-thumb {
    width: 70px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    display: block;
}

/* Cover badge */
.badge-cover {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    padding: 2px 6px;
    white-space: nowrap;
    border-radius: 20px;
    background: #f6ad55 !important;
    color: #744210 !important;
}

.gallery-img-name {
    font-size: 0.8rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Gallery hint */
.drag-hint-icon {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-right: 4px;
}
