.ragbot-settings .nav-tab-wrapper {
    margin-bottom: 20px;
}

#sources-manager {
    margin-bottom: 15px;
}

.source-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.source-item input[type="text"],
.source-item input[type="url"],
.source-item input[type="number"] {
    width: 100%;
    margin-bottom: 8px;
}

.source-item textarea {
    width: 100%;
    height: 60px;
    margin-bottom: 8px;
}

.source-item .button {
    margin-right: 5px;
}

#upload-status {
    margin-top: 10px;
}

#test-result {
    margin-left: 10px;
    font-weight: bold;
}

.indexing-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

.ragbot-admin-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 124, 186, 0.2);
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 5px;
}

.source-item .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.source-stats {
    margin: 8px 0;
    padding: 8px;
    background: #f9f9f9;
    border-left: 3px solid #007cba;
    font-size: 13px;
}

.ragbot-progress-container {
    margin: 10px 0;
}

.ragbot-progress-bar {
    width: 100%;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ragbot-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #007cba 0%, #00a0d2 100%);
    transition: width 0.3s ease;
}

.ragbot-progress-text {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.ragbot-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 124, 186, 0.2);
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

.ragbot-stats-box {
    background: #f0f6fc;
    border: 1px solid #c3dafe;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ragbot-stats-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 16px;
}

.ragbot-stat-item {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.ragbot-stat-item:last-child {
    border-bottom: none;
}

.ragbot-stat-item strong {
    display: inline-block;
    width: 150px;
    color: #333;
}
