/* Input Area Buttons Container */
.input-area-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Select Image Wrapper */
.select-image-wrapper {
    position: relative;
    flex: 1;
}

/* Select Image Button */
.select-image-btn {
    display: flex;
    height: 32px;
    padding: 4px 16px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.select-image-btn:hover,
.select-image-btn:focus,
.select-image-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Image Select Dropdown */
.image-select-dropdown {
    position: absolute;
    bottom: calc(100% + 4px);
    right: 0;
    width: fit-content;
    max-height: 200px;
    overflow-y: scroll;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.image-select-dropdown.active {
    display: grid;
}

/* Dropdown Image Item */
.dropdown-image-item {
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    aspect-ratio: 1/1;
    min-width: 100px;
}

.dropdown-image-item:last-child {
    margin-bottom: 0;
}

.dropdown-image-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

/* No Images Message */
.no-images {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Custom Scrollbar for Dropdown */
.image-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.image-select-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.image-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.image-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
