Files
Ashim Kumar 8e02b9ad09 first commit
2026-02-20 13:53:36 +06:00

1269 lines
24 KiB
CSS

/* ============================================
Audiobook Maker Pro v3.1 - Main Styles
UPDATED: Archive button visibility, dynamic help button, no hint bar
============================================= */
:root {
--primary-color: #4f46e5;
--primary-hover: #4338ca;
--secondary-color: #64748b;
--success-color: #10b981;
--danger-color: #ef4444;
--warning-color: #f59e0b;
--bg-primary: #f8fafc;
--bg-secondary: #ffffff;
--bg-tertiary: #f1f5f9;
--text-primary: #1e293b;
--text-secondary: #64748b;
--text-muted: #94a3b8;
--border-color: #e2e8f0;
--border-radius: 12px;
--border-radius-sm: 8px;
--border-radius-lg: 16px;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
--font-serif: 'Merriweather', Georgia, serif;
--font-mono: 'JetBrains Mono', monospace;
}
* {
box-sizing: border-box;
}
body {
font-family: var(--font-sans);
background-color: var(--bg-primary);
color: var(--text-primary);
margin: 0;
padding: 0;
min-height: 100vh;
}
/* ============================================
Welcome Overlay
============================================= */
.welcome-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(8px);
display: flex;
justify-content: center;
align-items: center;
z-index: 10000;
animation: fadeIn 0.3s ease;
overflow-y: auto;
padding: 24px;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.welcome-card {
background: white;
border-radius: 20px;
padding: 40px 48px;
max-width: 900px;
width: 95%;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
text-align: center;
animation: scaleIn 0.3s ease;
}
@keyframes scaleIn {
from { transform: scale(0.9); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.welcome-header i {
font-size: 3rem;
color: var(--primary-color);
margin-bottom: 12px;
display: block;
}
.welcome-header h2 {
font-size: 1.75rem;
font-weight: 700;
margin-bottom: 8px;
}
.welcome-header p {
color: var(--text-secondary);
font-size: 1.05rem;
margin-bottom: 32px;
}
.welcome-steps {
display: flex;
align-items: flex-start;
justify-content: center;
gap: 16px;
margin-bottom: 36px;
}
.welcome-step {
flex: 1;
max-width: 260px;
text-align: center;
}
.welcome-step-number {
display: inline-block;
padding: 4px 14px;
border-radius: 20px;
background: var(--primary-color);
color: white;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.5px;
text-transform: uppercase;
margin-bottom: 10px;
}
.welcome-step-icon {
width: 56px;
height: 56px;
border-radius: 16px;
background: linear-gradient(135deg, #ede9fe, #e0e7ff);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 12px;
font-size: 1.5rem;
color: var(--primary-color);
}
.welcome-step h4 {
font-size: 1rem;
font-weight: 700;
margin-bottom: 8px;
color: var(--text-primary);
}
.welcome-step-details {
text-align: left;
}
.welcome-step-details p {
font-size: 0.78rem;
color: var(--text-secondary);
line-height: 1.5;
margin: 0 0 8px 0;
}
.welcome-step-details p:last-child {
margin-bottom: 0;
}
.welcome-step-alt {
margin-top: 6px;
padding-top: 6px;
border-top: 1px dashed var(--border-color);
}
.welcome-alt-label {
display: block;
font-size: 0.68rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 600;
margin-bottom: 4px;
text-align: center;
}
.welcome-ui-btn {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 2px 8px;
border-radius: 4px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
font-size: 0.72rem;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
vertical-align: middle;
}
.welcome-ui-btn i {
font-size: 0.7rem;
}
.welcome-ui-btn.success-btn {
background: #d1fae5;
border-color: #6ee7b7;
color: #065f46;
}
.welcome-ui-btn.primary-btn {
background: #e0e7ff;
border-color: #a5b4fc;
color: #3730a3;
}
.welcome-ui-dot {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
border-radius: 50%;
font-size: 0.6rem;
vertical-align: middle;
color: white;
}
.welcome-ui-dot.chapter-dot {
background: #f59e0b;
}
.welcome-step-arrow {
display: flex;
align-items: center;
padding-top: 70px;
color: var(--text-muted);
font-size: 1.2rem;
flex-shrink: 0;
}
.welcome-actions {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.welcome-dismiss-label {
font-size: 0.82rem;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
}
@media (max-width: 768px) {
.welcome-steps {
flex-direction: column;
align-items: center;
}
.welcome-step {
max-width: 100%;
}
.welcome-step-details {
text-align: center;
}
.welcome-step-arrow {
transform: rotate(90deg);
padding: 8px 0;
}
.welcome-card {
padding: 28px 20px;
}
}
/* ============================================
Floating Guide Panel (Draggable)
============================================= */
.floating-guide-panel {
position: fixed;
top: 100px;
right: 24px;
width: 340px;
max-height: calc(100vh - 120px);
background: white;
border-radius: 16px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.04);
z-index: 9000;
display: none;
flex-direction: column;
overflow: hidden;
animation: guideSlideIn 0.3s ease;
user-select: none;
}
.floating-guide-panel.visible {
display: flex;
}
@keyframes guideSlideIn {
from { opacity: 0; transform: translateY(-12px) scale(0.96); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.guide-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
color: white;
cursor: grab;
flex-shrink: 0;
}
.guide-panel-header:active {
cursor: grabbing;
}
.guide-panel-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.88rem;
font-weight: 700;
letter-spacing: 0.3px;
}
.guide-panel-title i {
font-size: 1rem;
}
.guide-panel-controls {
display: flex;
gap: 4px;
}
.guide-panel-btn {
width: 28px;
height: 28px;
border: none;
background: rgba(255,255,255,0.15);
color: white;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background 0.2s;
font-size: 0.75rem;
}
.guide-panel-btn:hover {
background: rgba(255,255,255,0.3);
}
.guide-panel-body {
padding: 16px;
overflow-y: auto;
flex: 1;
}
.floating-guide-panel.collapsed .guide-panel-body {
display: none;
}
.guide-section {
margin-bottom: 16px;
}
.guide-section:last-of-type {
margin-bottom: 12px;
}
.guide-section-badge {
display: inline-block;
padding: 3px 10px;
border-radius: 12px;
background: linear-gradient(135deg, #ede9fe, #e0e7ff);
color: var(--primary-color);
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 10px;
}
.guide-section-badge.step3-badge {
background: linear-gradient(135deg, #d1fae5, #a7f3d0);
color: #065f46;
}
.guide-instruction {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 8px 0;
border-bottom: 1px solid #f1f5f9;
}
.guide-instruction:last-child {
border-bottom: none;
}
.guide-step-num {
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--bg-tertiary);
color: var(--text-secondary);
font-size: 0.68rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 1px;
}
.guide-instruction-text {
font-size: 0.8rem;
line-height: 1.55;
color: var(--text-secondary);
}
.guide-instruction-text strong {
color: var(--text-primary);
}
.guide-ui {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 2px 7px;
border-radius: 5px;
font-size: 0.68rem;
font-weight: 600;
white-space: nowrap;
vertical-align: middle;
line-height: 1;
}
.guide-ui i {
font-size: 0.62rem;
}
.chapter-marker-ui {
background: #fef3c7;
border: 1.5px solid #f59e0b;
color: #92400e;
border-radius: 50%;
width: 22px;
height: 22px;
padding: 0;
justify-content: center;
}
.chapter-marker-ui i {
font-size: 0.7rem;
}
.voice-dropdown-ui {
background: #f8fafc;
border: 1.5px solid var(--border-color);
color: var(--text-primary);
border-radius: 5px;
gap: 2px;
}
.generate-btn-ui {
background: #d1fae5;
border: 1.5px solid #6ee7b7;
color: #065f46;
border-radius: 5px;
}
.image-btn-ui {
background: #cffafe;
border: 1.5px solid #06b6d4;
color: #0e7490;
border-radius: 50%;
width: 22px;
height: 22px;
padding: 0;
justify-content: center;
}
.image-btn-ui i {
font-size: 0.7rem;
}
.add-block-btn-ui {
background: #e0e7ff;
border: 1.5px solid var(--primary-color);
color: var(--primary-color);
border-radius: 50%;
width: 22px;
height: 22px;
padding: 0;
justify-content: center;
}
.add-block-btn-ui i {
font-size: 0.7rem;
}
.reader-tab-ui {
background: #f8fafc;
border: 1.5px solid var(--border-color);
color: var(--text-primary);
border-radius: 5px;
}
.export-btn-ui {
background: #e0e7ff;
border: 1.5px solid #a5b4fc;
color: #3730a3;
border-radius: 5px;
}
.guide-panel-footer {
padding-top: 10px;
border-top: 1px solid var(--border-color);
text-align: center;
}
.guide-dont-show {
font-size: 0.75rem;
color: var(--text-muted);
display: inline-flex;
align-items: center;
gap: 5px;
cursor: pointer;
}
.guide-dont-show input {
margin: 0;
}
.floating-guide-toggle {
position: fixed;
bottom: 24px;
right: 24px;
width: 48px;
height: 48px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
color: white;
border: none;
box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
display: none;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 8999;
transition: transform 0.2s, box-shadow 0.2s;
font-size: 1.2rem;
}
.floating-guide-toggle:hover {
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}
.floating-guide-toggle.visible {
display: flex;
}
@media (max-width: 768px) {
.floating-guide-panel {
width: calc(100vw - 32px);
right: 16px;
left: 16px;
top: auto;
bottom: 72px;
max-height: 60vh;
}
.floating-guide-toggle {
bottom: 16px;
right: 16px;
}
}
/* ============================================
Workflow Progress Bar
============================================= */
.workflow-progress {
display: flex;
align-items: center;
justify-content: center;
gap: 0;
padding: 12px 24px;
background: white;
border-bottom: 1px solid var(--border-color);
}
.workflow-step {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 16px;
border-radius: 20px;
font-size: 0.82rem;
font-weight: 600;
color: var(--text-muted);
transition: all 0.3s;
}
.workflow-step-dot {
width: 24px;
height: 24px;
border-radius: 50%;
background: var(--bg-tertiary);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.7rem;
font-weight: 700;
color: var(--text-muted);
transition: all 0.3s;
}
.workflow-step.active {
color: var(--primary-color);
background: #ede9fe;
}
.workflow-step.active .workflow-step-dot {
background: var(--primary-color);
color: white;
}
.workflow-step.completed {
color: var(--success-color);
}
.workflow-step.completed .workflow-step-dot {
background: var(--success-color);
color: white;
font-size: 0.75rem;
}
.workflow-connector {
width: 40px;
height: 2px;
background: var(--border-color);
transition: background 0.3s;
}
.workflow-connector.active {
background: var(--success-color);
}
/* ============================================
Reader Tab Badge
============================================= */
.reader-tab-badge {
background: var(--success-color);
color: white;
font-size: 0.65rem;
font-weight: 700;
padding: 2px 8px;
border-radius: 10px;
margin-left: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
/* ============================================
Loading Overlay
============================================= */
.loading-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(255, 255, 255, 0.95);
display: none;
justify-content: center;
align-items: center;
z-index: 9999;
flex-direction: column;
}
.loading-overlay.active {
display: flex;
}
.loading-content {
text-align: center;
}
.loading-content .spinner-border {
width: 3rem;
height: 3rem;
margin-bottom: 1rem;
}
/* ============================================
App Container & Header
============================================= */
.app-container {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.app-header {
background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
color: white;
padding: 16px 24px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: var(--shadow-md);
}
.app-title {
font-size: 1.5rem;
font-weight: 700;
margin: 0;
display: flex;
align-items: center;
gap: 10px;
}
.app-title i {
font-size: 1.75rem;
}
.version-badge {
background: rgba(255, 255, 255, 0.2);
padding: 4px 10px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
}
.project-controls {
display: flex;
align-items: center;
gap: 12px;
}
.project-name-input {
width: 200px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
border-radius: var(--border-radius-sm);
}
.project-name-input::placeholder {
color: rgba(255, 255, 255, 0.7);
}
.project-name-input:focus {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.5);
color: white;
box-shadow: none;
}
/* ============================================
Header Button Overrides
============================================= */
/* Archive button — visible on purple header */
.btn-header-archive {
background: rgba(255, 255, 255, 0.12);
border: 1.5px solid rgba(255, 255, 255, 0.45);
color: white;
font-weight: 500;
padding: 8px 16px;
border-radius: var(--border-radius-sm);
transition: all 0.2s;
}
.btn-header-archive:hover {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.7);
color: white;
}
.btn-header-archive:active {
background: rgba(255, 255, 255, 0.3);
color: white;
}
/* Help button — pill style, visible on purple header */
.btn-header-help {
background: rgba(255, 255, 255, 0.12);
border: 1.5px solid rgba(255, 255, 255, 0.45);
color: white;
font-weight: 600;
font-size: 0.78rem;
padding: 6px 14px;
border-radius: 20px;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 2px;
}
.btn-header-help:hover {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.7);
color: white;
}
.btn-header-help:active {
background: rgba(255, 255, 255, 0.3);
color: white;
}
.btn-header-help i {
font-size: 0.9rem;
}
/* User menu button */
.btn-header-user {
background: rgba(255, 255, 255, 0.12);
border: 1.5px solid rgba(255, 255, 255, 0.45);
color: white;
font-weight: 600;
font-size: 0.82rem;
padding: 6px 14px;
border-radius: 20px;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 4px;
}
.btn-header-user:hover,
.btn-header-user:focus,
.btn-header-user.show {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.7);
color: white;
}
.btn-header-user::after {
margin-left: 4px;
}
/* ============================================
Main Content Area
============================================= */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
padding: 24px;
}
.main-tabs {
border-bottom: 2px solid var(--border-color);
margin-bottom: 0;
}
.main-tabs .nav-link {
color: var(--text-secondary);
font-weight: 600;
padding: 12px 24px;
border: none;
border-bottom: 3px solid transparent;
margin-bottom: -2px;
transition: all 0.2s;
}
.main-tabs .nav-link:hover {
color: var(--primary-color);
border-color: transparent;
}
.main-tabs .nav-link.active {
color: var(--primary-color);
background: transparent;
border-color: var(--primary-color);
}
.tab-content {
flex: 1;
background: var(--bg-secondary);
border-radius: 0 0 var(--border-radius) var(--border-radius);
box-shadow: var(--shadow-sm);
}
.tab-pane {
padding: 24px;
}
/* ============================================
Two-Pathway Upload Layout
============================================= */
.upload-section {
margin-bottom: 24px;
}
.upload-zone-wrapper {
display: flex;
gap: 0;
align-items: stretch;
min-height: 380px;
border: 2px dashed var(--border-color);
border-radius: var(--border-radius-lg);
overflow: hidden;
background: var(--bg-tertiary);
transition: border-color 0.3s;
}
.upload-zone,
.scratch-zone {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 48px 32px;
cursor: pointer;
transition: all 0.3s;
border: none;
border-radius: 0;
background: transparent;
text-align: center;
}
.upload-zone:hover,
.upload-zone.drag-over {
background: rgba(79, 70, 229, 0.04);
}
.scratch-zone:hover {
background: rgba(79, 70, 229, 0.04);
}
.upload-content,
.scratch-content {
max-width: 340px;
}
.upload-icon,
.scratch-icon {
font-size: 3.5rem;
color: var(--text-muted);
margin-bottom: 16px;
display: block;
transition: color 0.3s, transform 0.3s;
}
.upload-zone:hover .upload-icon,
.scratch-zone:hover .scratch-icon {
color: var(--primary-color);
transform: translateY(-4px);
}
.upload-zone h4,
.scratch-zone h4 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 8px;
color: var(--text-primary);
}
.upload-hint-text {
margin-top: 16px;
font-size: 0.8rem;
color: var(--text-muted);
}
.upload-hint-text i {
color: var(--primary-color);
}
.pathway-divider {
display: flex;
align-items: center;
justify-content: center;
width: 56px;
flex-shrink: 0;
position: relative;
background: transparent;
}
.pathway-divider::before {
content: '';
position: absolute;
top: 15%;
bottom: 15%;
left: 50%;
width: 1px;
background: var(--border-color);
transform: translateX(-50%);
}
.pathway-divider span {
position: relative;
z-index: 1;
background: var(--bg-tertiary);
padding: 10px 6px;
color: var(--text-muted);
font-size: 0.85rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* ============================================
Editor Section
============================================= */
.editor-section {
flex: 1;
min-height: 500px;
}
.editor-container {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
min-height: 500px;
padding: 24px 48px;
position: relative;
max-width: 900px;
margin: 0 auto;
}
.empty-editor-message {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: var(--text-muted);
}
.empty-editor-message i {
font-size: 4rem;
margin-bottom: 16px;
display: block;
}
/* ============================================
Reader Section
============================================= */
.reader-container {
min-height: 500px;
font-family: var(--font-serif);
font-size: 1.125rem;
line-height: 1.8;
max-width: 800px;
margin: 0 auto;
padding: 0 24px;
}
.reader-empty-state {
text-align: center;
padding: 80px;
color: var(--text-muted);
}
.reader-empty-state i {
font-size: 4rem;
margin-bottom: 16px;
display: block;
}
/* ============================================
Buttons
============================================= */
.btn {
font-weight: 500;
padding: 8px 16px;
border-radius: var(--border-radius-sm);
transition: all 0.2s;
}
.btn-primary {
background: var(--primary-color);
border-color: var(--primary-color);
}
.btn-primary:hover {
background: var(--primary-hover);
border-color: var(--primary-hover);
}
.btn-success {
background: var(--success-color);
border-color: var(--success-color);
}
.btn-danger {
background: var(--danger-color);
border-color: var(--danger-color);
}
/* ============================================
Modals
============================================= */
.modal-content {
border: none;
border-radius: var(--border-radius);
box-shadow: var(--shadow-lg);
}
.modal-header {
border-bottom: 1px solid var(--border-color);
padding: 20px 24px;
}
.modal-body {
padding: 24px;
}
.modal-footer {
border-top: 1px solid var(--border-color);
padding: 16px 24px;
}
/* ============================================
Project List in Archive
============================================= */
.project-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
border: 1px solid var(--border-color);
border-radius: var(--border-radius-sm);
margin-bottom: 12px;
transition: all 0.2s;
}
.project-item:hover {
border-color: var(--primary-color);
background: var(--bg-tertiary);
}
.project-info h6 {
margin: 0 0 4px 0;
font-weight: 600;
}
.project-meta {
font-size: 0.875rem;
color: var(--text-muted);
}
.project-actions {
display: flex;
gap: 8px;
}
/* ============================================
Responsive
============================================= */
@media (max-width: 768px) {
.app-header {
flex-direction: column;
gap: 16px;
}
.project-controls {
width: 100%;
flex-wrap: wrap;
}
.project-name-input {
width: 100%;
}
.main-content {
padding: 16px;
}
.tab-pane {
padding: 16px;
}
.editor-container {
padding: 16px 24px;
}
.welcome-steps {
flex-direction: column;
align-items: center;
}
.welcome-step-arrow {
transform: rotate(90deg);
padding: 8px 0;
}
.welcome-card {
padding: 32px 24px;
}
.workflow-progress {
padding: 8px 12px;
gap: 0;
}
.workflow-step span {
display: none;
}
.workflow-connector {
width: 24px;
}
/* Two-pathway stacks vertically on mobile */
.upload-zone-wrapper {
flex-direction: column;
min-height: auto;
}
.upload-zone,
.scratch-zone {
padding: 32px 24px;
}
.pathway-divider {
width: 100%;
height: 56px;
flex-direction: row;
}
.pathway-divider::before {
top: 50%;
bottom: auto;
left: 15%;
right: 15%;
width: auto;
height: 1px;
transform: translateY(-50%);
}
/* Header help button - compact on mobile */
.btn-header-help #headerHelpLabel {
display: none;
}
.btn-header-help {
padding: 6px 10px;
}
}