/* model-selector.css */
.model-selector {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    background: #f9f9f9;
}

.model-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

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

.model-status-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.model-status-badge.downloaded {
    background: #e8f5e9;
    color: #2e7d32;
}

.model-selector-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.model-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.model-info {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #2196f3;
}

.model-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    font-size: 13px;
}

.model-detail {
    display: flex;
    justify-content: space-between;
}

.model-detail strong {
    color: #555;
}

.status-good {
    color: #4caf50;
    font-weight: 500;
}

.status-warning {
    color: #ff9800;
    font-weight: 500;
}

.model-recommended {
    margin-top: 8px;
    padding: 4px 8px;
    background: #fff8e1;
    border-radius: 4px;
    color: #ff8f00;
    font-size: 12px;
    display: inline-block;
}

.model-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-download-model,
.btn-remove-model {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-download-model {
    background: #2196f3;
    color: white;
}

.btn-download-model:hover {
    background: #1976d2;
}

.btn-remove-model {
    background: #f5f5f5;
    color: #d32f2f;
    border: 1px solid #ddd;
}

.btn-remove-model:hover {
    background: #ffebee;
}

/* Модальное окно загрузки */
.model-download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.model-download-modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.model-download-modal h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4caf50;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.status-text {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
    min-height: 20px;
}

.btn-cancel-download {
    margin-top: 15px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancel-download:hover {
    background: #eee;
}