/* Drag and Drop Styles for Media Folders */

/* Draggable items */
.attachments-browser .attachment.is-dragging {
    opacity: 0.7;
    transform: scale(0.95);
    z-index: 100;
    position: relative;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Droppable folders */
.apex-folder-list li.droppable {
    transition: all 0.2s ease;
}

.apex-folder-list li.droppable.drag-over {
    background-color: rgba(34, 113, 177, 0.1);
    box-shadow: inset 0 0 0 2px #2271b1;
    border-radius: 2px;
}

.apex-folder-list li.droppable.drag-over a {
    color: #2271b1;
    font-weight: 600;
}

.apex-folder-list li.unassigned-folder.droppable.drag-over {
    background-color: rgba(155, 155, 155, 0.15);
    box-shadow: inset 0 0 0 2px #72777c;
}

/* Drag helper/indicator */
.apex-folder-drag-helper {
    position: fixed;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    pointer-events: none;
    z-index: 999999;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Folder drop indicator */
.folder-drop-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 113, 177, 0.05);
    border: 2px dashed #2271b1;
    border-radius: 3px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.folder-drop-indicator:before {
    content: "Drop files here";
    color: #2271b1;
    font-size: 16px;
    font-weight: bold;
}

/* Bulk selection styles during drag */
.select-mode-toggle-button.apex-folder-bulk-select {
    margin-right: 10px;
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.select-mode-toggle-button.apex-folder-bulk-select:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Success animation for folder update */
@keyframes folderSuccess {
    0% { background-color: #f0f6fc; }
    25% { background-color: #d1fae5; }
    75% { background-color: #d1fae5; }
    100% { background-color: #f0f6fc; }
}

.apex-folder-list li.folder-updated {
    animation: folderSuccess 2s ease;
}