/* RAG System Styles */

body {
    font-family: Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

/* Progress Bar - Fixed at top right */
.progress-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 1000;
    border: 1px solid #ddd;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #0056b3);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

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

.progress-status {
    font-size: 11px;
    color: #888;
    text-align: center;
}

/* Collapsible Sections */
.collapsible-section {
    background: white;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-header {
    background: #007cba;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.section-header:hover {
    background: #005a87;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
}

.collapse-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.section-content {
    padding: 30px;
    display: block;
    transition: all 0.3s ease;
}

.section-content.collapsed {
    display: none;
}

.section-header.collapsed .collapse-icon {
    transform: rotate(180deg);
}

.main-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-panel {
    flex: 1;
    min-width: 600px;
}

.container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.input-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
}

.input-type-selector {
    margin-bottom: 20px;
}

.input-type-selector label {
    display: block;
    margin: 10px 0;
    font-weight: bold;
}

.input-type-selector input[type="radio"] {
    margin-right: 10px;
}

.input-form {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
}

.input-form.active {
    display: block;
}

input[type="text"], input[type="url"], input[type="file"], input[type="password"], textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

input[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

textarea {
    height: 200px;
    resize: vertical;
}

button {
    background-color: #007cba;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 5px;
}

button:hover {
    background-color: #005a87;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.query-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.response-area {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    min-height: 100px;
}

.response-header {
    color: #007cba;
    font-size: 16px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.response-content {
    line-height: 1.6;
    margin-bottom: 15px;
}

.response-footer {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

.status-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Code blocks in documentation */
pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Documentation styling */
.input-section h2, .input-section h3, .input-section h4, .input-section h5 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.input-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.input-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.input-section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .progress-container {
        width: 250px;
        right: 10px;
        top: 10px;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .input-section, .query-section {
        padding: 15px;
    }
    
    button {
        width: 100%;
        margin: 5px 0;
    }
} 