|
|
|
|
|
* { |
|
|
margin: 0; |
|
|
padding: 0; |
|
|
box-sizing: border-box; |
|
|
} |
|
|
|
|
|
:root { |
|
|
|
|
|
--bg-primary: #ffffff; |
|
|
--bg-secondary: #f8fafc; |
|
|
--bg-tertiary: #f1f5f9; |
|
|
--text-primary: #1e293b; |
|
|
--text-secondary: #64748b; |
|
|
--text-muted: #94a3b8; |
|
|
--border-color: #e2e8f0; |
|
|
--accent-primary: #3b82f6; |
|
|
--accent-secondary: #8b5cf6; |
|
|
--success: #10b981; |
|
|
--warning: #f59e0b; |
|
|
--danger: #ef4444; |
|
|
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); |
|
|
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); |
|
|
--radius: 8px; |
|
|
--radius-lg: 12px; |
|
|
--transition: all 0.2s ease-in-out; |
|
|
} |
|
|
|
|
|
[data-theme="dark"] { |
|
|
--bg-primary: #0f172a; |
|
|
--bg-secondary: #1e293b; |
|
|
--bg-tertiary: #334155; |
|
|
--text-primary: #f8fafc; |
|
|
--text-secondary: #cbd5e1; |
|
|
--text-muted: #64748b; |
|
|
--border-color: #334155; |
|
|
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3); |
|
|
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3); |
|
|
} |
|
|
|
|
|
body { |
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
|
|
background: var(--bg-secondary); |
|
|
color: var(--text-primary); |
|
|
line-height: 1.6; |
|
|
transition: var(--transition); |
|
|
} |
|
|
|
|
|
|
|
|
.container { |
|
|
max-width: 1400px; |
|
|
margin: 0 auto; |
|
|
padding: 0 1rem; |
|
|
} |
|
|
|
|
|
|
|
|
.header { |
|
|
background: var(--bg-primary); |
|
|
border-bottom: 1px solid var(--border-color); |
|
|
padding: 1rem 0; |
|
|
position: sticky; |
|
|
top: 0; |
|
|
z-index: 100; |
|
|
backdrop-filter: blur(10px); |
|
|
} |
|
|
|
|
|
.header-content { |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
align-items: center; |
|
|
} |
|
|
|
|
|
.logo { |
|
|
display: flex; |
|
|
align-items: center; |
|
|
gap: 0.75rem; |
|
|
} |
|
|
|
|
|
.logo i { |
|
|
font-size: 1.5rem; |
|
|
color: var(--accent-primary); |
|
|
} |
|
|
|
|
|
.logo h1 { |
|
|
font-size: 1.5rem; |
|
|
font-weight: 600; |
|
|
color: var(--text-primary); |
|
|
} |
|
|
|
|
|
.header-actions { |
|
|
display: flex; |
|
|
align-items: center; |
|
|
gap: 1rem; |
|
|
} |
|
|
|
|
|
|
|
|
.main-content { |
|
|
padding: 2rem 0; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
gap: 2rem; |
|
|
} |
|
|
|
|
|
|
|
|
.card { |
|
|
background: var(--bg-primary); |
|
|
border: 1px solid var(--border-color); |
|
|
border-radius: var(--radius-lg); |
|
|
box-shadow: var(--shadow); |
|
|
overflow: hidden; |
|
|
transition: var(--transition); |
|
|
} |
|
|
|
|
|
.card:hover { |
|
|
box-shadow: var(--shadow-lg); |
|
|
} |
|
|
|
|
|
.card-header { |
|
|
padding: 1.5rem; |
|
|
border-bottom: 1px solid var(--border-color); |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
align-items: center; |
|
|
} |
|
|
|
|
|
.card-header h2 { |
|
|
font-size: 1.25rem; |
|
|
font-weight: 600; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
gap: 0.5rem; |
|
|
} |
|
|
|
|
|
.card-header i { |
|
|
color: var(--accent-primary); |
|
|
} |
|
|
|
|
|
.card-content { |
|
|
padding: 1.5rem; |
|
|
} |
|
|
|
|
|
|
|
|
.status-indicator { |
|
|
display: flex; |
|
|
align-items: center; |
|
|
gap: 0.5rem; |
|
|
font-size: 0.875rem; |
|
|
font-weight: 500; |
|
|
} |
|
|
|
|
|
.status-dot { |
|
|
width: 8px; |
|
|
height: 8px; |
|
|
border-radius: 50%; |
|
|
background: var(--text-muted); |
|
|
animation: pulse 2s infinite; |
|
|
} |
|
|
|
|
|
.status-dot.running { |
|
|
background: var(--success); |
|
|
} |
|
|
|
|
|
.status-dot.stopped { |
|
|
background: var(--danger); |
|
|
} |
|
|
|
|
|
.status-dot.idle { |
|
|
background: var(--warning); |
|
|
} |
|
|
|
|
|
@keyframes pulse { |
|
|
0%, 100% { opacity: 1; } |
|
|
50% { opacity: 0.5; } |
|
|
} |
|
|
|
|
|
.stats-grid { |
|
|
display: grid; |
|
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); |
|
|
gap: 1.5rem; |
|
|
margin-bottom: 2rem; |
|
|
} |
|
|
|
|
|
.stat-item { |
|
|
text-align: center; |
|
|
padding: 1rem; |
|
|
background: var(--bg-secondary); |
|
|
border-radius: var(--radius); |
|
|
transition: var(--transition); |
|
|
} |
|
|
|
|
|
.stat-item:hover { |
|
|
transform: translateY(-2px); |
|
|
box-shadow: var(--shadow); |
|
|
} |
|
|
|
|
|
.stat-value { |
|
|
font-size: 2rem; |
|
|
font-weight: 700; |
|
|
color: var(--accent-primary); |
|
|
margin-bottom: 0.25rem; |
|
|
} |
|
|
|
|
|
.stat-label { |
|
|
font-size: 0.875rem; |
|
|
color: var(--text-secondary); |
|
|
font-weight: 500; |
|
|
} |
|
|
|
|
|
.progress-section { |
|
|
background: var(--bg-secondary); |
|
|
padding: 1.5rem; |
|
|
border-radius: var(--radius); |
|
|
} |
|
|
|
|
|
.progress-info { |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
align-items: center; |
|
|
margin-bottom: 1rem; |
|
|
font-size: 0.875rem; |
|
|
} |
|
|
|
|
|
.current-file { |
|
|
font-weight: 600; |
|
|
color: var(--accent-primary); |
|
|
max-width: 300px; |
|
|
overflow: hidden; |
|
|
text-overflow: ellipsis; |
|
|
white-space: nowrap; |
|
|
} |
|
|
|
|
|
.progress-bar { |
|
|
height: 8px; |
|
|
background: var(--bg-tertiary); |
|
|
border-radius: 4px; |
|
|
overflow: hidden; |
|
|
margin-bottom: 0.5rem; |
|
|
} |
|
|
|
|
|
.progress-fill { |
|
|
height: 100%; |
|
|
background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); |
|
|
border-radius: 4px; |
|
|
transition: width 0.3s ease; |
|
|
width: 0%; |
|
|
} |
|
|
|
|
|
.progress-text { |
|
|
text-align: center; |
|
|
font-size: 0.875rem; |
|
|
font-weight: 600; |
|
|
color: var(--text-secondary); |
|
|
} |
|
|
|
|
|
|
|
|
.control-group { |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
gap: 1.5rem; |
|
|
} |
|
|
|
|
|
.input-group { |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
gap: 0.5rem; |
|
|
} |
|
|
|
|
|
.input-group label { |
|
|
font-weight: 500; |
|
|
color: var(--text-primary); |
|
|
} |
|
|
|
|
|
.input { |
|
|
padding: 0.75rem; |
|
|
border: 1px solid var(--border-color); |
|
|
border-radius: var(--radius); |
|
|
background: var(--bg-primary); |
|
|
color: var(--text-primary); |
|
|
font-size: 0.875rem; |
|
|
transition: var(--transition); |
|
|
max-width: 200px; |
|
|
} |
|
|
|
|
|
.input:focus { |
|
|
outline: none; |
|
|
border-color: var(--accent-primary); |
|
|
box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1); |
|
|
} |
|
|
|
|
|
.input-help { |
|
|
font-size: 0.75rem; |
|
|
color: var(--text-muted); |
|
|
} |
|
|
|
|
|
.button-group { |
|
|
display: flex; |
|
|
gap: 1rem; |
|
|
flex-wrap: wrap; |
|
|
} |
|
|
|
|
|
|
|
|
.btn { |
|
|
display: inline-flex; |
|
|
align-items: center; |
|
|
gap: 0.5rem; |
|
|
padding: 0.75rem 1.5rem; |
|
|
border: none; |
|
|
border-radius: var(--radius); |
|
|
font-size: 0.875rem; |
|
|
font-weight: 500; |
|
|
cursor: pointer; |
|
|
transition: var(--transition); |
|
|
text-decoration: none; |
|
|
white-space: nowrap; |
|
|
} |
|
|
|
|
|
.btn:disabled { |
|
|
opacity: 0.5; |
|
|
cursor: not-allowed; |
|
|
} |
|
|
|
|
|
.btn-primary { |
|
|
background: var(--accent-primary); |
|
|
color: white; |
|
|
} |
|
|
|
|
|
.btn-primary:hover:not(:disabled) { |
|
|
background: #2563eb; |
|
|
transform: translateY(-1px); |
|
|
box-shadow: var(--shadow); |
|
|
} |
|
|
|
|
|
.btn-secondary { |
|
|
background: var(--bg-secondary); |
|
|
color: var(--text-primary); |
|
|
border: 1px solid var(--border-color); |
|
|
} |
|
|
|
|
|
.btn-secondary:hover:not(:disabled) { |
|
|
background: var(--bg-tertiary); |
|
|
transform: translateY(-1px); |
|
|
} |
|
|
|
|
|
.btn-danger { |
|
|
background: var(--danger); |
|
|
color: white; |
|
|
} |
|
|
|
|
|
.btn-danger:hover:not(:disabled) { |
|
|
background: #dc2626; |
|
|
transform: translateY(-1px); |
|
|
box-shadow: var(--shadow); |
|
|
} |
|
|
|
|
|
.btn-sm { |
|
|
padding: 0.5rem 1rem; |
|
|
font-size: 0.75rem; |
|
|
} |
|
|
|
|
|
.btn-icon { |
|
|
padding: 0.75rem; |
|
|
width: auto; |
|
|
height: auto; |
|
|
} |
|
|
|
|
|
.btn.active { |
|
|
background: var(--accent-primary); |
|
|
color: white; |
|
|
} |
|
|
|
|
|
|
|
|
.file-count { |
|
|
font-size: 0.875rem; |
|
|
color: var(--text-secondary); |
|
|
font-weight: 500; |
|
|
} |
|
|
|
|
|
.files-grid { |
|
|
display: grid; |
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); |
|
|
gap: 1rem; |
|
|
} |
|
|
|
|
|
.file-card { |
|
|
background: var(--bg-secondary); |
|
|
border: 1px solid var(--border-color); |
|
|
border-radius: var(--radius); |
|
|
padding: 1rem; |
|
|
transition: var(--transition); |
|
|
cursor: pointer; |
|
|
} |
|
|
|
|
|
.file-card:hover { |
|
|
transform: translateY(-2px); |
|
|
box-shadow: var(--shadow); |
|
|
border-color: var(--accent-primary); |
|
|
} |
|
|
|
|
|
.file-header { |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
align-items: flex-start; |
|
|
margin-bottom: 0.75rem; |
|
|
} |
|
|
|
|
|
.file-name { |
|
|
font-weight: 600; |
|
|
color: var(--text-primary); |
|
|
font-size: 0.875rem; |
|
|
word-break: break-word; |
|
|
flex: 1; |
|
|
margin-right: 0.5rem; |
|
|
} |
|
|
|
|
|
.file-size { |
|
|
font-size: 0.75rem; |
|
|
color: var(--text-muted); |
|
|
white-space: nowrap; |
|
|
} |
|
|
|
|
|
.file-stats { |
|
|
display: grid; |
|
|
grid-template-columns: 1fr 1fr; |
|
|
gap: 0.5rem; |
|
|
margin-bottom: 0.75rem; |
|
|
} |
|
|
|
|
|
.file-stat { |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
font-size: 0.75rem; |
|
|
} |
|
|
|
|
|
.file-stat-label { |
|
|
color: var(--text-secondary); |
|
|
} |
|
|
|
|
|
.file-stat-value { |
|
|
color: var(--text-primary); |
|
|
font-weight: 500; |
|
|
} |
|
|
|
|
|
.file-actions { |
|
|
display: flex; |
|
|
gap: 0.5rem; |
|
|
} |
|
|
|
|
|
.file-actions .btn { |
|
|
padding: 0.5rem 0.75rem; |
|
|
font-size: 0.75rem; |
|
|
} |
|
|
|
|
|
|
|
|
.log-controls { |
|
|
display: flex; |
|
|
gap: 0.5rem; |
|
|
} |
|
|
|
|
|
.logs-container { |
|
|
background: var(--bg-secondary); |
|
|
border: 1px solid var(--border-color); |
|
|
border-radius: var(--radius); |
|
|
height: 300px; |
|
|
overflow-y: auto; |
|
|
padding: 1rem; |
|
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; |
|
|
font-size: 0.75rem; |
|
|
line-height: 1.4; |
|
|
} |
|
|
|
|
|
.log-entry { |
|
|
margin-bottom: 0.5rem; |
|
|
display: flex; |
|
|
gap: 0.5rem; |
|
|
} |
|
|
|
|
|
.log-time { |
|
|
color: var(--text-muted); |
|
|
white-space: nowrap; |
|
|
} |
|
|
|
|
|
.log-message { |
|
|
color: var(--text-primary); |
|
|
word-break: break-word; |
|
|
} |
|
|
|
|
|
.log-entry.error .log-message { |
|
|
color: var(--danger); |
|
|
} |
|
|
|
|
|
.log-entry.success .log-message { |
|
|
color: var(--success); |
|
|
} |
|
|
|
|
|
.log-entry.warning .log-message { |
|
|
color: var(--warning); |
|
|
} |
|
|
|
|
|
|
|
|
.modal { |
|
|
display: none; |
|
|
position: fixed; |
|
|
top: 0; |
|
|
left: 0; |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
background: rgba(0, 0, 0, 0.5); |
|
|
z-index: 1000; |
|
|
backdrop-filter: blur(4px); |
|
|
} |
|
|
|
|
|
.modal.show { |
|
|
display: flex; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
animation: fadeIn 0.2s ease; |
|
|
} |
|
|
|
|
|
.modal-content { |
|
|
background: var(--bg-primary); |
|
|
border-radius: var(--radius-lg); |
|
|
box-shadow: var(--shadow-lg); |
|
|
max-width: 600px; |
|
|
width: 90%; |
|
|
max-height: 80vh; |
|
|
overflow: hidden; |
|
|
animation: slideUp 0.2s ease; |
|
|
} |
|
|
|
|
|
.modal-header { |
|
|
padding: 1.5rem; |
|
|
border-bottom: 1px solid var(--border-color); |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
align-items: center; |
|
|
} |
|
|
|
|
|
.modal-header h3 { |
|
|
font-size: 1.25rem; |
|
|
font-weight: 600; |
|
|
} |
|
|
|
|
|
.modal-close { |
|
|
background: none; |
|
|
border: none; |
|
|
font-size: 1.25rem; |
|
|
cursor: pointer; |
|
|
color: var(--text-muted); |
|
|
padding: 0.25rem; |
|
|
border-radius: var(--radius); |
|
|
transition: var(--transition); |
|
|
} |
|
|
|
|
|
.modal-close:hover { |
|
|
background: var(--bg-secondary); |
|
|
color: var(--text-primary); |
|
|
} |
|
|
|
|
|
.modal-body { |
|
|
padding: 1.5rem; |
|
|
max-height: 400px; |
|
|
overflow-y: auto; |
|
|
} |
|
|
|
|
|
.modal-footer { |
|
|
padding: 1.5rem; |
|
|
border-top: 1px solid var(--border-color); |
|
|
display: flex; |
|
|
gap: 1rem; |
|
|
justify-content: flex-end; |
|
|
} |
|
|
|
|
|
|
|
|
.loading-overlay { |
|
|
display: none; |
|
|
position: fixed; |
|
|
top: 0; |
|
|
left: 0; |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
background: rgba(0, 0, 0, 0.3); |
|
|
z-index: 2000; |
|
|
backdrop-filter: blur(2px); |
|
|
} |
|
|
|
|
|
.loading-overlay.show { |
|
|
display: flex; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
} |
|
|
|
|
|
.loading-spinner { |
|
|
background: var(--bg-primary); |
|
|
padding: 2rem; |
|
|
border-radius: var(--radius-lg); |
|
|
text-align: center; |
|
|
box-shadow: var(--shadow-lg); |
|
|
} |
|
|
|
|
|
.loading-spinner i { |
|
|
font-size: 2rem; |
|
|
color: var(--accent-primary); |
|
|
margin-bottom: 1rem; |
|
|
} |
|
|
|
|
|
.loading-spinner p { |
|
|
color: var(--text-secondary); |
|
|
font-weight: 500; |
|
|
} |
|
|
|
|
|
|
|
|
.toast-container { |
|
|
position: fixed; |
|
|
top: 1rem; |
|
|
right: 1rem; |
|
|
z-index: 3000; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
gap: 0.5rem; |
|
|
} |
|
|
|
|
|
.toast { |
|
|
background: var(--bg-primary); |
|
|
border: 1px solid var(--border-color); |
|
|
border-radius: var(--radius); |
|
|
padding: 1rem; |
|
|
box-shadow: var(--shadow-lg); |
|
|
min-width: 300px; |
|
|
animation: slideInRight 0.3s ease; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
gap: 0.75rem; |
|
|
} |
|
|
|
|
|
.toast.success { |
|
|
border-left: 4px solid var(--success); |
|
|
} |
|
|
|
|
|
.toast.error { |
|
|
border-left: 4px solid var(--danger); |
|
|
} |
|
|
|
|
|
.toast.warning { |
|
|
border-left: 4px solid var(--warning); |
|
|
} |
|
|
|
|
|
.toast.info { |
|
|
border-left: 4px solid var(--accent-primary); |
|
|
} |
|
|
|
|
|
.toast-icon { |
|
|
font-size: 1.25rem; |
|
|
} |
|
|
|
|
|
.toast.success .toast-icon { |
|
|
color: var(--success); |
|
|
} |
|
|
|
|
|
.toast.error .toast-icon { |
|
|
color: var(--danger); |
|
|
} |
|
|
|
|
|
.toast.warning .toast-icon { |
|
|
color: var(--warning); |
|
|
} |
|
|
|
|
|
.toast.info .toast-icon { |
|
|
color: var(--accent-primary); |
|
|
} |
|
|
|
|
|
.toast-content { |
|
|
flex: 1; |
|
|
} |
|
|
|
|
|
.toast-title { |
|
|
font-weight: 600; |
|
|
margin-bottom: 0.25rem; |
|
|
} |
|
|
|
|
|
.toast-message { |
|
|
font-size: 0.875rem; |
|
|
color: var(--text-secondary); |
|
|
} |
|
|
|
|
|
.toast-close { |
|
|
background: none; |
|
|
border: none; |
|
|
color: var(--text-muted); |
|
|
cursor: pointer; |
|
|
padding: 0.25rem; |
|
|
border-radius: var(--radius); |
|
|
transition: var(--transition); |
|
|
} |
|
|
|
|
|
.toast-close:hover { |
|
|
background: var(--bg-secondary); |
|
|
color: var(--text-primary); |
|
|
} |
|
|
|
|
|
|
|
|
@keyframes fadeIn { |
|
|
from { opacity: 0; } |
|
|
to { opacity: 1; } |
|
|
} |
|
|
|
|
|
@keyframes slideUp { |
|
|
from { transform: translateY(20px); opacity: 0; } |
|
|
to { transform: translateY(0); opacity: 1; } |
|
|
} |
|
|
|
|
|
@keyframes slideInRight { |
|
|
from { transform: translateX(100%); opacity: 0; } |
|
|
to { transform: translateX(0); opacity: 1; } |
|
|
} |
|
|
|
|
|
|
|
|
@media (max-width: 768px) { |
|
|
.container { |
|
|
padding: 0 0.5rem; |
|
|
} |
|
|
|
|
|
.header-content { |
|
|
flex-direction: column; |
|
|
gap: 1rem; |
|
|
align-items: flex-start; |
|
|
} |
|
|
|
|
|
.stats-grid { |
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
} |
|
|
|
|
|
.button-group { |
|
|
flex-direction: column; |
|
|
} |
|
|
|
|
|
.files-grid { |
|
|
grid-template-columns: 1fr; |
|
|
} |
|
|
|
|
|
.modal-content { |
|
|
width: 95%; |
|
|
margin: 1rem; |
|
|
} |
|
|
|
|
|
.toast { |
|
|
min-width: 280px; |
|
|
} |
|
|
|
|
|
.toast-container { |
|
|
left: 1rem; |
|
|
right: 1rem; |
|
|
} |
|
|
} |
|
|
|
|
|
@media (max-width: 480px) { |
|
|
.stats-grid { |
|
|
grid-template-columns: 1fr; |
|
|
} |
|
|
|
|
|
.progress-info { |
|
|
flex-direction: column; |
|
|
align-items: flex-start; |
|
|
gap: 0.5rem; |
|
|
} |
|
|
|
|
|
.current-file { |
|
|
max-width: 100%; |
|
|
} |
|
|
} |
|
|
|
|
|
|