1127 lines
24 KiB
CSS
1127 lines
24 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 - Base Styles
|
|
============================================= */
|
|
.editor-marker {
|
|
padding: 12px 16px;
|
|
margin: 20px 0;
|
|
border-radius: 12px;
|
|
user-select: none;
|
|
cursor: default;
|
|
position: relative;
|
|
border: 1px solid rgba(0,0,0,0.08);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.chapter-marker {
|
|
background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
|
|
border-left: 4px solid #FF6B6B;
|
|
}
|
|
|
|
.section-marker {
|
|
background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
|
|
border-left: 4px solid #4834d4;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
/* ============================================
|
|
Section Marker Toolbar Styles
|
|
============================================= */
|
|
.editor-marker .marker-header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.editor-marker .marker-controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex: 1;
|
|
}
|
|
|
|
.editor-marker .marker-title {
|
|
font-family: 'Poppins', sans-serif;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
font-size: 12px;
|
|
min-width: 65px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.chapter-marker .marker-title {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.section-marker .marker-title {
|
|
color: #5b21b6;
|
|
}
|
|
|
|
/* Toolbar Groups */
|
|
.toolbar-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 10px;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.toolbar-group-label {
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
color: #9ca3af;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-right: 6px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Toolbar Buttons */
|
|
.toolbar-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid #e5e7eb;
|
|
background: white;
|
|
border-radius: 6px;
|
|
color: #4b5563;
|
|
font-size: 14px;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toolbar-btn:hover {
|
|
background: #f9fafb;
|
|
border-color: #d1d5db;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.toolbar-btn:active {
|
|
background: #f3f4f6;
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.toolbar-btn.dropdown-toggle {
|
|
width: auto;
|
|
padding: 0 10px;
|
|
gap: 4px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.toolbar-btn.dropdown-toggle::after {
|
|
font-size: 8px;
|
|
margin-left: 2px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Dropdown Menus in Toolbar */
|
|
.editor-marker .dropdown-menu {
|
|
border-radius: 10px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
|
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
padding: 6px;
|
|
min-width: 170px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.editor-marker .dropdown-item {
|
|
border-radius: 6px;
|
|
padding: 9px 12px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
transition: all 0.15s ease;
|
|
color: #374151;
|
|
}
|
|
|
|
.editor-marker .dropdown-item:hover {
|
|
background: linear-gradient(135deg, var(--accent-primary) 0%, var(--pill-bg-gradient-end) 100%);
|
|
color: white;
|
|
}
|
|
|
|
.editor-marker .dropdown-item i {
|
|
width: 20px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Voice Select */
|
|
.voice-select {
|
|
min-width: 140px;
|
|
max-width: 160px;
|
|
height: 32px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
border-radius: 6px;
|
|
border: 1px solid #e5e7eb;
|
|
padding: 0 8px;
|
|
background: white;
|
|
color: #374151;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.voice-select:focus {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
|
|
outline: none;
|
|
}
|
|
|
|
/* Number Input */
|
|
.marker-number-input {
|
|
width: 50px !important;
|
|
height: 32px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
border-radius: 0 6px 6px 0 !important;
|
|
border: 1px solid #e5e7eb;
|
|
border-left: none;
|
|
}
|
|
|
|
.marker-number-input:focus {
|
|
border-color: var(--accent-primary);
|
|
box-shadow: none;
|
|
outline: none;
|
|
}
|
|
|
|
.marker-number-group {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.marker-number-group .input-group-text {
|
|
height: 32px;
|
|
padding: 0 10px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
background: #f9fafb;
|
|
border: 1px solid #e5e7eb;
|
|
border-right: none;
|
|
border-radius: 6px 0 0 6px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
/* Action Buttons */
|
|
.toolbar-action-btn {
|
|
height: 32px;
|
|
padding: 0 14px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
white-space: nowrap;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|
|
|
|
.toolbar-action-btn i {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.toolbar-action-btn.btn-primary {
|
|
background: linear-gradient(135deg, var(--accent-primary) 0%, var(--pill-bg-gradient-end) 100%);
|
|
border: none;
|
|
color: white;
|
|
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.toolbar-action-btn.btn-primary:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
|
}
|
|
|
|
.toolbar-action-btn.btn-danger {
|
|
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
|
border: none;
|
|
color: white;
|
|
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.toolbar-action-btn.btn-danger:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
|
|
}
|
|
|
|
.toolbar-action-btn.btn-outline-danger {
|
|
border: 1px solid #fca5a5;
|
|
color: #dc2626;
|
|
background: white;
|
|
}
|
|
|
|
.toolbar-action-btn.btn-outline-danger:hover {
|
|
background: #fef2f2;
|
|
border-color: #f87171;
|
|
}
|
|
|
|
/* Image Button */
|
|
.toolbar-btn.image-btn {
|
|
color: #059669;
|
|
border-color: #a7f3d0;
|
|
background: #ecfdf5;
|
|
}
|
|
|
|
.toolbar-btn.image-btn:hover {
|
|
background: #d1fae5;
|
|
border-color: #6ee7b7;
|
|
color: #047857;
|
|
}
|
|
|
|
/* TTS Button */
|
|
.toolbar-btn.tts-btn {
|
|
width: auto;
|
|
padding: 0 10px;
|
|
gap: 4px;
|
|
color: #7c3aed;
|
|
border-color: #ddd6fe;
|
|
background: #f5f3ff;
|
|
font-weight: 700;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.toolbar-btn.tts-btn:hover {
|
|
background: #ede9fe;
|
|
border-color: #c4b5fd;
|
|
color: #6d28d9;
|
|
}
|
|
|
|
/* Divider */
|
|
.toolbar-divider {
|
|
width: 1px;
|
|
height: 24px;
|
|
background: #e5e7eb;
|
|
margin: 0 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ============================================
|
|
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: 12px 0 0 0;
|
|
padding: 12px;
|
|
background: rgba(255, 255, 255, 0.6);
|
|
border-radius: 10px;
|
|
border: 2px dashed #d1d5db;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.section-image-container.drag-over {
|
|
border-color: var(--accent-primary);
|
|
background: rgba(102, 126, 234, 0.05);
|
|
}
|
|
|
|
.section-image-container.has-image {
|
|
border-style: solid;
|
|
border-color: #10b981;
|
|
background: rgba(16, 185, 129, 0.05);
|
|
}
|
|
|
|
.image-drop-zone {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 70px;
|
|
cursor: pointer;
|
|
color: #9ca3af;
|
|
font-size: 13px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.image-drop-zone i {
|
|
font-size: 22px;
|
|
margin-bottom: 6px;
|
|
color: #d1d5db;
|
|
}
|
|
|
|
.image-drop-zone:hover {
|
|
color: #6b7280;
|
|
}
|
|
|
|
.image-drop-zone:hover i {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.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: #6b7280;
|
|
margin-top: 6px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Hidden file input */
|
|
.image-file-input {
|
|
display: none;
|
|
}
|
|
|
|
/* Save Button Styles */
|
|
.save-project-btn {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 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(16, 185, 129, 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;
|
|
}
|
|
|
|
/* ============================================
|
|
Responsive Adjustments for Toolbar
|
|
============================================= */
|
|
@media (max-width: 1400px) {
|
|
.editor-marker .marker-controls {
|
|
gap: 8px;
|
|
}
|
|
|
|
.toolbar-group {
|
|
padding: 3px 8px;
|
|
}
|
|
|
|
.toolbar-group-label {
|
|
display: none;
|
|
}
|
|
|
|
.voice-select {
|
|
min-width: 120px;
|
|
max-width: 140px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.toolbar-btn {
|
|
width: 30px;
|
|
height: 30px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.toolbar-action-btn {
|
|
height: 30px;
|
|
padding: 0 12px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.voice-select {
|
|
height: 30px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.marker-number-input {
|
|
height: 30px;
|
|
}
|
|
|
|
.marker-number-group .input-group-text {
|
|
height: 30px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.editor-marker .marker-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.editor-marker .marker-controls {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.section-marker {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.toolbar-group {
|
|
padding: 3px 6px;
|
|
}
|
|
|
|
.toolbar-divider {
|
|
display: none;
|
|
}
|
|
|
|
.editor-marker .marker-controls {
|
|
gap: 6px;
|
|
}
|
|
|
|
.toolbar-action-btn span {
|
|
display: none;
|
|
}
|
|
|
|
.toolbar-action-btn {
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.voice-select {
|
|
min-width: 100px;
|
|
max-width: 120px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 576px) {
|
|
.toolbar-group {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.editor-marker {
|
|
padding: 10px 12px;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.section-marker {
|
|
margin-left: 5px;
|
|
}
|
|
}
|