chahuadev's picture
Upload 51 files
f462b1c verified
/* ══════════════════════════════════════════════════════════════════════════════
Chahua Video Builder - Main Stylesheet
Professional Edition - Clean and Modern Design
══════════════════════════════════════════════════════════════════════════════
Company: Chahua Development Co., Ltd.
Version: 1.0.0
License: MIT
══════════════════════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════════════════
CSS Variables (Design Tokens)
════════════════════════════════════════════════════════════════════════════ */
:root {
/* Primary Colors - Dark Blue Theme */
--accent-color: #3b82f6;
--color-primary: #3b82f6;
--color-secondary: #06b6d4;
/* Background Colors */
--color-background: #0a1628;
--color-surface: #132337;
--color-surface-hover: #1a2f47;
--color-border: #1e3a5f;
/* Text Colors */
--color-text: #e2e8f0;
--color-text-secondary: #94a3b8;
--color-text-muted: #64748b;
/* Accent Colors */
--color-cyan: #06b6d4;
--color-blue: #3b82f6;
--color-success: #10b981;
--color-warning: #f59e0b;
--color-error: #ef4444;
/* Fonts */
--font-primary: 'Inter', sans-serif;
--font-code: 'Source Code Pro', monospace;
/* Layout */
--border-radius: 0.75rem;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
--content-spacing: 1.5rem;
/* UI Elements (will be overridden by presentation-config.js) */
--preview-opacity: 0.68;
--overlay-background: rgba(10, 22, 40, 0.85);
--overlay-blur: 8px;
/* Page Indicator (will be overridden by presentation-config.js) */
--page-indicator-top: 16px;
--page-indicator-right: 16px;
--page-indicator-font-size: 0.875rem;
--page-indicator-opacity: 0.7;
--page-indicator-padding-x: 12px;
--page-indicator-padding-y: 4px;
--page-indicator-bg-color: rgba(22, 78, 99, 0.5);
--page-indicator-text-color: #a5f3fc;
--nav-border-width: 2px;
--nav-border-opacity: 0.5;
/* Borders & Accents */
--heading-accent-border-width: 4px;
--blockquote-border-width: 4px;
--image-border-width: 2px;
--link-underline-width: 2px;
--table-border-width: 1px;
--hr-border-width: 2px;
/* Effects */
--backdrop-gradient-color: rgba(59, 130, 246, 0.15);
--backdrop-gradient-spread: 70%;
--backdrop-blur: 60px;
}
/* ════════════════════════════════════════════════════════════════════════════
Base Styles
════════════════════════════════════════════════════════════════════════════ */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--font-primary);
background-color: var(--color-background);
color: var(--color-text);
overflow-x: hidden;
}
/* ════════════════════════════════════════════════════════════════════════════
Video Stage Components
════════════════════════════════════════════════════════════════════════════ */
.stage-frame {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio */
border-radius: var(--border-radius);
overflow: hidden;
background: var(--color-surface);
border: 1px solid var(--color-border);
box-shadow: var(--shadow-lg);
}
#stage {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
background-color: var(--color-surface);
overflow: hidden;
}
/* ════════════════════════════════════════════════════════════════════════════
Smart Layout Enhancements
════════════════════════════════════════════════════════════════════════════ */
.smart-layout-root .smart-list {
list-style: none;
padding: 0;
margin: 0 0 var(--content-spacing);
column-gap: 2.5rem;
}
.smart-layout-root .smart-list li {
margin-left: 2rem;
margin-bottom: 0.85rem;
line-height: var(--line-height-body, 1.45);
}
.smart-layout-root .smart-list.smart-balanced,
.smart-layout-root .smart-list.smart-balanced-three {
column-fill: balance;
}
.smart-layout-root .smart-list.smart-balanced {
column-count: 2;
}
.smart-layout-root .smart-list.smart-balanced-three {
column-count: 3;
}
.smart-layout-root .smart-list.smart-balanced li,
.smart-layout-root .smart-list.smart-balanced-three li {
break-inside: avoid;
margin-left: 1.25rem !important;
}
.smart-layout-root .smart-list.has-preview li[data-preview="true"] {
opacity: var(--preview-opacity);
}
/* ════════════════════════════════════════════════════════════════════════════
Pause Overlay
════════════════════════════════════════════════════════════════════════════ */
.pause-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--overlay-background, rgba(10, 22, 40, 0.85));
backdrop-filter: blur(var(--overlay-blur, 8px));
z-index: 1000;
transition: opacity 0.3s ease;
}
.pause-overlay.hidden {
display: none;
}
.pause-indicator {
text-align: center;
animation: pulse-pause 2s ease-in-out infinite;
}
.pause-icon {
font-size: 6rem;
margin-bottom: 1rem;
filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.5));
}
.pause-text {
font-size: 2rem;
font-weight: bold;
color: var(--color-primary);
text-transform: uppercase;
letter-spacing: 0.2em;
margin-bottom: 0.5rem;
}
.pause-hint {
font-size: 1rem;
color: var(--color-text-secondary);
opacity: 0.8;
}
@keyframes pulse-pause {
0%, 100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.7;
transform: scale(1.05);
}
}
/* ════════════════════════════════════════════════════════════════════════════
Navigation Controls (Presentation Mode)
════════════════════════════════════════════════════════════════════════════ */
.nav-controls {
position: absolute;
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 1rem;
z-index: 900;
transition: opacity 0.3s ease;
}
.nav-controls.hidden {
display: none;
}
.nav-btn {
display: flex;
align-items: center;
justify-content: center;
width: 3rem;
height: 3rem;
background: var(--color-surface, rgba(19, 35, 55, 0.9));
border: var(--nav-border-width, 2px) solid rgba(59, 130, 246, var(--nav-border-opacity, 0.5));
border-radius: 50%;
color: var(--color-primary);
cursor: pointer;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
}
.nav-btn:hover:not(:disabled) {
background: rgba(59, 130, 246, 0.2);
border-color: var(--color-primary);
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.nav-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
border-color: rgba(100, 116, 139, 0.3);
}
.nav-arrow {
font-size: 1.5rem;
font-weight: bold;
}
.slide-counter {
padding: 0.5rem 1rem;
background: rgba(19, 35, 55, 0.9);
border: 2px solid rgba(59, 130, 246, 0.5);
border-radius: var(--border-radius);
color: var(--color-text);
font-size: 0.875rem;
font-weight: 600;
backdrop-filter: blur(10px);
min-width: 5rem;
text-align: center;
}
/* ════════════════════════════════════════════════════════════════════════════
Fullscreen Button
════════════════════════════════════════════════════════════════════════════ */
.fullscreen-btn {
position: absolute;
top: 1rem;
right: 1rem;
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
background: rgba(19, 35, 55, 0.9);
border: 2px solid rgba(59, 130, 246, 0.5);
border-radius: 0.5rem;
color: var(--color-primary);
cursor: pointer;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
z-index: 900;
}
.fullscreen-btn:hover {
background: rgba(59, 130, 246, 0.2);
border-color: var(--color-primary);
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.fullscreen-btn.hidden {
display: none;
}
.fullscreen-icon {
font-size: 1.25rem;
}
/* Exit Presentation Mode Button */
.exit-presentation-btn {
position: absolute;
top: 1rem;
right: 7.5rem;
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
background: rgba(239, 68, 68, 0.9);
border: 2px solid rgba(248, 113, 113, 0.5);
border-radius: 0.5rem;
color: white;
cursor: pointer;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
z-index: 900;
}
.exit-presentation-btn:hover {
background: rgba(239, 68, 68, 1);
border-color: rgba(248, 113, 113, 0.8);
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}
.exit-presentation-btn.hidden {
display: none;
}
.exit-presentation-btn svg {
display: block;
}
/* Stop Preview Button */
.stop-preview-btn,
.stop-export-btn {
position: absolute;
top: 1rem;
right: 11rem;
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
background: rgba(251, 191, 36, 0.9);
border: 2px solid rgba(252, 211, 77, 0.5);
border-radius: 0.5rem;
color: #1e293b;
cursor: pointer;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
z-index: 900;
}
.stop-preview-btn:hover,
.stop-export-btn:hover {
background: rgba(251, 191, 36, 1);
border-color: rgba(252, 211, 77, 0.8);
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
}
.stop-preview-btn.hidden,
.stop-export-btn.hidden {
display: none;
}
.stop-preview-btn svg,
.stop-export-btn svg {
display: block;
}
/* ════════════════════════════════════════════════════════════════════════════
Slide Edit Controls
════════════════════════════════════════════════════════════════════════════ */
/* Edit Slide Button (Pencil Icon) */
.edit-slide-btn {
position: absolute;
top: 1rem;
right: 4.5rem;
z-index: 900;
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
background: rgba(59, 130, 246, 0.9);
backdrop-filter: blur(10px);
border: 2px solid rgba(96, 165, 250, 0.5);
border-radius: 0.5rem;
color: white;
cursor: pointer;
transition: all 0.2s ease;
}
.edit-slide-btn:hover {
background: rgba(59, 130, 246, 1);
border-color: rgba(96, 165, 250, 0.8);
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}
.edit-slide-btn.active {
background: rgba(16, 185, 129, 0.9);
border-color: rgba(52, 211, 153, 0.5);
}
.edit-slide-btn.active:hover {
background: rgba(16, 185, 129, 1);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}
.edit-slide-btn svg {
display: block;
}
/* Save Slide Button */
.save-slide-btn {
position: absolute;
top: 1rem;
right: 8rem;
z-index: 900;
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
background: rgba(16, 185, 129, 0.9);
backdrop-filter: blur(10px);
border: 2px solid rgba(52, 211, 153, 0.5);
border-radius: 0.5rem;
color: white;
cursor: pointer;
transition: all 0.2s ease;
animation: slideInRight 0.3s ease-out;
}
.save-slide-btn:hover {
background: rgba(16, 185, 129, 1);
border-color: rgba(52, 211, 153, 0.8);
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}
.save-slide-btn svg {
display: block;
}
/* Cancel Edit Button */
.cancel-edit-btn {
position: absolute;
top: 1rem;
right: 11.5rem;
z-index: 900;
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
background: rgba(239, 68, 68, 0.9);
backdrop-filter: blur(10px);
border: 2px solid rgba(248, 113, 113, 0.5);
border-radius: 0.5rem;
color: white;
cursor: pointer;
transition: all 0.2s ease;
animation: slideInRight 0.3s ease-out;
}
.cancel-edit-btn:hover {
background: rgba(239, 68, 68, 1);
border-color: rgba(248, 113, 113, 0.8);
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}
.cancel-edit-btn svg {
display: block;
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
/* Editable Slide Content */
.slide-editable [contenteditable="true"] {
outline: 2px dashed rgba(59, 130, 246, 0.5);
outline-offset: 4px;
border-radius: 0.375rem;
padding: 0.5rem;
min-height: 2rem;
transition: all 0.2s ease;
cursor: text;
}
.slide-editable [contenteditable="true"]:hover {
outline-color: rgba(59, 130, 246, 0.8);
background: rgba(59, 130, 246, 0.05);
}
.slide-editable [contenteditable="true"]:focus {
outline: 2px solid rgba(59, 130, 246, 1);
outline-offset: 4px;
background: rgba(59, 130, 246, 0.1);
}
.slide-editable [contenteditable="true"]:empty:before {
content: attr(data-placeholder);
color: rgba(148, 163, 184, 0.5);
font-style: italic;
}
/* Edit Mode Indicator */
.edit-mode-indicator {
position: absolute;
top: 1rem;
left: 1rem;
z-index: 900;
background: rgba(59, 130, 246, 0.95);
backdrop-filter: blur(10px);
border: 2px solid rgba(96, 165, 250, 0.5);
border-radius: 0.5rem;
padding: 0.5rem 1rem;
color: white;
font-size: 0.875rem;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.8;
}
}
/* ═══════════════════════════════════════════════════════════════════════════
DRAG & DROP SYSTEM STYLES
═══════════════════════════════════════════════════════════════════════════ */
/* Draggable content */
.draggable-content {
cursor: move;
position: absolute !important;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
transition: box-shadow 0.2s ease, transform 0.1s ease;
pointer-events: auto;
}
.draggable-content:hover {
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
.draggable-content.is-dragging {
cursor: grabbing !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
transform: scale(1.02);
z-index: 9999 !important;
opacity: 0.9;
user-select: none !important;
-webkit-user-select: none !important;
pointer-events: none;
}
/* ป้องกันการ select ทั้ง stage ขณะลาก */
.stage-dragging {
user-select: none !important;
-webkit-user-select: none !important;
cursor: grabbing !important;
}
.stage-dragging * {
pointer-events: none !important;
}
/* Drag handle */
.drag-handle {
position: absolute;
left: -30px;
top: 50%;
transform: translateY(-50%);
width: 24px;
height: 24px;
background: rgba(59, 130, 246, 0.9);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
cursor: grab;
opacity: 0;
transition: opacity 0.2s ease, background 0.2s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.draggable-content:hover .drag-handle {
opacity: 1;
}
.drag-handle:hover {
background: rgba(59, 130, 246, 1);
}
.drag-handle:active {
cursor: grabbing;
}
.drag-handle svg {
color: white;
fill: currentColor;
}
/* Position locked */
.position-locked {
cursor: not-allowed !important;
}
.position-locked .drag-handle {
background: rgba(156, 163, 175, 0.9);
cursor: not-allowed;
}
.position-locked:hover {
box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.3);
}
/* Outside safe zone warning */
.outside-safe-zone {
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.6) !important;
animation: shake 0.3s ease;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-4px); }
75% { transform: translateX(4px); }
}
/* ═══════════════════════════════════════════════════════════════════════════
SAFE ZONE OVERLAY STYLES - กรอบสีแดงบังคับ
═══════════════════════════════════════════════════════════════════════════ */
.safe-zone-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
z-index: 8888;
opacity: 1;
}
.safe-zone-overlay.hidden {
opacity: 0;
pointer-events: none;
}
/* Safe zone borders - กรอบสีแดงบาง */
.safe-zone-border {
position: fixed;
background: transparent;
pointer-events: none;
}
.safe-zone-top,
.safe-zone-bottom {
height: 1px;
background: rgba(239, 68, 68, 0.8);
box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}
.safe-zone-left,
.safe-zone-right {
width: 1px;
background: rgba(239, 68, 68, 0.8);
box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}
/* เอฟเฟกต์เมื่อลากใกล้ขอบ */
.safe-zone-overlay.warning .safe-zone-border {
background: rgba(239, 68, 68, 1);
animation: pulse-red 0.5s ease infinite;
}
@keyframes pulse-red {
0%, 100% {
opacity: 1;
filter: brightness(1);
}
50% {
opacity: 0.7;
filter: brightness(1.5);
}
}
/* ═══════════════════════════════════════════════════════════════════════════
POSITION CONTROLS UI
═══════════════════════════════════════════════════════════════════════════ */
.position-controls {
position: fixed;
bottom: 2rem;
left: 2rem;
background: rgba(17, 24, 39, 0.95);
backdrop-filter: blur(10px);
border-radius: 12px;
padding: 1rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
z-index: 9000;
display: flex;
gap: 0.5rem;
transition: all 0.3s ease;
}
.position-controls.hidden {
opacity: 0;
pointer-events: none;
transform: translateY(20px);
}
.position-control-btn {
width: 40px;
height: 40px;
background: rgba(59, 130, 246, 0.1);
border: 1px solid rgba(59, 130, 246, 0.3);
border-radius: 8px;
color: rgba(59, 130, 246, 1);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
padding: 0;
}
.position-control-btn:hover {
background: rgba(59, 130, 246, 0.2);
border-color: rgba(59, 130, 246, 0.5);
transform: translateY(-2px);
}
.position-control-btn:active {
transform: translateY(0);
}
.position-control-btn.active {
background: rgba(59, 130, 246, 0.3);
border-color: rgba(59, 130, 246, 0.6);
}
.position-control-btn svg {
width: 20px;
height: 20px;
}
/* Position indicator */
.position-indicator {
position: fixed;
top: 1rem;
left: 50%;
transform: translateX(-50%);
background: rgba(17, 24, 39, 0.95);
backdrop-filter: blur(10px);
border-radius: 8px;
padding: 0.5rem 1rem;
font-size: 0.875rem;
color: rgba(156, 163, 175, 1);
font-family: 'Courier New', monospace;
z-index: 9000;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
}
.position-indicator.show {
opacity: 1;
}
.fullscreen-btn.hidden,
.exit-presentation-btn.hidden,
.stop-preview-btn.hidden,
.stop-export-btn.hidden,
.edit-slide-btn.hidden,
.save-slide-btn.hidden,
.cancel-edit-btn.hidden {
display: none;
}
/* Fullscreen mode adjustments */
.stage-frame:fullscreen {
border-radius: 0;
padding-top: 0;
}
.stage-frame:fullscreen #stage {
width: 100vw;
height: 100vh;
}
.stage-frame:-webkit-full-screen {
border-radius: 0;
padding-top: 0;
}
.stage-frame:-webkit-full-screen #stage {
width: 100vw;
height: 100vh;
}
.stage-frame:-moz-full-screen {
border-radius: 0;
padding-top: 0;
}
.stage-frame:-moz-full-screen #stage {
width: 100vw;
height: 100vh;
}
.stage-frame:-ms-fullscreen {
border-radius: 0;
padding-top: 0;
}
.stage-frame:-ms-fullscreen #stage {
width: 100vw;
height: 100vh;
}
/* ════════════════════════════════════════════════════════════════════════════
Scene Styles
════════════════════════════════════════════════════════════════════════════ */
.scene {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0;
opacity: 0;
transform: translateY(35px) scale(0.96);
transition: opacity 0.6s ease, transform 0.6s ease;
pointer-events: none;
overflow: hidden;
box-sizing: border-box;
word-break: break-word;
hyphens: auto;
}
.scene.active {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
.scene > * {
max-width: 100%;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
}
.scene .slide-content {
max-height: 100%;
max-width: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
gap: 1.5rem;
text-align: var(--text-align, left);
line-height: var(--line-height-body, 1.7);
}
#stage.screen-large .scene,
#stage.screen-ultra .scene {
justify-content: flex-start;
align-items: flex-start;
padding: 0;
}
#stage.screen-ultra .scene {
padding: 0;
}
#stage.screen-large [data-scene="body"] h1,
#smartMeasurementStage.screen-large [data-scene="body"] h1,
#stage.screen-ultra [data-scene="body"] h1,
#smartMeasurementStage.screen-ultra [data-scene="body"] h1 {
font-size: var(--font-size-h1, clamp(2.5rem, 5vw, 4.5rem));
max-width: 100%;
}
#stage.screen-large [data-scene="body"] h2,
#smartMeasurementStage.screen-large [data-scene="body"] h2,
#stage.screen-ultra [data-scene="body"] h2,
#smartMeasurementStage.screen-ultra [data-scene="body"] h2 {
font-size: var(--font-size-h2, clamp(2rem, 4vw, 3.5rem));
max-width: 100%;
}
#stage.screen-large [data-scene="body"] h3,
#smartMeasurementStage.screen-large [data-scene="body"] h3,
#stage.screen-ultra [data-scene="body"] h3,
#smartMeasurementStage.screen-ultra [data-scene="body"] h3 {
font-size: var(--font-size-h3, clamp(1.75rem, 3vw, 2.75rem));
max-width: 100%;
}
#stage.screen-large [data-scene="body"] p,
#smartMeasurementStage.screen-large [data-scene="body"] p,
#stage.screen-large [data-scene="body"] li,
#smartMeasurementStage.screen-large [data-scene="body"] li,
#stage.screen-ultra [data-scene="body"] p,
#smartMeasurementStage.screen-ultra [data-scene="body"] p,
#stage.screen-ultra [data-scene="body"] li,
#smartMeasurementStage.screen-ultra [data-scene="body"] li {
font-size: var(--font-size-text, clamp(1.25rem, 2vw, 2rem));
line-height: var(--line-height-body, 1.6);
max-width: 100%;
}
#stage.screen-ultra [data-scene="body"] p,
#smartMeasurementStage.screen-ultra [data-scene="body"] p,
#stage.screen-ultra [data-scene="body"] li,
#smartMeasurementStage.screen-ultra [data-scene="body"] li {
font-size: var(--font-size-text, clamp(1.5rem, 2.2vw, 2.2rem));
max-width: 100%;
}
/* สำหรับหน้าจอใหญ่ ให้จัดเนื้อหาชิดซ้ายแทนกึ่งกลาง */
#stage.screen-large .smart-layout-root,
#stage.screen-ultra .smart-layout-root {
align-items: flex-start;
}
#stage.screen-large .slide-heading,
#stage.screen-ultra .slide-heading {
text-align: left;
margin-left: 0;
margin-right: 0;
max-width: 95%;
}
#stage.screen-large .slide-text,
#stage.screen-ultra .slide-text {
text-align: left;
margin-left: 0;
margin-right: 0;
max-width: 92%;
}
#stage.screen-large .smart-list,
#stage.screen-ultra .smart-list {
margin-left: 0;
margin-right: 0;
max-width: 92%;
}
#stage.screen-large .slide-blockquote,
#stage.screen-ultra .slide-blockquote {
margin-left: 0;
margin-right: 0;
max-width: 90%;
}
#stage.screen-large .slide-code,
#stage.screen-ultra .slide-code {
margin-left: 0;
margin-right: 0;
max-width: 95%;
}
#stage.screen-large .slide-image,
#stage.screen-ultra .slide-image {
margin-left: 0;
margin-right: auto;
max-width: 85%;
}
[data-preview="true"],
.preview-block {
opacity: var(--preview-opacity);
border-top: 1px dashed rgba(96, 165, 250, 0.35);
padding-top: calc(var(--content-spacing) * 1.1);
margin-top: calc(var(--content-spacing) * 1.2);
}
.preview-block:first-child {
border-top: none;
padding-top: 0;
margin-top: 0;
}
.preview-block hr,
hr.preview-block {
border-color: rgba(96, 165, 250, 0.35);
}
.gradient-backdrop {
position: absolute;
inset: -20%;
background: radial-gradient(
circle at center,
var(--backdrop-gradient-color, rgba(59, 130, 246, 0.15)),
transparent var(--backdrop-gradient-spread, 70%)
);
filter: blur(var(--backdrop-blur, 60px));
opacity: 0.6;
}
/* ════════════════════════════════════════════════════════════════════════════
Typography - Paragraph & Text Styles
════════════════════════════════════════════════════════════════════════════ */
p {
margin-top: var(--paragraph-spacing-before, 0.5rem);
margin-bottom: var(--paragraph-spacing-after, 1rem);
line-height: var(--line-height-body, 1.7);
text-align: var(--text-align, left);
text-indent: var(--indent-first-line, 0);
}
.content-text p {
color: var(--color-text);
font-size: var(--font-size-text, 1rem);
}
/* ════════════════════════════════════════════════════════════════════════════
Code Block Styles
════════════════════════════════════════════════════════════════════════════ */
.code-block {
font-family: var(--font-code);
white-space: pre-wrap;
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--border-radius);
padding: 1.75rem;
color: var(--color-text);
box-shadow: var(--shadow);
max-width: 100%;
overflow-x: auto;
position: relative;
line-height: 1.6;
}
.code-block::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--gradient);
}
/* Syntax Highlighting with Theme Variables */
.code-syntax .keyword,
.code-block .keyword {
color: var(--syntax-keyword, #f87171);
font-weight: 600;
}
.code-syntax .string,
.code-block .string {
color: var(--syntax-string, #34d399);
}
.code-syntax .comment,
.code-block .comment {
color: var(--syntax-comment, #6b7280);
font-style: italic;
opacity: 0.8;
}
.code-syntax .function,
.code-block .function {
color: var(--syntax-function, #60a5fa);
font-weight: 500;
}
.code-syntax .number,
.code-block .number {
color: var(--syntax-number, #fbbf24);
}
.code-syntax .variable,
.code-block .variable {
color: var(--syntax-variable, #a78bfa);
}
/* Enhanced Content Styles with Typography Controls */
.content-h1 h1,
.content-h2 h2,
.content-h3 h3,
.content-h4 h4,
.content-h5 h5,
.content-h6 h6 {
margin-top: var(--heading-spacing-before, 1.5rem);
margin-bottom: var(--heading-spacing-after, 0.75rem);
line-height: var(--line-height-heading, 1.3);
text-align: var(--text-align, left);
}
.content-h1 h1 {
color: var(--color-primary);
text-shadow: 0 0 20px var(--color-primary), 0 4px 12px rgba(0, 0, 0, 0.3);
font-size: var(--font-size-h1, clamp(2rem, 5vw, 3.5rem));
font-weight: 800;
letter-spacing: -0.02em;
background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
max-width: 100%;
word-wrap: break-word;
}
.content-h2 h2 {
color: var(--color-secondary);
text-shadow: 0 0 15px var(--color-secondary);
font-size: var(--font-size-h2, clamp(1.75rem, 4vw, 2.75rem));
font-weight: 700;
border-left: var(--heading-accent-border-width, 4px) solid var(--color-primary);
padding-left: 1.5rem;
max-width: 100%;
word-wrap: break-word;
}
.content-h3 h3 {
color: var(--color-accent);
font-size: var(--font-size-h3, clamp(1.5rem, 3vw, 2rem));
font-weight: 600;
max-width: 100%;
word-wrap: break-word;
}
.content-blockquote blockquote {
border-left: var(--blockquote-border-width, 4px) solid var(--color-accent);
padding-left: var(--indent-blockquote, 1.5rem);
margin: 1.5rem 0;
font-style: italic;
color: var(--color-text-secondary);
background: rgba(var(--color-surface), 0.3);
padding: 1.5rem;
border-radius: var(--border-radius);
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}
.content-blockquote blockquote::before {
content: '"';
font-size: 4rem;
color: var(--color-accent);
opacity: 0.3;
position: absolute;
margin-left: -2rem;
margin-top: -1rem;
}
.content-list-item ul,
.content-numbered-item ol {
margin-left: var(--list-indent, 2rem);
line-height: var(--line-height-body, 1.8);
}
.content-list-item li,
.content-numbered-item li {
margin-bottom: 0.75rem;
color: var(--color-text);
text-align: var(--text-align, left);
}
.content-list-item li::marker {
color: var(--color-primary);
font-size: 1.2em;
}
/* Task List Styling */
.content-task-list li {
list-style: none;
margin-left: -1.5rem;
}
.content-task-list li::before {
content: '☐';
color: var(--color-accent);
font-size: 1.5em;
margin-right: 0.75rem;
}
.content-task-list li.checked::before {
content: '☑';
color: var(--color-primary);
}
/* Image Styling */
.content-image img {
border-radius: var(--border-radius);
box-shadow: var(--shadow);
max-width: 100%;
height: auto;
border: 2px solid var(--color-primary);
}
/* Link Styling */
.content-link a {
color: var(--color-primary);
text-decoration: none;
border-bottom: 2px solid var(--color-primary);
padding-bottom: 2px;
transition: all 0.3s ease;
}
.content-link a:hover {
color: var(--color-secondary);
border-bottom-color: var(--color-secondary);
text-shadow: 0 0 10px var(--color-secondary);
}
/* ════════════════════════════════════════════════════════════════════════════
Typography Components
════════════════════════════════════════════════════════════════════════════ */
.badge {
letter-spacing: 0.35em;
font-size: 0.65rem;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.6);
font-weight: 600;
}
/* ════════════════════════════════════════════════════════════════════════════
Button Styles
════════════════════════════════════════════════════════════════════════════ */
.btn-primary {
background: var(--color-primary);
color: #fff;
padding: 0.75rem 1.5rem;
border-radius: var(--border-radius);
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover:not(:disabled) {
background: #2563eb;
box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-secondary {
background: var(--color-surface);
border: 1px solid var(--color-border);
color: var(--color-text);
padding: 0.75rem 1.5rem;
border-radius: var(--border-radius);
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-secondary:hover:not(:disabled) {
border-color: var(--color-primary);
background: var(--color-surface-hover);
}
.btn-secondary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-tertiary {
background: transparent;
border: 1px solid var(--color-border);
color: var(--color-text-secondary);
padding: 0.5rem 1rem;
border-radius: var(--border-radius);
font-weight: 500;
font-size: 0.875rem;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-tertiary:hover:not(:disabled) {
border-color: var(--color-cyan);
color: var(--color-cyan);
background: rgba(6, 182, 212, 0.1);
}
/* Reset Button - Warning Style */
#resetBtn {
border-color: rgba(239, 68, 68, 0.3);
color: #ef4444;
}
#resetBtn:hover:not(:disabled) {
border-color: var(--color-error);
background: rgba(239, 68, 68, 0.1);
color: #ef4444;
}
/* ════════════════════════════════════════════════════════════════════════════
Configuration Panel Styles
════════════════════════════════════════════════════════════════════════════ */
.config-panel {
background: var(--color-surface);
backdrop-filter: blur(10px);
border: 1px solid var(--color-border);
}
.config-panel input,
.config-panel textarea,
.config-panel select {
background: var(--color-background);
border: 1px solid var(--color-border);
color: var(--color-text);
border-radius: var(--border-radius);
padding: 0.5rem 0.75rem;
width: 100%;
font-family: inherit;
transition: all 0.2s ease;
}
.config-panel textarea {
font-family: var(--font-code);
resize: vertical;
}
.config-panel input:focus,
.config-panel textarea:focus,
.config-panel select:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* ════════════════════════════════════════════════════════════════════════════
Status & Progress Components
════════════════════════════════════════════════════════════════════════════ */
.status-pill {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-size: 0.75rem;
letter-spacing: 0.05em;
border-radius: 999px;
background: var(--color-surface);
border: 1px solid var(--color-border);
padding: 0.5rem 1rem;
font-weight: 600;
text-transform: uppercase;
color: var(--color-text-secondary);
}
.status-pill.online::before {
content: '';
display: block;
width: 0.5rem;
height: 0.5rem;
border-radius: 999px;
background: var(--color-success);
animation: pulse 2s ease-in-out infinite;
}
.status-pill.recording::before {
content: '';
display: block;
width: 0.5rem;
height: 0.5rem;
border-radius: 999px;
background: var(--color-error);
animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.pulse {
animation: pulse 2s ease-in-out infinite;
}
/* ════════════════════════════════════════════════════════════════════════════
Advanced Transition Animations
════════════════════════════════════════════════════════════════════════════ */
@keyframes matrixScroll {
0% {
background-position: 0% 0%;
}
100% {
background-position: 0% 200%;
}
}
@keyframes glitchSkew {
0% {
transform: skew(0deg);
}
25% {
transform: skew(2deg);
}
50% {
transform: skew(-2deg);
}
75% {
transform: skew(1deg);
}
100% {
transform: skew(0deg);
}
}
@keyframes pixelateIn {
0% {
filter: blur(20px);
opacity: 0;
}
50% {
filter: blur(10px);
}
100% {
filter: blur(0px);
opacity: 1;
}
}
@keyframes scanline {
0% {
transform: translateY(-100%);
}
100% {
transform: translateY(100%);
}
}
/* Code Block Enhanced Animations */
@keyframes codeHighlight {
0%, 100% {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
50% {
box-shadow: 0 8px 32px var(--color-primary), 0 0 40px rgba(var(--color-primary), 0.3);
}
}
.code-block:hover {
animation: codeHighlight 2s ease-in-out infinite;
}
/* Heading Glow Effects */
@keyframes textGlow {
0%, 100% {
text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}
50% {
text-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary), 0 0 60px var(--color-secondary);
}
}
.content-h1 h1:hover,
.content-h2 h2:hover {
animation: textGlow 1.5s ease-in-out infinite;
}
.progress-bar {
width: 100%;
height: 0.5rem;
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 999px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: var(--color-primary);
border-radius: 999px;
transition: width 0.3s ease;
}
/* ════════════════════════════════════════════════════════════════════════════
Template Card Styles
════════════════════════════════════════════════════════════════════════════ */
.template-card {
background: var(--color-surface);
border: 2px solid var(--color-border);
border-radius: var(--border-radius);
padding: 1rem;
cursor: pointer;
transition: all 0.2s ease;
}
.template-card:hover {
border-color: var(--color-cyan);
box-shadow: 0 0 0 1px var(--color-cyan);
}
.template-card.active {
border-color: var(--color-primary);
background: rgba(59, 130, 246, 0.1);
box-shadow: 0 0 0 1px var(--color-primary);
}
/* ════════════════════════════════════════════════════════════════════════════
File Upload Zone
════════════════════════════════════════════════════════════════════════════ */
.file-upload-zone {
border: 2px dashed var(--color-border);
border-radius: var(--border-radius);
padding: 2rem;
text-align: center;
cursor: pointer;
transition: all 0.2s ease;
background: var(--color-surface);
}
.file-upload-zone:hover {
border-color: var(--color-cyan);
background: rgba(6, 182, 212, 0.05);
}
.file-upload-zone.dragging {
border-color: var(--color-primary);
background: rgba(59, 130, 246, 0.1);
}
/* ════════════════════════════════════════════════════════════════════════════
Security Badge
════════════════════════════════════════════════════════════════════════════ */
.security-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: rgba(16, 185, 129, 0.1);
color: #10b981;
padding: 0.25rem 0.75rem;
border-radius: 0.5rem;
font-size: 0.75rem;
font-weight: 600;
}
.security-badge::before {
content: '';
}
/* ════════════════════════════════════════════════════════════════════════════
Tab System
════════════════════════════════════════════════════════════════════════════ */
.tab-button {
padding: 0.75rem 1.5rem;
background: transparent;
border: none;
color: var(--color-text-secondary);
font-weight: 500;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.3s ease;
}
.tab-button.active {
color: var(--color-primary);
border-bottom-color: var(--color-primary);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* ════════════════════════════════════════════════════════════════════════════
Slide Content Structured Styles - ใช้กับเนื้อหาจาก Markdown
════════════════════════════════════════════════════════════════════════════ */
.smart-layout-root {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
max-width: 100%;
gap: 1.5rem;
padding: 0;
}
.slide-heading {
text-align: center;
width: 100%;
max-width: 100%;
margin-left: auto;
margin-right: auto;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
line-height: var(--line-height-heading, 1.3);
hyphens: auto;
}
.slide-h1 {
font-size: var(--font-size-h1, clamp(1.75rem, 4.5vw, 3rem));
font-weight: 800;
margin-top: var(--heading-spacing-before, 1.5rem);
margin-bottom: var(--heading-spacing-after, 0.75rem);
color: var(--color-primary);
text-shadow: 0 0 20px var(--color-primary);
background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
max-width: 100%;
}
.slide-h2 {
font-size: var(--font-size-h2, clamp(1.5rem, 3.5vw, 2.5rem));
font-weight: 700;
margin-top: var(--heading-spacing-before, 1.5rem);
margin-bottom: var(--heading-spacing-after, 0.75rem);
color: var(--color-secondary);
text-shadow: 0 0 15px var(--color-secondary);
max-width: 100%;
}
.slide-h3 {
font-size: var(--font-size-h3, clamp(1.25rem, 2.75vw, 1.9rem));
font-weight: 600;
margin-top: var(--heading-spacing-before, 1.5rem);
margin-bottom: var(--heading-spacing-after, 0.75rem);
color: var(--color-cyan);
max-width: 100%;
}
.slide-h4 {
font-size: clamp(1.25rem, 2.5vw, 1.75rem);
font-weight: 600;
margin-top: var(--heading-spacing-before, 1.5rem);
margin-bottom: var(--heading-spacing-after, 0.75rem);
}
.slide-h5 {
font-size: clamp(1.1rem, 2vw, 1.5rem);
font-weight: 600;
margin-top: var(--heading-spacing-before, 1.5rem);
margin-bottom: var(--heading-spacing-after, 0.75rem);
}
.slide-h6 {
font-size: clamp(1rem, 1.5vw, 1.25rem);
font-weight: 500;
margin-top: var(--heading-spacing-before, 1.5rem);
margin-bottom: var(--heading-spacing-after, 0.75rem);
}
.slide-text,
.slide-text p {
font-size: var(--font-size-text, clamp(1.1rem, 1.8vw, 1.6rem));
line-height: var(--line-height-body, 1.7);
margin-top: var(--paragraph-spacing-before, 0.5rem);
margin-bottom: var(--paragraph-spacing-after, 1rem);
text-align: var(--text-align, center);
text-indent: var(--indent-first-line, 0);
max-width: 100%;
margin-left: auto;
margin-right: auto;
color: var(--color-text);
word-break: break-word;
overflow-wrap: break-word;
}
.slide-text-preview {
font-size: clamp(1rem, 1.6vw, 1.4rem);
color: var(--color-text-secondary);
font-style: italic;
opacity: 0.8;
}
.smart-list {
width: 100%;
max-width: 100%;
margin-left: auto;
margin-right: auto;
padding-left: var(--list-indent, 1.5rem);
list-style: none;
}
.slide-list-item {
font-size: var(--font-size-text, clamp(1.1rem, 1.8vw, 1.6rem));
line-height: var(--line-height-body, 1.7);
margin-bottom: 0.75rem;
padding-left: var(--list-indent, 1.5rem);
text-indent: calc(-1 * var(--list-indent, 1.5rem));
color: var(--color-text);
word-break: break-word;
overflow-wrap: break-word;
}
.slide-blockquote {
border-left: var(--blockquote-border-width, 4px) solid var(--color-cyan);
padding-left: var(--indent-blockquote, 1.5rem);
padding-top: 1rem;
padding-bottom: 1rem;
margin-left: var(--indent-blockquote, 1.5rem);
margin-top: var(--paragraph-spacing-before, 0.5rem);
margin-bottom: var(--paragraph-spacing-after, 1rem);
font-style: italic;
font-size: clamp(1.25rem, 2vw, 1.75rem);
line-height: var(--line-height-body, 1.7);
color: var(--color-text-secondary);
background: rgba(19, 35, 55, 0.3);
border-radius: 0.5rem;
max-width: 85%;
}
.slide-code {
max-width: 90%;
margin-left: auto;
margin-right: auto;
margin-top: var(--paragraph-spacing-before, 0.5rem);
margin-bottom: var(--paragraph-spacing-after, 1rem);
}
.slide-code .code-block {
font-family: var(--font-code, 'Source Code Pro', monospace);
font-size: var(--font-size-code, clamp(0.9rem, 1.5vw, 1.1rem));
line-height: 1.5;
}
.slide-image {
max-width: 80%;
height: auto;
border-radius: 0.75rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
margin-left: auto;
margin-right: auto;
display: block;
margin-bottom: 1rem;
border: var(--image-border-width, 2px) solid var(--color-primary);
}
.slide-link {
color: var(--color-cyan);
text-decoration: underline;
text-decoration-thickness: var(--link-underline-width, 2px);
font-size: clamp(1.25rem, 2vw, 1.75rem);
transition: all 0.2s ease;
}
.slide-link:hover {
color: var(--color-secondary);
text-shadow: 0 0 10px var(--color-secondary);
}
/* ════════════════════════════════════════════════════════════════════════════
Table & HR Styles
════════════════════════════════════════════════════════════════════════════ */
.slide-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 1rem;
border: var(--table-border-width, 1px) solid var(--color-accent);
}
.slide-table th {
border: var(--table-border-width, 1px) solid var(--color-accent);
padding: 1rem;
background-color: var(--color-accent);
color: white;
font-weight: 600;
text-align: left;
}
.slide-table td {
border: var(--table-border-width, 1px) solid var(--color-accent);
padding: 0.75rem 1rem;
color: var(--color-text);
}
.slide-table tr:nth-child(even) {
background-color: rgba(var(--color-surface), 0.3);
}
.slide-hr {
border: 0;
border-top: var(--hr-border-width, 2px) solid var(--color-accent);
margin: 1.5rem 0;
opacity: 0.7;
}
/* ════════════════════════════════════════════════════════════════════════════
Timeline Page Indicator
════════════════════════════════════════════════════════════════════════════ */
.timeline-page-indicator {
font-size: 0.75rem;
padding: 0.125rem 0.5rem;
background-color: var(--color-accent);
color: var(--color-text);
border-radius: 0.25rem;
opacity: 0.8;
}
/* Slide Page Indicator (on stage) */
.slide-page-indicator {
position: absolute;
top: var(--page-indicator-top, 16px);
right: var(--page-indicator-right, 16px);
font-size: var(--page-indicator-font-size, 0.875rem);
opacity: var(--page-indicator-opacity, 0.7);
z-index: 100;
}
.slide-page-indicator span {
display: inline-block;
padding: var(--page-indicator-padding-y, 4px) var(--page-indicator-padding-x, 12px);
background-color: var(--page-indicator-bg-color, rgba(22, 78, 99, 0.5));
color: var(--page-indicator-text-color, #a5f3fc);
border-radius: 0.375rem;
}
/* ════════════════════════════════════════════════════════════════════════════
Collapsible Settings Sections
════════════════════════════════════════════════════════════════════════════ */
.settings-section summary {
list-style: none;
transition: color 0.15s ease;
user-select: none;
cursor: pointer;
}
.settings-section summary::-webkit-details-marker {
display: none;
}
.settings-section summary > span:first-child {
display: inline-block;
transition: transform 0.15s ease;
font-size: 0.7em;
}
.settings-section[open] summary > span:first-child {
transform: rotate(90deg);
}
.settings-section summary:hover {
color: #e2e8f0;
}
/* ════════════════════════════════════════════════════════════════════════════
Responsive Design
════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
.stage-frame {
padding-top: 75%; /* Adjusted for mobile */
}
.scene {
padding: 1.5rem;
}
.code-block {
padding: 1rem;
font-size: 0.875rem;
}
.smart-layout-root {
gap: 1rem;
}
.slide-heading,
.slide-text,
.smart-list,
.slide-blockquote,
.slide-code {
max-width: 95%;
}
}
@media (max-width: 640px) {
.btn-primary,
.btn-secondary {
padding: 0.625rem 1.25rem;
font-size: 0.875rem;
}
}
/* ═══════════════════════════════════════════════════════════════════════════
EXIT CONFIRMATION DIALOG
═══════════════════════════════════════════════════════════════════════════ */
.exit-confirmation-dialog {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
}
.exit-confirmation-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
animation: fadeIn 0.15s ease;
}
.exit-confirmation-content {
position: relative;
background: #1e293b;
border-radius: 8px;
padding: 1.25rem;
max-width: 380px;
width: 90%;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.1);
animation: slideUp 0.2s ease;
}
.exit-confirmation-header {
margin-bottom: 1rem;
}
.exit-confirmation-header h3 {
margin: 0;
font-size: 1.125rem;
font-weight: 600;
color: #f1f5f9;
}
.exit-confirmation-body {
margin-bottom: 1.25rem;
color: #cbd5e1;
line-height: 1.5;
font-size: 0.875rem;
}
.exit-confirmation-body p {
margin: 0.5rem 0;
}
.exit-confirmation-body .warning-text {
color: #fbbf24;
font-weight: 500;
}
.exit-confirmation-footer {
display: flex;
gap: 0.5rem;
}
.exit-confirmation-footer button {
flex: 1;
padding: 0.5rem 0.75rem;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
font-size: 0.8125rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease;
}
.btn-exit-save {
background: rgba(59, 130, 246, 0.2);
color: #60a5fa;
border-color: rgba(59, 130, 246, 0.3);
}
.btn-exit-save:hover {
background: rgba(59, 130, 246, 0.3);
border-color: rgba(59, 130, 246, 0.5);
}
.btn-exit-discard {
background: rgba(239, 68, 68, 0.2);
color: #f87171;
border-color: rgba(239, 68, 68, 0.3);
}
.btn-exit-discard:hover {
background: rgba(239, 68, 68, 0.3);
border-color: rgba(239, 68, 68, 0.5);
}
.btn-exit-cancel {
background: rgba(71, 85, 105, 0.2);
color: #cbd5e1;
border-color: rgba(255, 255, 255, 0.1);
}
.btn-exit-cancel:hover {
background: rgba(71, 85, 105, 0.3);
border-color: rgba(255, 255, 255, 0.15);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ════════════════════════════════════════════════════════════════════════════
Markdown Drop Zone
════════════════════════════════════════════════════════════════════════════ */
.markdown-drop-zone {
position: relative;
}
.markdown-drop-zone textarea {
width: 100%;
transition: all 0.2s ease;
}
.markdown-drop-zone.drag-over textarea {
opacity: 0.3;
pointer-events: none;
}
.markdown-drop-zone .drop-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(10, 22, 40, 0.95);
border: 2px dashed var(--color-primary);
border-radius: var(--border-radius);
backdrop-filter: blur(8px);
z-index: 10;
pointer-events: none;
}
.markdown-drop-zone.drag-over .drop-overlay {
display: flex;
}
.drop-overlay.hidden {
display: none;
}
.drop-content {
text-align: center;
animation: slideUp 0.3s ease;
}
.drop-icon {
font-size: 4rem;
margin-bottom: 1rem;
animation: bounce 0.6s ease infinite;
}
.drop-text {
font-size: 1.25rem;
font-weight: 600;
color: var(--color-text);
margin-bottom: 0.5rem;
}
.drop-hint {
font-size: 0.875rem;
color: var(--color-text-secondary);
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}