/* Основные стили для ChromaDB Web Tool */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.collection-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.collection-item:hover {
    background-color: #e9ecef;
    transform: translateX(2px);
}

.collection-item.active {
    background-color: #0d6efd;
    color: white;
}

.collection-item.active:hover {
    background-color: #0b5ed7;
}

.document-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.document-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.document-content {
    max-height: 200px;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.metadata-badge {
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.search-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #0d6efd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.search-result .distance {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.stats-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: none;
    color: #1976d2;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stats-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.btn-action {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.pagination-info {
    font-size: 0.875rem;
    color: #6c757d;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.connection-status {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.connection-status.connected {
    background-color: #d1e7dd;
    color: #0f5132;
}

.connection-status.disconnected {
    background-color: #f8d7da;
    color: #721c24;
}

.connection-status.checking {
    background-color: #fff3cd;
    color: #856404;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .document-content {
        max-height: 150px;
        font-size: 0.8rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
}

/* Анимации для модальных окон */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Стили для таблиц */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

/* Стили для форм */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Стили для уведомлений */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
} 