/**
 * AI Model Preferences Frontend CSS
 */

.ai-model-preferences-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-model-preferences-container h2 {
    margin-top: 0;
    color: #333;
}

.ai-model-preferences-container h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #555;
    font-size: 1.2em;
}

.preferences-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.preferences-section .description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.provider-group {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.provider-group-title {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f5f5f5;
    margin: 0;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.provider-group-title input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.provider-group-title:hover {
    background: #eee;
}

.models-list-items {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.model-item-row {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.model-item-row:last-child {
    border-bottom: none;
}

.model-item-row label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
}

.model-item-row input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.model-name {
    font-weight: 500;
    color: #333;
}

.model-strengths {
    margin-left: 10px;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.preferences-actions-top {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 15px;
}

.preferences-actions-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 15px;
}

.save-status {
    color: #28a745;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

.save-status.show {
    opacity: 1;
}

.save-status.error {
    color: #dc3545;
}

/* Filter section */
.model-filter-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.model-filter-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.model-filter-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Model item styling */
.model-item-row {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.model-item-row:last-child {
    border-bottom: none;
}

.model-item-row label {
    display: block;
    cursor: pointer;
    font-size: 0.95em;
}

.model-item-row input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    float: left;
    margin-top: 3px;
}

.model-info {
    margin-left: 30px;
}

.model-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}

.model-name {
    font-weight: 600;
    color: #333;
}

.model-strengths {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.model-description {
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
    margin-top: 5px;
    padding-left: 0;
}

