/**
 * Vision Search Plugin Styles
 */

/* Tab Bar - Vision Search specific styles */
.BasicsBox > .TabBar {
    display: flex;
    gap: 4px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
    background: transparent;
}

.BasicsBox > .TabBar .Tab {
    padding: 10px 18px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #666;
}

.BasicsBox > .TabBar .Tab:hover:not(.active) {
    background: #e0e0e0;
    border-color: #bbb;
    color: #333;
}

.BasicsBox > .TabBar .Tab.active {
    background: #2E99E6;
    color: white;
    border-color: #2E99E6;
    box-shadow: 0 2px 6px rgba(46, 153, 230, 0.35);
}

.BasicsBox > .TabBar .Tab.active i {
    color: white;
}

.BasicsBox > .TabBar .Tab i {
    margin-right: 6px;
}

.TabContent {
    padding: 20px 0;
}

/* Drop Zone */
.DropZone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.DropZone:hover {
    border-color: #2E99E6;
    background: #e6f4fc;
}

.DropZone.dragover {
    border-color: #4CAF50;
    background: #e8f5e9;
}

/* Chat Interface */
#chat-messages {
    background: linear-gradient(to bottom, #fafafa, #f0f0f0);
    border-radius: 8px;
}

.chat-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 8px;
    max-width: 80%;
}

.chat-message.user {
    background: #2E99E6;
    color: white;
    margin-left: auto;
}

.chat-message.system {
    background: #e0e0e0;
    color: #333;
}

.chat-message.assistant {
    background: white;
    border: 1px solid #e0e0e0;
}

/* Results Grid */
.vision-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.vision-result-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.vision-result-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.vision-result-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.vision-result-card .score {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
}

.vision-result-card .alternative-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Vision Panel on View Page */
.vision-panel {
    margin: 15px 0;
}

.vision-faces-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vision-face-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vision-face-thumb:hover {
    border-color: #2E99E6;
    transform: scale(1.1);
}

/* Loading Spinner */
.vision-loading {
    text-align: center;
    padding: 40px;
}

.vision-loading i {
    font-size: 32px;
    color: #2E99E6;
}

/* Error State */
.vision-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

