761 lines
16 KiB
CSS
761 lines
16 KiB
CSS
/* ============================================
|
|
CSS Variables
|
|
============================================= */
|
|
:root {
|
|
--bg-gradient-start: #f0f4f8;
|
|
--bg-gradient-end: #e2e8f0;
|
|
--bg-card: #ffffff;
|
|
--editor-bg: #1a1f2e;
|
|
--audio-track-bg: #242b3d;
|
|
--transcript-track-bg: #2d3548;
|
|
--track-border: #3d4558;
|
|
--pill-bg-gradient-start: #667eea;
|
|
--pill-bg-gradient-end: #764ba2;
|
|
--pill-text: #ffffff;
|
|
--accent-primary: #667eea;
|
|
--reader-bg: rgba(255, 255, 255, 0.95);
|
|
--reader-text: #1f2937;
|
|
--highlight-word: #2563eb;
|
|
--highlight-bg: #dbeafe;
|
|
--unmatched-color: #ef4444;
|
|
}
|
|
|
|
/* ============================================
|
|
Base Styles
|
|
============================================= */
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
|
|
font-family: 'Inter', sans-serif;
|
|
color: #1e293b;
|
|
min-height: 100vh;
|
|
padding: 20px 0 100px 0;
|
|
}
|
|
|
|
.main-container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* ============================================
|
|
App Header
|
|
============================================= */
|
|
.app-header {
|
|
background: linear-gradient(135deg, var(--accent-primary) 0%, var(--pill-bg-gradient-end) 100%);
|
|
color: white;
|
|
padding: 24px 32px;
|
|
border-radius: 20px;
|
|
box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
|
|
margin-bottom: 32px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.version-badge {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
padding: 8px 16px;
|
|
border-radius: 50px;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
/* ============================================
|
|
Input Card & Tabs
|
|
============================================= */
|
|
.input-card {
|
|
background: var(--bg-card);
|
|
border-radius: 20px;
|
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
|
|
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
margin-bottom: 32px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-tabs .nav-link {
|
|
color: #64748b;
|
|
font-weight: 600;
|
|
border: none;
|
|
padding: 1rem 1.5rem;
|
|
}
|
|
|
|
.nav-tabs .nav-link.active {
|
|
color: var(--accent-primary);
|
|
border-bottom: 3px solid var(--accent-primary);
|
|
background: transparent;
|
|
}
|
|
|
|
/* ============================================
|
|
Quill Editor Styles
|
|
============================================= */
|
|
#quill-editor {
|
|
height: 300px;
|
|
font-family: 'Lora', serif;
|
|
font-size: 18px;
|
|
line-height: 1.8;
|
|
color: #333;
|
|
border: none;
|
|
}
|
|
|
|
.ql-container.ql-snow {
|
|
border: none !important;
|
|
}
|
|
|
|
.ql-toolbar.ql-snow {
|
|
border: none !important;
|
|
border-bottom: 1px solid #f0f0f0 !important;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.editor-actions {
|
|
background: #fafafa;
|
|
border-top: 1px solid #eee;
|
|
padding: 15px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
/* ============================================
|
|
Bulk Editor (Notion-like)
|
|
============================================= */
|
|
.notion-editor-wrapper {
|
|
position: relative;
|
|
min-height: 500px;
|
|
background: #fff;
|
|
padding: 40px;
|
|
font-family: 'Lora', serif;
|
|
}
|
|
|
|
#bulk-editor {
|
|
outline: none;
|
|
font-size: 18px;
|
|
line-height: 1.8;
|
|
color: #333;
|
|
min-height: 60vh;
|
|
height: auto;
|
|
overflow-y: visible;
|
|
padding-bottom: 100px;
|
|
}
|
|
|
|
#bulk-editor p { margin-bottom: 1em; }
|
|
#bulk-editor h1 {
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
margin: 1em 0 0.5em;
|
|
font-family: 'Poppins', sans-serif;
|
|
}
|
|
#bulk-editor h2 {
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
margin: 1em 0 0.5em;
|
|
font-family: 'Poppins', sans-serif;
|
|
}
|
|
#bulk-editor h3 {
|
|
font-size: 1.2em;
|
|
font-weight: bold;
|
|
margin: 1em 0 0.5em;
|
|
font-family: 'Poppins', sans-serif;
|
|
}
|
|
|
|
/* ============================================
|
|
Floating Action Buttons
|
|
============================================= */
|
|
.floating-controls {
|
|
position: fixed;
|
|
top: 50%;
|
|
right: 20px;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.floating-btn {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
|
|
transition: all 0.3s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
position: relative;
|
|
}
|
|
|
|
.floating-btn:hover { transform: scale(1.1); }
|
|
.floating-btn.chapter-btn { background: linear-gradient(135deg, #FF6B6B 0%, #EE5253 100%); }
|
|
.floating-btn.section-btn { background: linear-gradient(135deg, #4834d4 0%, #686de0 100%); }
|
|
|
|
.tooltip-text {
|
|
position: absolute;
|
|
right: 70px;
|
|
background: rgba(0,0,0,0.7);
|
|
color: white;
|
|
padding: 5px 10px;
|
|
border-radius: 5px;
|
|
font-size: 12px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.floating-btn:hover .tooltip-text { opacity: 1; }
|
|
|
|
/* ============================================
|
|
Chapter/Section Markers
|
|
============================================= */
|
|
.editor-marker {
|
|
padding: 15px;
|
|
margin: 20px 0;
|
|
border-radius: 10px;
|
|
user-select: none;
|
|
cursor: default;
|
|
position: relative;
|
|
border: 1px solid rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.chapter-marker {
|
|
background: #fff0f0;
|
|
border-left: 5px solid #FF6B6B;
|
|
}
|
|
|
|
.section-marker {
|
|
background: #f0f0ff;
|
|
border-left: 5px solid #4834d4;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.marker-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.marker-title {
|
|
font-family: 'Poppins', sans-serif;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.chapter-marker .marker-title { color: #d63031; }
|
|
.section-marker .marker-title { color: #4834d4; }
|
|
|
|
.marker-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* ============================================
|
|
Audio Control Panel
|
|
============================================= */
|
|
.control-panel {
|
|
background: var(--bg-card);
|
|
border-radius: 16px;
|
|
padding: 15px 25px;
|
|
margin-bottom: 24px;
|
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
|
|
display: flex;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* ============================================
|
|
Timeline/Waveform Editor
|
|
============================================= */
|
|
.timeline-wrapper {
|
|
background-color: var(--editor-bg);
|
|
border-radius: 20px;
|
|
position: relative;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
|
|
overflow-x: scroll;
|
|
overflow-y: hidden;
|
|
margin-bottom: 40px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.timeline-wrapper::-webkit-scrollbar {
|
|
height: 12px;
|
|
background: #1a1f2e;
|
|
}
|
|
|
|
.timeline-wrapper::-webkit-scrollbar-thumb {
|
|
background: #4b5563;
|
|
border-radius: 10px;
|
|
border: 2px solid #1a1f2e;
|
|
}
|
|
|
|
.timeline-content {
|
|
position: relative;
|
|
min-width: 100%;
|
|
}
|
|
|
|
#timeline-ruler {
|
|
height: 25px;
|
|
background: #1a1f2e;
|
|
border-bottom: 1px solid var(--track-border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 50;
|
|
}
|
|
|
|
.audio-track-container {
|
|
background: var(--audio-track-bg);
|
|
border-bottom: 3px solid var(--track-border);
|
|
height: 120px;
|
|
padding: 10px 0;
|
|
position: relative;
|
|
}
|
|
|
|
.transcription-track-container {
|
|
background: var(--transcript-track-bg);
|
|
height: 120px;
|
|
padding: 10px 0;
|
|
position: relative;
|
|
}
|
|
|
|
.track-label {
|
|
position: absolute;
|
|
left: 20px;
|
|
top: 10px;
|
|
font-size: 10px;
|
|
font-weight: 800;
|
|
letter-spacing: 2px;
|
|
text-transform: uppercase;
|
|
color: rgba(255,255,255,0.5);
|
|
background: rgba(0,0,0,0.3);
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
z-index: 100;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ============================================
|
|
Playhead
|
|
============================================= */
|
|
#custom-playhead {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 2px;
|
|
background-color: #ef4444;
|
|
z-index: 300;
|
|
left: 0;
|
|
cursor: ew-resize;
|
|
pointer-events: all;
|
|
}
|
|
|
|
#custom-playhead::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -6px;
|
|
border-left: 7px solid transparent;
|
|
border-right: 7px solid transparent;
|
|
border-top: 10px solid #ef4444;
|
|
}
|
|
|
|
/* ============================================
|
|
Word Pills (Transcription)
|
|
============================================= */
|
|
.word-pill {
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, var(--pill-bg-gradient-start) 0%, var(--pill-bg-gradient-end) 100%);
|
|
color: var(--pill-text);
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: grab;
|
|
border: 1px solid rgba(255,255,255,0.2);
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
user-select: none;
|
|
z-index: 200;
|
|
padding: 0 5px;
|
|
}
|
|
|
|
.word-pill.selected {
|
|
border-color: #fcd34d;
|
|
box-shadow: 0 0 0 2px rgba(252, 211, 77, 0.4);
|
|
z-index: 210;
|
|
}
|
|
|
|
.resize-handle {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 5px;
|
|
cursor: ew-resize;
|
|
z-index: 220;
|
|
}
|
|
|
|
.resize-handle-left { left: 0; }
|
|
.resize-handle-right { right: 0; }
|
|
|
|
/* ============================================
|
|
Interactive Reader
|
|
============================================= */
|
|
.reader-section {
|
|
background-color: var(--reader-bg);
|
|
backdrop-filter: blur(12px);
|
|
border-radius: 1rem;
|
|
padding: 3rem 4rem;
|
|
box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
margin-top: 40px;
|
|
animation: fadeIn 0.5s ease-in-out;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.reader-header {
|
|
font-family: "Poppins", sans-serif;
|
|
font-weight: 700;
|
|
font-size: 1.5rem;
|
|
color: #111827;
|
|
margin-bottom: 1rem;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
padding-bottom: 1rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.story-text-container {
|
|
font-family: "Lora", serif;
|
|
font-size: 24px;
|
|
line-height: 2.1;
|
|
color: var(--reader-text);
|
|
cursor: text;
|
|
}
|
|
|
|
.story-text-container h1,
|
|
.story-text-container h2 {
|
|
font-family: "Poppins", sans-serif;
|
|
margin-top: 1.5em;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.story-text-container p { margin-bottom: 1.2em; }
|
|
|
|
/* ============================================
|
|
Word Highlighting
|
|
============================================= */
|
|
.word {
|
|
transition: background-color 0.15s;
|
|
border-radius: 3px;
|
|
padding: 2px 0;
|
|
display: inline;
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.word:hover { background-color: #f1f5f9; }
|
|
|
|
.show-mismatches .word.unmatched {
|
|
color: var(--unmatched-color);
|
|
text-decoration: underline wavy var(--unmatched-color);
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.current-word {
|
|
color: var(--highlight-word);
|
|
text-decoration: underline;
|
|
text-decoration-thickness: 3px;
|
|
text-underline-offset: 3px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.current-sentence-bg {
|
|
background-color: var(--highlight-bg);
|
|
box-decoration-break: clone;
|
|
-webkit-box-decoration-break: clone;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
/* ============================================
|
|
Loading Overlay
|
|
============================================= */
|
|
.loading-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(255,255,255,0.9);
|
|
z-index: 9999;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
/* ============================================
|
|
Library Modal Items
|
|
============================================= */
|
|
.library-item {
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
padding: 15px;
|
|
margin-bottom: 10px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.library-item:hover {
|
|
background: #f1f5f9;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.library-item-info { flex: 1; }
|
|
.library-item-title {
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin-bottom: 4px;
|
|
}
|
|
.library-item-meta {
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
}
|
|
.library-item-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* ============================================
|
|
Database Stats
|
|
============================================= */
|
|
.db-stats {
|
|
background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
|
|
border-radius: 12px;
|
|
padding: 15px 20px;
|
|
display: flex;
|
|
gap: 30px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.stat-item { text-align: center; }
|
|
.stat-value {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--accent-primary);
|
|
}
|
|
.stat-label {
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
/* ============================================
|
|
Animations
|
|
============================================= */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
Image Upload Styles for Section Markers
|
|
============================================= */
|
|
.section-image-container {
|
|
margin: 10px 0;
|
|
padding: 10px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
border: 2px dashed #dee2e6;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.section-image-container.drag-over {
|
|
border-color: #667eea;
|
|
background: #f0f4ff;
|
|
}
|
|
|
|
.section-image-container.has-image {
|
|
border-style: solid;
|
|
border-color: #28a745;
|
|
background: #f8fff8;
|
|
}
|
|
|
|
.image-drop-zone {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 80px;
|
|
cursor: pointer;
|
|
color: #6c757d;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.image-drop-zone i {
|
|
font-size: 24px;
|
|
margin-bottom: 8px;
|
|
color: #adb5bd;
|
|
}
|
|
|
|
.image-drop-zone:hover {
|
|
color: #495057;
|
|
}
|
|
|
|
.image-drop-zone:hover i {
|
|
color: #667eea;
|
|
}
|
|
|
|
.image-preview-wrapper {
|
|
position: relative;
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.section-image-preview {
|
|
max-width: 200px;
|
|
max-height: 150px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
object-fit: contain;
|
|
}
|
|
|
|
.image-actions {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
display: flex;
|
|
gap: 5px;
|
|
}
|
|
|
|
.image-actions button {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: rgba(255,255,255,0.9);
|
|
color: #333;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.image-actions button:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.image-actions .btn-remove:hover {
|
|
background: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.image-info {
|
|
font-size: 11px;
|
|
color: #6c757d;
|
|
margin-top: 5px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Hidden file input */
|
|
.image-file-input {
|
|
display: none;
|
|
}
|
|
|
|
/* Save Button Styles */
|
|
.save-project-btn {
|
|
background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
|
|
border: none;
|
|
color: white;
|
|
font-weight: bold;
|
|
padding: 8px 20px;
|
|
border-radius: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.save-project-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
|
|
color: white;
|
|
}
|
|
|
|
.save-project-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Section marker with image indicator */
|
|
.section-marker.has-image .marker-title::after {
|
|
content: '🖼️';
|
|
margin-left: 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Image in editor content area */
|
|
.section-content-image {
|
|
display: block;
|
|
max-width: 300px;
|
|
max-height: 200px;
|
|
margin: 10px 0;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* ============================================
|
|
User Menu Styles
|
|
============================================= */
|
|
.dropdown-menu {
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
|
|
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
padding: 8px;
|
|
}
|
|
|
|
.dropdown-item {
|
|
border-radius: 8px;
|
|
padding: 10px 16px;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background: linear-gradient(135deg, var(--accent-primary) 0%, var(--pill-bg-gradient-end) 100%);
|
|
color: white;
|
|
}
|
|
|
|
.dropdown-item i {
|
|
width: 20px;
|
|
}
|
|
|
|
.dropdown-divider {
|
|
margin: 8px 0;
|
|
}
|