You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
242 lines
4.2 KiB
242 lines
4.2 KiB
/* =======================================================================
|
|
File: static/css/dashboard.css
|
|
Purpose:
|
|
Clean full-width vertical dashboard layout with large log viewer.
|
|
======================================================================= */
|
|
|
|
/* ------------------------------
|
|
GENERAL PAGE LAYOUT
|
|
------------------------------ */
|
|
|
|
/* Dashboard content should use full width */
|
|
.dashboard-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
max-width: 1200px; /* voorkomt overflow rechts */
|
|
margin: 20px auto;
|
|
padding: 0 20px;
|
|
gap: 18px; /* kleiner dan 30px */
|
|
}
|
|
|
|
/* ------------------------------
|
|
SECTIONS (input, progress, logs)
|
|
------------------------------ */
|
|
|
|
.dashboard-section {
|
|
background: #ffffff;
|
|
padding: 16px; /* kleiner */
|
|
border-radius: 6px;
|
|
border: 1px solid #ddd;
|
|
margin: 0; /* weg extra witruimte */
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 22px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* ------------------------------
|
|
BOOK LIST (optional)
|
|
------------------------------ */
|
|
|
|
.book-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.book-list-empty {
|
|
padding: 18px;
|
|
text-align: center;
|
|
color: #777;
|
|
}
|
|
|
|
/* List item */
|
|
.book-list-item {
|
|
padding: 12px 16px;
|
|
background: #f7f7f7;
|
|
border-radius: 6px;
|
|
border: 1px solid #ccc;
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
|
|
transition: background 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.book-list-item:hover,
|
|
.book-list-item.active {
|
|
background: #eaf3ff;
|
|
border-color: #1e88e5;
|
|
}
|
|
|
|
/* Title + metadata */
|
|
.book-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.book-meta {
|
|
font-size: 12px;
|
|
color: #555;
|
|
}
|
|
|
|
.meta-label {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ------------------------------
|
|
PROGRESS BOX
|
|
------------------------------ */
|
|
|
|
.progress-box {
|
|
background: #fafafa;
|
|
border: 1px solid #ddd;
|
|
padding: 18px;
|
|
border-radius: 6px;
|
|
width: 100%;
|
|
}
|
|
|
|
.progress-header h2 {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.progress-subtitle {
|
|
font-size: 14px;
|
|
color: #333;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.progress-bookid {
|
|
font-size: 12px;
|
|
color: #777;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 14px;
|
|
background: #ddd;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.progress-bar-fill {
|
|
height: 100%;
|
|
background: #1e88e5;
|
|
}
|
|
|
|
.progress-bar-fill.audio-fill {
|
|
background: #e65100;
|
|
}
|
|
|
|
.progress-stats {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
color: #444;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* ------------------------------
|
|
LOG VIEWER — LARGE FULL-WIDTH
|
|
------------------------------ */
|
|
|
|
.log-viewer {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow: hidden; /* voorkom horizontaal uitsteken */
|
|
}
|
|
|
|
.log-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.log-filters {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.log-output {
|
|
flex: 1;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
min-height: 60vh;
|
|
max-height: 75vh;
|
|
|
|
overflow-y: auto;
|
|
overflow-x: hidden; /* voorkom dat de log naar rechts uitsteekt */
|
|
|
|
background: #000000; /* Pure terminal black */
|
|
color: #00ff66; /* Matrix / retro green */
|
|
border: 1px solid #0f0; /* neon green frame */
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
|
|
font-family: "SF Mono", "Consolas", "Courier New", monospace;
|
|
font-size: 13px;
|
|
line-height: 1.35;
|
|
|
|
white-space: pre-wrap; /* wraps text */
|
|
word-break: break-word; /* lange links breken */
|
|
}
|
|
|
|
.log-line {
|
|
white-space: pre-wrap;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.log-empty {
|
|
color: #888;
|
|
font-style: italic;
|
|
}
|
|
.log-line {
|
|
color: #00ff66;
|
|
}
|
|
|
|
.log-line:has([DL]),
|
|
.log-line:has([DOWNLOAD]) {
|
|
color: #00ccff; /* cyan */
|
|
}
|
|
|
|
.log-line:has([PARSE]) {
|
|
color: #ffaa00;
|
|
} /* orange */
|
|
.log-line:has([SAVE]) {
|
|
color: #ffdd33;
|
|
}
|
|
.log-line:has([AUDIO]) {
|
|
color: #ff66ff;
|
|
} /* purple */
|
|
.log-line:has([CTRL]) {
|
|
color: #66aaff;
|
|
}
|
|
.log-line:has([ERROR]) {
|
|
color: #ff3333;
|
|
} /* red for errors */
|
|
|
|
/* ------------------------------
|
|
PLACEHOLDER
|
|
------------------------------ */
|
|
|
|
.dashboard-placeholder {
|
|
font-size: 15px;
|
|
padding: 20px;
|
|
text-align: center;
|
|
color: #777;
|
|
}
|
|
.footer {
|
|
text-align: center;
|
|
padding: 12px;
|
|
color: #666;
|
|
margin-top: 25px;
|
|
font-size: 12px;
|
|
border-top: 1px solid #ddd;
|
|
}
|