/* Same CSS as before (move this to a separate CSS file if you like) */

.drive-popup-container li{
    border-bottom: 1px solid #eee;
    padding: 10px 0 10px 0;
}

.drive-popup-container li .image-container p{
    font-weight: 500;
    margin-bottom: 10px;
}


.drive-popup-container li.flex {
    display: -ms-flexbox;
    display: flex;
}

.drive-popup-container li .image-container {
    padding: 15px;
}

.drive-popup-container li .image-container img {
    width: 300px;
    object-fit: cover;
    margin-right: .75rem;
    border-radius: 4px;
}

.drive-popup-container li .button-container {

}

.drive-popup-container #drive-files {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem;
}

.drive-popup-container #drive-files::-webkit-scrollbar {
    width: 8px;
}
.drive-popup-container #drive-files::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 4px;
}

.drive-popup-container .drop-zone {
    position: relative;
    border: 2px dashed #6d1b7b;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f9f4f7;
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
}
.drive-popup-container .drop-zone.dragover {
    background-color: #e9d7f3;
    border-color: #50104f;
}
.drive-popup-container .drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.drive-popup-container .drop-zone .icon {
    font-size: 3rem;
    color: #6d1b7b;
    margin-bottom: 0.5rem;
}
.drive-popup-container .drop-zone p {
    margin-bottom: 0;
    font-size: 1rem;
    color: #555;
}

.drive-popup-container #preview {
    margin-top: 1rem;
}
.drive-popup-container .preview-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
}
.drive-popup-container .preview-item img {
    max-width: 48px;
    max-height: 48px;
    margin-right: 0.75rem;
    border-radius: 4px;
    object-fit: cover;
}
.drive-popup-container .preview-item .file-name {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.preview-item .remove-btn {
    background: none;
    border: none;
    color: #c00;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

.drive-popup-container .insert-dependent {
    display: none;
}

.insert-mode .insert-dependent {
    display: block;
}

.insert-mode img:hover {
   cursor: pointer;
}

.insert-mode .drive-popup-container li .image-container:hover {
    cursor: pointer;
    background-color: #d4edda;
    border:1px solid #155724;
    border-radius: 5px;

}

@media (max-width: 576px) {
    .drive-popup-container .drop-zone {
        padding: 1.5rem;
    }
    .drive-popup-container .drop-zone .icon {
        font-size: 2.5rem;
    }
}