/* Image Search Camera Button in Header */
.ty-camera-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ty-camera-btn:hover {
    background: var(--web-primary);
    border-color: var(--web-primary);
    color: #fff;
}

.ty-camera-btn i {
    font-size: 1rem;
}

/* Image Upload Preview Area */
.image-search-preview-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fafbfc;
}

.image-search-preview-area:hover,
.image-search-preview-area.drag-over {
    border-color: var(--web-primary);
    background: var(--web-primary-10);
}

.image-upload-placeholder {
    color: #6c757d;
    text-align: center;
}

.image-upload-placeholder i {
    display: block;
    color: #adb5bd;
}

#image-preview {
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
}

#btn-remove-image {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Extracted Keywords Tags */
.extracted-tags .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
    border: 1px solid #e9ecef;
    margin-bottom: 5px;
}

/* Camera Preview */
#camera-preview {
    max-height: 350px;
    object-fit: cover;
}

/* Loading State */
#image-search-loading .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
}

/* Modal Styles */
#imageSearchModal .modal-body {
    padding: 1.25rem;
    position: relative;
}

/* Disabled state for span buttons */
#btn-search-by-image.disabled {
    opacity: 0.65;
    pointer-events: none;
    cursor: not-allowed;
}

/* Make labels look like buttons */
#imageSearchModal label.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .image-search-preview-area {
        padding: 20px;
        min-height: 150px;
    }

    #image-preview {
        max-height: 150px;
    }

    #imageSearchModal .modal-body {
        padding: 1rem;
    }
}
