in-browser-rag / style.css
Johannes
init
cca4a24
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.1);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 30px;
text-align: center;
}
.header h1 { font-size: 2.5em; margin-bottom: 10px; }
.header p { font-size: 1.2em; opacity: 0.9; }
.status {
background: #f8f9fa;
padding: 15px 30px;
border-bottom: 1px solid #e9ecef;
font-weight: 600;
color: #495057;
}
.tabs {
display: flex;
background: #f8f9fa;
border-bottom: 1px solid #e9ecef;
}
.tab {
flex: 1;
padding: 15px 20px;
background: none;
border: none;
cursor: pointer;
font-weight: 600;
font-size: 14px;
transition: all 0.3s;
border-bottom: 3px solid transparent;
}
.tab:hover { background: #e9ecef; }
.tab.active { background: white; border-bottom-color: #667eea; color: #667eea; }
.tab-content {
display: none;
padding: 30px;
}
.tab-content.active { display: block; }
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: 600;
color: #495057;
}
input, textarea, select {
width: 100%;
padding: 12px;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 16px;
transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus {
outline: none;
border-color: #667eea;
}
button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s;
}
button:hover { transform: translateY(-2px); }
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-secondary {
background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}
.result {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 20px;
margin-top: 15px;
white-space: pre-wrap;
max-height: 400px;
overflow-y: auto;
}
.upload-section {
margin-bottom: 30px;
}
.upload-area {
border: 2px dashed #007bff;
border-radius: 12px;
padding: 40px;
text-align: center;
background: #f8f9ff;
cursor: pointer;
transition: all 0.3s ease;
margin: 20px 0;
}
.upload-area:hover {
border-color: #0056b3;
background: #e3f2fd;
}
.upload-area.dragover {
border-color: #28a745;
background: #e8f5e8;
}
.upload-content {
pointer-events: none;
}
.upload-icon {
font-size: 48px;
margin-bottom: 15px;
}
.upload-text {
color: #666;
font-size: 16px;
}
.divider {
text-align: center;
margin: 30px 0;
position: relative;
color: #666;
font-weight: bold;
background: white;
padding: 0 20px;
display: inline-block;
width: 100%;
}
.divider::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: #ddd;
z-index: 1;
}
.manual-entry {
margin-top: 20px;
}
.progress-container {
background: #f0f0f0;
border-radius: 6px;
margin: 15px 0;
overflow: hidden;
position: relative;
}
.progress-bar {
background: linear-gradient(45deg, #007bff, #0056b3);
height: 20px;
border-radius: 6px;
transition: width 0.3s ease;
width: 0%;
}
.progress-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 12px;
font-weight: bold;
color: #333;
white-space: nowrap;
}
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.alert {
padding: 15px;
border-radius: 8px;
margin-bottom: 20px;
}
.alert-info {
background: #d1ecf1;
border: 1px solid #b8daff;
color: #0c5460;
}
.alert-success {
background: #d4edda;
border: 1px solid #c3e6cb;
color: #155724;
}
.alert-warning {
background: #fff3cd;
border: 1px solid #ffeeba;
color: #856404;
}
.slider-container {
display: flex;
align-items: center;
gap: 15px;
}
.slider {
flex: 1;
}
.slider-value {
min-width: 40px;
text-align: center;
font-weight: 600;
color: #667eea;
}
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 2px solid #f3f3f3;
border-top: 2px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.progress {
width: 100%;
height: 8px;
background: #e9ecef;
border-radius: 4px;
overflow: hidden;
margin: 10px 0;
}
.progress-bar {
height: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
transition: width 0.3s ease;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.model-info {
background: #e8f4f8;
border: 1px solid #bee5eb;
border-radius: 8px;
padding: 15px;
margin: 15px 0;
}
.model-info h4 {
color: #0c5460;
margin-bottom: 8px;
}
.model-info p {
color: #0c5460;
font-size: 14px;
margin: 5px 0;
}