﻿.image-analysis-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    font-size: 0.75rem; /* Shrunk text */
}

.widget-card {
    width: 320px; /* Slimmer card */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: var(--surface);
}

.widget-header {
    background-color: var(--primary);
    color: white;
    padding: 8px 12px; /* Tighter header */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-minimized {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

    .widget-minimized:hover {
        transform: scale(1.05);
        background-color: var(--primary-hover);
    }

.widget-hidden {
    display: none !important;
}

.widget-tabs .nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    color: var(--secondary);
    border-bottom: 2px solid transparent;
}

    .widget-tabs .nav-link.active {
        color: var(--primary);
        font-weight: 600;
        border-color: var(--primary);
        background: transparent;
    }

.scrollable-tab {
    max-height: 250px;
    overflow-y: auto;
}

.list-group-item {
    font-size: 0.75rem;
    padding: 8px 12px; /* Tighter list items */
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease;
}

    .list-group-item:hover {
        background-color: #f4f4f5;
    }

.selected-item {
    background-color: #e4e4e7 !important;
    border-left-color: var(--primary);
}

.widget-details div {
    margin-bottom: 2px;
}
