.fe-bucket-container {
    /* display: grid; */
    /* grid-template-columns: repeat(1, 1fr); */
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 0px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .fe-bucket-container {
        grid-template-columns: 1fr;
        /* grid-template-rows: repeat(2, 1fr); */
    }
}




.fe-bucket {
    padding: 5px;
    background-color: var(--fw-white-050);
    /* border-radius: 4px; */
    flex: 1;
    min-width: fit-content;
    font-size: 0.66rem;
}

.preview-bucket {
    border: 1px solid var(--fw-white-200);
    background: var(--fw-white-100);
    border-radius: 4px;
}

.regular-bucket {
    border: 1px solid var(--primary-300);
    background: var(--primary-100);
    border-radius: 4px;
}

.fe-bucket.preview-bucket .fe-bucket-label {
    color: var(--fw-black-400);
}

.fe-bucket.regular-bucket .fe-bucket-label {
    color: var(--primary-500);
}






.fe-bucket.drag-over {
    background: rgba(132, 194, 255, 0.1);
}

.fe-bucket-label {
    /* font-size: 0.8rem; */
    /* font-weight: bold; */
    margin: 0 0 10px 0;
    text-align: center;
    padding: 0px 10px;
}

.fe-bucket-items {
    min-height: calc(100% - 45px);
    width: calc(100% - 0px);
    /* display: grid; */
    /* grid-template-columns: repeat(2, 1fr); */
    padding: 5px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 5px;
    padding: 0px;
    border-radius: 8px;
}















.fe-media-arrow {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 2px;
    cursor: pointer;
    z-index: 10;
    background-color: rgba(255, 255, 255, 1.0);
    padding: 1px 9px;
    border-radius: 2px;
    font-size: 0.6rem;
    aspect-ratio: 1/1;
    color: var(--fw-statc-500);
}

.fe-media-arrow.left {
    left: 3px;
}

.fe-media-arrow.right {
    right: 3px;
}



















.fe-media-item.dragging {
    opacity: 0.5;
}

.fe-media-item {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.fe-media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fe-media-remove-v2 {
    position: absolute;
    top: 0px;
    right: 0px;
    /* background: #00000064; */
    color: #f33939;
    text-shadow: 0 0 3px #000000;
    padding: 1px 6px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    display: none;
    line-height: 1;
    font-size: 1.1rem;
    padding-bottom: 1px;
}

.fe-media-item:not(:has(.fe-media-progress-container)) .fe-media-remove-v2 {
    display: flex;
}

/* For video/audio elements */
.fe-media-item video,
.fe-media-item audio {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fe-media-progress-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.fe-media-progress-bar {
    height: 100%;
    width: 0;
    background-color: #4CAF50;
    transition: width 0.3s ease-in-out;
}























/* Media Upload Container */
.fe-media-upload-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 0px;
    overflow-x: auto;
    min-height: 76px;
    margin-bottom: 10px;
}

.fe-media-dropzone:hover {
    border-color: #aaa;
}

.fe-media-dropzone-hover {
    border-color: #7fc795;
}



.fe-media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.fe-media-file-icon {
    display: inline-block;
    font-size: 12px;
    text-align: center;
    line-height: 80px;
    background-color: #f0f0f0;
    border-radius: 4px;
    padding: 5px;
    color: #555;
}

/* Remove Button for Media Items */
.fe-media-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ed9194;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

/* Media Dropzone */
.fe-media-dropzone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
}

.fe-media-dropzone.fe-drag-over {
    background-color: #f6f6f6;
    border-color: #0099ff;
}

.fe-media-input {
    display: none;
    /* Hide the file input */
}

.fe-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.fe-media-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 125px;
    min-width: 100px;
    /* margin-right: 10px; */
    /* height: fit-content; */
}

.fe-media-thumb {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.fe-media-item .fe-tag-remove {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
}