.rag-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Padding now handled by the unified .sidebar-panel class */
}

/* Button styling for RAG panel */
.btn-compact {
    padding: 6px 10px;
    background-color: #53AF31;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.control-buttons .spacer {
    flex-grow: 1;
}

.btn-compact:hover {
    background-color: #478F2A;
}

/* Dark mode styling */
[data-theme='dark'] .btn-compact {
    background-color: #5fb83a;
    color: #ffffff;
}

[data-theme='dark'] .btn-compact:hover {
    background-color: #4ca32d;
}

.rag-header {
    width: 100%;
    padding: 4px 0;
}

.rag-full-label {
    font-size: 14px;
    font-weight: 500;
}

.toggle-switch-right {
    margin-left: 8px;
}

.rag-content {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 
 * Removed duplicate toggle switch styling.
 * This file now relies on the common toggle styles from site.css
 * Only keeping rag-specific modifications below
 */

/* Removed custom toggle styles to use the standard site.css styles */

/* Collection state indicators */
.collection-state {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    min-height: 24px;
}

.state-non-existent {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.state-indexing {
    color: #fd7e14;
    background-color: rgba(253, 126, 20, 0.1);
    border: 1px solid rgba(253, 126, 20, 0.2);
}

.state-indexed {
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8em;
    color: #666;
}

.spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #fd7e14;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark mode support for collection states */
[data-theme='dark'] .state-non-existent {
    color: #f8d7da;
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

[data-theme='dark'] .state-indexing {
    color: #ffeccb;
    background-color: rgba(253, 126, 20, 0.2);
    border: 1px solid rgba(253, 126, 20, 0.3);
}

[data-theme='dark'] .state-indexed {
    color: #d1e7dd;
    background-color: rgba(25, 135, 84, 0.2);
    border: 1px solid rgba(25, 135, 84, 0.3);
}

[data-theme='dark'] .progress-indicator {
    color: #adb5bd;
}

[data-theme='dark'] .spinner {
    border: 2px solid #495057;
    border-top: 2px solid #fd7e14;
}