rag-data-platform / static /css /styles.css
Vipooshanb's picture
Deploy Mozhii RAG Data Platform
af25178 verified
Raw
History Blame Contribute Delete
32.4 kB
/*
===============================================================================
Mozhii RAG Data Platform - Main Stylesheet
===============================================================================
Modern, clean UI design with support for Tamil text rendering.
Design Philosophy:
- Clean and minimal
- High contrast for readability
- Tamil-friendly typography
- Consistent spacing and components
- Accessible color choices
Color Palette:
- Primary: #6366F1 (Indigo)
- Secondary: #8B5CF6 (Purple)
- Success: #10B981 (Emerald)
- Warning: #F59E0B (Amber)
- Error: #EF4444 (Red)
- Background: #0F172A (Slate 900)
- Surface: #1E293B (Slate 800)
- Text: #F1F5F9 (Slate 100)
===============================================================================
*/
/* =============================================================================
LOGIN SCREEN
============================================================================= */
.login-overlay {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}
.login-overlay.hidden { display: none; }
.login-card {
background: #1E293B;
border: 1px solid rgba(99,102,241,0.25);
border-radius: 1rem;
padding: 2.5rem 2rem;
width: 100%;
max-width: 380px;
text-align: center;
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.login-logo { margin-bottom: 1rem; }
.login-title {
color: #F1F5F9;
font-size: 1.35rem;
font-weight: 700;
margin: 0 0 0.25rem;
}
.login-subtitle {
color: #94A3B8;
font-size: 0.85rem;
margin: 0 0 1.5rem;
}
.login-field {
text-align: left;
margin-bottom: 1rem;
}
.login-field label {
display: block;
color: #CBD5E1;
font-size: 0.8rem;
font-weight: 500;
margin-bottom: 0.35rem;
}
.login-field input {
width: 100%;
padding: 0.6rem 0.75rem;
border: 1px solid #334155;
border-radius: 0.5rem;
background: #0F172A;
color: #F1F5F9;
font-size: 0.9rem;
outline: none;
transition: border-color 0.2s;
box-sizing: border-box;
}
.login-field input:focus {
border-color: #6366F1;
}
.login-error {
color: #EF4444;
font-size: 0.8rem;
min-height: 1.2em;
margin: 0 0 0.75rem;
}
.login-btn {
width: 100%;
padding: 0.65rem;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
}
/* =============================================================================
CSS VARIABLES - Design Tokens
============================================================================= */
:root {
/* Primary Colors */
--primary: #6366F1;
--primary-hover: #4F46E5;
--primary-light: #818CF8;
--primary-dark: #4338CA;
/* Secondary Colors */
--secondary: #8B5CF6;
--secondary-hover: #7C3AED;
/* Semantic Colors */
--success: #10B981;
--success-light: #34D399;
--warning: #F59E0B;
--warning-light: #FBBF24;
--error: #EF4444;
--error-light: #F87171;
--info: #3B82F6;
/* Background Colors */
--bg-dark: #0F172A;
--bg-surface: #1E293B;
--bg-elevated: #334155;
--bg-hover: #475569;
/* Text Colors */
--text-primary: #F1F5F9;
--text-secondary: #94A3B8;
--text-muted: #64748B;
--text-dark: #0F172A;
/* Border Colors */
--border: #334155;
--border-light: #475569;
--border-focus: #6366F1;
/* Spacing */
--spacing-xs: 0.25rem;
--spacing-sm: 0.5rem;
--spacing-md: 1rem;
--spacing-lg: 1.5rem;
--spacing-xl: 2rem;
--spacing-2xl: 3rem;
/* Border Radius */
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
--radius-xl: 1rem;
--radius-full: 9999px;
/* Shadows */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
/* Transitions */
--transition-fast: 150ms ease;
--transition-base: 200ms ease;
--transition-slow: 300ms ease;
/* Typography */
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-tamil: 'Noto Sans Tamil', 'Inter', sans-serif;
/* Z-Index Scale */
--z-dropdown: 100;
--z-sticky: 200;
--z-modal: 300;
--z-toast: 400;
}
/* =============================================================================
RESET & BASE STYLES
============================================================================= */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: var(--font-sans);
background-color: var(--bg-dark);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
}
/* Tamil text styling */
.tamil-text {
font-family: var(--font-tamil);
line-height: 1.8;
font-size: 1.05rem;
}
/* =============================================================================
HEADER
============================================================================= */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--spacing-md) var(--spacing-xl);
background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: var(--z-sticky);
}
.header-brand {
display: flex;
align-items: center;
gap: var(--spacing-md);
}
.logo {
width: 48px;
height: 48px;
color: var(--primary);
}
.logo img {
width: 100%;
height: 100%;
object-fit: contain;
}
.brand-text h1 {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-primary);
line-height: 1.2;
}
.brand-text p {
font-size: 0.875rem;
color: var(--text-secondary);
font-weight: 400;
}
.admin-toggle {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-secondary);
cursor: pointer;
transition: all var(--transition-base);
}
.admin-toggle:hover {
background: var(--bg-hover);
color: var(--text-primary);
border-color: var(--primary);
}
.admin-toggle svg {
width: 20px;
height: 20px;
}
.pending-badge {
position: absolute;
top: -6px;
right: -6px;
min-width: 20px;
height: 20px;
padding: 0 6px;
background: var(--error);
color: white;
font-size: 0.75rem;
font-weight: 600;
border-radius: var(--radius-full);
display: flex;
align-items: center;
justify-content: center;
}
.pending-badge:empty,
.pending-badge[data-count="0"] {
display: none;
}
/* =============================================================================
TAB NAVIGATION
============================================================================= */
.tab-nav {
display: flex;
gap: var(--spacing-xs);
padding: var(--spacing-md) var(--spacing-xl);
background: var(--bg-surface);
border-bottom: 1px solid var(--border);
}
.tab-btn {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: var(--spacing-xs);
padding: var(--spacing-md) var(--spacing-lg);
background: transparent;
border: 2px solid transparent;
border-radius: var(--radius-lg);
cursor: pointer;
transition: all var(--transition-base);
}
.tab-btn:hover {
background: var(--bg-elevated);
}
.tab-btn.active {
background: var(--bg-elevated);
border-color: var(--primary);
}
.tab-icon {
font-size: 1.5rem;
}
.tab-label {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-primary);
}
.tab-desc {
font-size: 0.75rem;
color: var(--text-muted);
}
.tab-btn.active .tab-label {
color: var(--primary-light);
}
/* =============================================================================
MAIN CONTENT
============================================================================= */
.main-content {
padding: var(--spacing-xl);
max-width: 1600px;
margin: 0 auto;
}
.tab-panel {
display: none;
animation: fadeIn var(--transition-base);
}
.tab-panel.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.panel-header {
margin-bottom: var(--spacing-xl);
}
.panel-header h2 {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: var(--spacing-xs);
}
.panel-header p {
color: var(--text-secondary);
}
/* =============================================================================
FORM STYLES
============================================================================= */
.form-container {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
padding: var(--spacing-xl);
}
.form-group {
margin-bottom: var(--spacing-lg);
}
.form-group label {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.875rem;
font-weight: 500;
color: var(--text-primary);
margin-bottom: var(--spacing-sm);
}
.form-hint {
font-size: 0.75rem;
color: var(--text-muted);
margin-top: var(--spacing-xs);
}
.char-count {
font-size: 0.75rem;
color: var(--text-muted);
font-weight: 400;
}
input[type="text"],
select,
textarea {
width: 100%;
padding: var(--spacing-sm) var(--spacing-md);
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-primary);
font-size: 1rem;
font-family: inherit;
transition: all var(--transition-base);
}
input[type="text"]:focus,
select:focus,
textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
input[type="text"]:disabled,
select:disabled,
textarea:disabled {
opacity: 0.5;
cursor: not-allowed;
}
textarea {
resize: vertical;
min-height: 120px;
}
textarea.tamil-text {
line-height: 2;
}
select {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
padding-right: 36px;
}
.form-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--spacing-md);
}
.form-actions {
display: flex;
justify-content: flex-end;
gap: var(--spacing-md);
margin-top: var(--spacing-xl);
padding-top: var(--spacing-lg);
border-top: 1px solid var(--border);
}
/* =============================================================================
BUTTONS
============================================================================= */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--spacing-sm);
padding: var(--spacing-sm) var(--spacing-lg);
font-size: 0.875rem;
font-weight: 500;
font-family: inherit;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition-base);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover:not(:disabled) {
background: var(--primary-hover);
}
.btn-secondary {
background: var(--bg-elevated);
color: var(--text-primary);
border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
background: var(--bg-hover);
border-color: var(--border-light);
}
.btn-success {
background: var(--success);
color: white;
}
.btn-success:hover:not(:disabled) {
background: #059669;
}
.btn-error {
background: var(--error);
color: white;
}
.btn-error:hover:not(:disabled) {
background: #DC2626;
}
.btn-sm {
padding: var(--spacing-xs) var(--spacing-sm);
font-size: 0.75rem;
}
.btn-icon {
font-size: 1rem;
}
.full-width {
width: 100%;
}
/* =============================================================================
SPLIT PANEL LAYOUT
============================================================================= */
.split-panel {
display: grid;
grid-template-columns: 300px 1fr;
gap: var(--spacing-lg);
min-height: 600px;
}
.chunking-layout {
grid-template-columns: 250px 1fr 350px;
}
.file-list-panel,
.cleaning-form-panel,
.source-content-panel,
.chunk-form-panel {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
padding: var(--spacing-lg);
display: flex;
flex-direction: column;
}
.panel-section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--spacing-md);
padding-bottom: var(--spacing-sm);
border-bottom: 1px solid var(--border);
}
.panel-section-header h3 {
font-size: 1rem;
font-weight: 600;
}
/* =============================================================================
FILE LIST
============================================================================= */
.file-list {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
}
.file-item {
display: flex;
align-items: center;
gap: var(--spacing-sm);
padding: var(--spacing-sm) var(--spacing-md);
background: var(--bg-elevated);
border: 1px solid transparent;
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition-base);
}
.file-item:hover {
background: var(--bg-hover);
}
.file-item.selected {
background: var(--primary);
background: rgba(99, 102, 241, 0.2);
border-color: var(--primary);
}
.file-icon {
font-size: 1.25rem;
}
.file-info {
flex: 1;
min-width: 0;
}
.file-name {
font-size: 0.875rem;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.file-meta {
font-size: 0.75rem;
color: var(--text-muted);
}
.file-status {
font-size: 0.7rem;
padding: 2px 6px;
border-radius: var(--radius-sm);
font-weight: 500;
}
.file-status.pending {
background: rgba(245, 158, 11, 0.2);
color: var(--warning);
}
.file-status.approved {
background: rgba(16, 185, 129, 0.2);
color: var(--success);
}
.file-status.not_started {
background: rgba(100, 116, 139, 0.2);
color: var(--text-muted);
}
/* =============================================================================
CONTENT PREVIEW
============================================================================= */
.content-preview,
.source-content {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: var(--spacing-md);
min-height: 150px;
max-height: 300px;
overflow-y: auto;
white-space: pre-wrap;
word-wrap: break-word;
}
.source-content {
flex: 1;
min-height: 400px;
max-height: none;
}
.placeholder {
color: var(--text-muted);
font-style: italic;
}
/* =============================================================================
CHUNKS LIST
============================================================================= */
.chunks-list-section {
margin-top: var(--spacing-lg);
padding-top: var(--spacing-lg);
border-top: 1px solid var(--border);
}
.chunks-list-section h4 {
font-size: 0.875rem;
font-weight: 600;
margin-bottom: var(--spacing-sm);
}
.chunks-list {
max-height: 200px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
}
.chunk-item {
display: flex;
align-items: center;
gap: var(--spacing-sm);
padding: var(--spacing-sm);
background: var(--bg-elevated);
border-radius: var(--radius-sm);
font-size: 0.8rem;
}
.chunk-item .chunk-id {
font-weight: 500;
color: var(--primary-light);
}
.chunk-item .chunk-preview {
flex: 1;
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* =============================================================================
ADMIN SIDEBAR
============================================================================= */
.admin-sidebar {
position: fixed;
top: 0;
right: -400px;
width: 380px;
height: 100vh;
background: var(--bg-surface);
border-left: 1px solid var(--border);
z-index: var(--z-modal);
transition: right var(--transition-slow);
display: flex;
flex-direction: column;
overflow: hidden;
}
.admin-sidebar.open {
right: 0;
}
/* Scrollable content area inside the sidebar */
.sidebar-body {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
padding-bottom: 1.5rem;
/* Custom thin scrollbar */
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}
.sidebar-body::-webkit-scrollbar {
width: 5px;
}
.sidebar-body::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--spacing-lg);
border-bottom: 1px solid var(--border);
}
.sidebar-header h3 {
font-size: 1.125rem;
font-weight: 600;
}
.close-btn {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-secondary);
cursor: pointer;
font-size: 1rem;
transition: all var(--transition-base);
}
.close-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.stats-overview {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--spacing-md);
padding: var(--spacing-lg);
border-bottom: 1px solid var(--border);
}
.stat-card {
background: var(--bg-elevated);
border-radius: var(--radius-md);
padding: var(--spacing-md);
text-align: center;
}
.stat-value {
display: block;
font-size: 1.75rem;
font-weight: 700;
color: var(--primary-light);
}
.stat-label {
font-size: 0.75rem;
color: var(--text-muted);
}
.pending-section {
padding: var(--spacing-md) var(--spacing-lg);
border-bottom: 1px solid var(--border);
}
.pending-section h4 {
font-size: 0.875rem;
font-weight: 600;
margin-bottom: var(--spacing-sm);
}
.pending-list {
max-height: 200px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
/* Thin scrollbar */
scrollbar-width: thin;
scrollbar-color: var(--border) transparent;
}
.pending-list::-webkit-scrollbar {
width: 4px;
}
.pending-list::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}
.pending-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--spacing-sm);
background: var(--bg-elevated);
border-radius: var(--radius-sm);
}
.pending-item-name {
font-size: 0.875rem;
font-weight: 500;
}
.pending-item-actions {
display: flex;
gap: var(--spacing-xs);
}
.pending-item-actions button {
width: 28px;
height: 28px;
padding: 0;
font-size: 0.875rem;
}
.sync-section {
padding: var(--spacing-lg);
border-top: 1px solid var(--border);
margin-top: var(--spacing-md);
}
.sync-info {
display: block;
text-align: center;
font-size: 0.75rem;
color: var(--text-muted);
margin-top: var(--spacing-sm);
}
.sidebar-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: calc(var(--z-modal) - 1);
opacity: 0;
visibility: hidden;
transition: all var(--transition-base);
}
.sidebar-overlay.visible {
opacity: 1;
visibility: visible;
}
/* =============================================================================
TOAST NOTIFICATIONS
============================================================================= */
.toast-container {
position: fixed;
bottom: var(--spacing-xl);
right: var(--spacing-xl);
z-index: var(--z-toast);
display: flex;
flex-direction: column;
gap: var(--spacing-sm);
}
.toast {
display: flex;
align-items: center;
gap: var(--spacing-md);
padding: var(--spacing-md) var(--spacing-lg);
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
animation: slideIn var(--transition-base);
max-width: 400px;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(100px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.toast.success {
border-left: 4px solid var(--success);
}
.toast.error {
border-left: 4px solid var(--error);
}
.toast.warning {
border-left: 4px solid var(--warning);
}
.toast.info {
border-left: 4px solid var(--info);
}
.toast-icon {
font-size: 1.25rem;
}
.toast-content {
flex: 1;
}
.toast-title {
font-weight: 600;
font-size: 0.875rem;
}
.toast-message {
font-size: 0.8rem;
color: var(--text-secondary);
}
.toast-close {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: var(--spacing-xs);
font-size: 1rem;
}
.toast-close:hover {
color: var(--text-primary);
}
/* =============================================================================
MODAL
============================================================================= */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: var(--z-modal);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: all var(--transition-base);
}
.modal-overlay.visible {
opacity: 1;
visibility: visible;
}
.modal {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
width: 90%;
max-width: 600px;
max-height: 90vh;
overflow: hidden;
display: flex;
flex-direction: column;
transform: scale(0.9);
transition: transform var(--transition-base);
}
.modal-overlay.visible .modal {
transform: scale(1);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--spacing-lg);
border-bottom: 1px solid var(--border);
}
.modal-header h3 {
font-size: 1.125rem;
font-weight: 600;
}
.modal-body {
padding: var(--spacing-lg);
overflow-y: auto;
flex: 1;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: var(--spacing-md);
padding: var(--spacing-lg);
border-top: 1px solid var(--border);
}
/* =============================================================================
EMPTY STATE
============================================================================= */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: var(--spacing-xl);
text-align: center;
color: var(--text-muted);
}
.empty-state p {
font-weight: 500;
margin-bottom: var(--spacing-xs);
}
.empty-state span {
font-size: 0.875rem;
}
.empty-state.small {
padding: var(--spacing-md);
}
.empty-state.small p {
font-size: 0.875rem;
}
/* =============================================================================
RESPONSIVE DESIGN
============================================================================= */
@media (max-width: 1200px) {
.chunking-layout {
grid-template-columns: 1fr;
}
.source-content-panel {
order: 1;
}
.file-list-panel {
order: 2;
}
.chunk-form-panel {
order: 3;
}
}
@media (max-width: 768px) {
.header {
padding: var(--spacing-md);
}
.brand-text h1 {
font-size: 1.125rem;
}
.brand-text p {
display: none;
}
.tab-nav {
padding: var(--spacing-sm);
}
.tab-btn {
padding: var(--spacing-sm);
}
.tab-desc {
display: none;
}
.main-content {
padding: var(--spacing-md);
}
.split-panel {
grid-template-columns: 1fr;
}
.form-row {
grid-template-columns: 1fr;
}
.admin-sidebar {
width: 100%;
right: -100%;
}
}
/* =============================================================================
SCROLLBAR STYLES
============================================================================= */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-dark);
border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb {
background: var(--bg-hover);
border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
background: var(--border-light);
}
/* =============================================================================
UTILITY CLASSES
============================================================================= */
.text-success { color: var(--success) !important; }
.text-error { color: var(--error) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.hidden { display: none !important; }
/* =============================================================================
HUGGINGFACE CONFIG SECTION
============================================================================= */
.hf-config-section {
background: var(--bg-elevated);
border-radius: var(--radius-md);
margin-bottom: var(--spacing-md);
overflow: hidden;
}
.hf-config-section .section-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--spacing-md);
cursor: pointer;
transition: background var(--transition-base);
}
.hf-config-section .section-header:hover {
background: var(--bg-hover);
}
.hf-config-section .section-header h4 {
margin: 0;
font-size: 0.875rem;
font-weight: 500;
}
.hf-config-section .toggle-icon {
color: var(--text-muted);
font-size: 0.75rem;
transition: transform var(--transition-base);
}
.hf-config-content {
padding: var(--spacing-md);
padding-top: 0;
border-top: 1px solid var(--border);
}
.hf-status {
display: flex;
align-items: center;
gap: var(--spacing-sm);
padding: var(--spacing-sm) var(--spacing-md);
background: var(--bg-dark);
border-radius: var(--radius-sm);
margin-bottom: var(--spacing-md);
font-size: 0.8rem;
}
.status-indicator {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.status-indicator.connected {
background: var(--success);
box-shadow: 0 0 6px var(--success);
}
.status-indicator.partial {
background: var(--warning);
box-shadow: 0 0 6px var(--warning);
}
.status-indicator.disconnected {
background: var(--error);
box-shadow: 0 0 6px var(--error);
}
.form-group.compact {
margin-bottom: var(--spacing-md);
}
.form-group.compact label {
font-size: 0.75rem;
margin-bottom: var(--spacing-xs);
}
.form-group.compact .form-input {
padding: var(--spacing-xs) var(--spacing-sm);
font-size: 0.875rem;
}
.form-group.compact .form-hint {
font-size: 0.7rem;
}
.form-input {
width: 100%;
padding: var(--spacing-sm) var(--spacing-md);
background: var(--bg-dark);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 0.875rem;
transition: border-color var(--transition-base);
}
.form-input:focus {
outline: none;
border-color: var(--primary);
}
.form-input::placeholder {
color: var(--text-muted);
}
/* =============================================================================
EDIT MODAL STYLES
============================================================================= */
.edit-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: var(--z-modal);
opacity: 0;
visibility: hidden;
transition: all var(--transition-base);
}
.edit-modal-overlay.visible {
opacity: 1;
visibility: visible;
}
.edit-modal {
background: var(--bg-surface);
border-radius: var(--radius-lg);
width: 90%;
max-width: 800px;
max-height: 90vh;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-xl);
transform: translateY(20px);
transition: transform var(--transition-base);
}
.edit-modal-overlay.visible .edit-modal {
transform: translateY(0);
}
.edit-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--spacing-lg);
border-bottom: 1px solid var(--border);
}
.edit-modal-header h3 {
margin: 0;
font-size: 1.25rem;
}
.edit-modal-body {
padding: var(--spacing-lg);
overflow-y: auto;
flex: 1;
}
.edit-meta-info {
display: flex;
align-items: center;
gap: var(--spacing-md);
margin-bottom: var(--spacing-lg);
}
.edit-type-badge {
display: inline-block;
padding: var(--spacing-xs) var(--spacing-sm);
background: var(--primary);
color: white;
border-radius: var(--radius-sm);
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
}
.edit-type-badge.raw {
background: var(--info);
}
.edit-type-badge.cleaned {
background: var(--success);
}
.edit-filename {
font-family: monospace;
color: var(--text-secondary);
font-size: 0.9rem;
}
.edit-textarea {
min-height: 300px;
font-size: 1rem;
}
.edit-modal-footer {
display: flex;
justify-content: flex-end;
gap: var(--spacing-md);
padding: var(--spacing-lg);
border-top: 1px solid var(--border);
background: var(--bg-elevated);
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* =============================================================================
PENDING ITEM STYLES (ENHANCED)
============================================================================= */
.pending-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--spacing-sm) var(--spacing-md);
background: var(--bg-elevated);
border-radius: var(--radius-sm);
margin-bottom: var(--spacing-xs);
transition: background var(--transition-base);
}
.pending-item:hover {
background: var(--bg-hover);
}
.pending-item-name {
font-size: 0.8rem;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
margin-right: var(--spacing-sm);
}
.pending-item-actions {
display: flex;
gap: var(--spacing-xs);
flex-shrink: 0;
}
.pending-item-actions .btn-sm {
padding: 4px 8px;
font-size: 0.7rem;
min-width: 28px;
}
/* Clickable section header */
.section-header.clickable {
cursor: pointer;
}
.section-header.clickable:hover {
background: var(--bg-hover);
}