/* ==========================================================================
   Creator Studio - Claude Aesthetic Warm Editorial Motion Graphics
   ========================================================================== */

:root {
    /* Claude Warm Aesthetic Palette */
    --bg-dark: #181816;
    --bg-panel: #22221E;
    --bg-panel-light: #2B2B26;
    --border-color: #383731;
    --border-color-hover: #525048;
    
    --text-main: #FAF8F5;
    --text-muted: #B0AFA6;
    
    /* Claude Terracotta / Warm Accents */
    --claude-coral: #D97757;
    --claude-amber: #E2B389;
    --claude-cream: #FAF8F5;
    --claude-green: #34D399;
    --claude-cyan: #38BDF8;
    
    --primary-color: var(--claude-coral);
    --secondary-color: var(--claude-amber);
    
    --font-serif: 'Newsreader', serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-sans: 'Inter', sans-serif;
    
    --shadow-lg: 0 12px 35px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(217, 119, 87, 0.25);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    height: 100vh;
}

/* App Layout */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px;
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--claude-coral), var(--claude-amber));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #181816;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(217, 119, 87, 0.35);
}

.logo h1 {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 23px;
    letter-spacing: -0.3px;
    color: var(--text-main);
}

.logo h1 span {
    color: var(--primary-color);
    font-style: normal;
    font-weight: 700;
    font-family: var(--font-display);
}

/* Header Duration Selector */
.duration-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.duration-selector i {
    color: var(--primary-color);
}

.duration-selector select {
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.duration-selector select option {
    background-color: var(--bg-panel);
    color: var(--text-main);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Claude Style Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--claude-coral), #c25e3d);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(217, 119, 87, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 87, 0.5);
}

.btn-secondary {
    background-color: var(--bg-panel-light);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color-hover);
}

/* Main Grid Layout - Motion Graphics Focused 2-Column Studio */
.app-main {
    display: grid;
    grid-template-columns: 1fr 420px;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 64px);
}

/* Panels Base */
.editor-panel, .assets-panel, .preview-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-color);
}

.assets-panel {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.12);
}

.panel-header h2 {
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h2 i {
    color: var(--primary-color);
}

.badge {
    background-color: rgba(0, 229, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

/* Inline Editable Timeline Segment Cards */
.segment-card {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.segment-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: transparent;
    transition: background-color 0.2s ease;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.segment-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.segment-card.active {
    border-color: var(--primary-color);
    background-color: rgba(0, 229, 255, 0.04);
}

.segment-card.active::before {
    background-color: var(--primary-color);
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.seg-time-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.seg-time-inputs input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 11px;
    width: 42px;
    padding: 2px 4px;
    border-radius: 4px;
    text-align: center;
}

/* Inline Editable Text Area */
.seg-textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 6px;
    width: 100%;
    resize: vertical;
    min-height: 48px;
    outline: none;
    transition: all 0.2s ease;
}

.seg-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

/* Inline Accent Words Input */
.seg-row-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seg-input-highlights {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    flex: 1;
    outline: none;
}

.seg-input-highlights:focus {
    border-color: var(--primary-color);
}

.btn-toggle-sub {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.btn-toggle-sub:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.seg-btn-delete {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.6;
    padding: 4px;
    transition: opacity 0.2s ease;
}

.seg-btn-delete:hover {
    opacity: 1;
}

/* Collapsible Sub-Graphics Drawer */
.seg-sub-drawer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
    margin-top: 2px;
    animation: fadeIn 0.2s ease;
}

.sub-drawer-row {
    display: flex;
    gap: 8px;
}

.sub-drawer-row input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    width: 100%;
    outline: none;
}

.sub-drawer-row input:focus {
    border-color: var(--primary-color);
}

/* Center Panel: Video Preview */
.preview-panel {
    background-color: #0b0c10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Phone Mockup */
.phone-mockup {
    width: 330px;
    height: 580px;
    background-color: #000;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.02);
    border: 3px solid #282c37;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

/* Video Viewport (9:16) */
.video-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
}

/* Video Backgrounds - Natural & Realistic Studio Environments */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.5s ease;
    overflow: hidden;
}

/* Background Preset 1: Warm Living Room Studio */
.video-bg.natural-studio {
    background: linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
}

.video-bg.natural-studio .bg-depth-blur {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(217, 119, 6, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(120, 53, 15, 0.15) 0%, transparent 60%);
    filter: blur(30px);
}

/* Speaker Silhouette to mimic real human on camera */
.speaker-silhouette {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 280px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0.85;
}

.speaker-avatar {
    font-size: 220px;
    color: #292524;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    filter: drop-shadow(0 -10px 15px rgba(0,0,0,0.5));
}

/* Background Preset 2: Urban City Street Bokeh */
.video-bg.city-street {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.video-bg.city-street .bg-depth-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.3) 0%, transparent 35%),
        radial-gradient(circle at 75% 40%, rgba(244, 63, 94, 0.25) 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(250, 204, 21, 0.2) 0%, transparent 40%);
    filter: blur(25px);
}

/* Background Preset 3: Bright Minimal Editorial */
.video-bg.minimal-editorial {
    background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
}

.video-bg.minimal-editorial .bg-depth-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    filter: blur(20px);
}

/* Natural Vignette Overlay */
.natural-lighting {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Category Tabs in Right Panel */
.category-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.cat-tab {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 16px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-tab:hover {
    color: var(--text-main);
    border-color: var(--primary-color);
}

.cat-tab.active {
    background-color: var(--primary-color);
    color: #181816;
    border-color: var(--primary-color);
}

/* Motion Template Grid & Cards */
.motion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.tmpl-card {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tmpl-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tmpl-card.active {
    border-color: var(--primary-color);
    background-color: rgba(217, 119, 87, 0.12);
}

.tmpl-badge {
    font-size: 9px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tmpl-card h4 {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.tmpl-card p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Additional Canvas Template Styles */
.tmpl-hormozi-pop {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 38px;
    color: #facc15;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.6), -3px 3px 0 #000;
}

.tmpl-tweet-card {
    background: #000000;
    border: 1px solid #2f3336;
    border-radius: 16px;
    padding: 14px 16px;
    width: 270px;
    color: #e7e9ea;
    font-family: var(--font-sans);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

.tmpl-tweet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tmpl-tweet-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97757, #e2b389);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
}

/* ==========================================================================
   Ali Abdaal Motion Graphic On-Screen Canvas Renderers
   ========================================================================== */

/* Style 1: Kindle & Book Quote Highlight Card */
.ali-kindle-card {
    background: rgba(250, 248, 245, 0.96);
    color: #181816;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    max-width: 270px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: absolute;
    top: 30%;
    left: 10%;
    z-index: 10;
    font-family: var(--font-serif);
    animation: kindleFade 0.4s ease;
}

@keyframes kindleFade {
    from { opacity: 0; transform: translateY(15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.kindle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #78716c;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 1px solid #e7e5e4;
    padding-bottom: 6px;
}

.kindle-quote {
    font-size: 18px;
    line-height: 1.45;
    font-style: italic;
    color: #1c1917;
    position: relative;
}

.kindle-highlight-text {
    background: linear-gradient(120deg, rgba(250, 204, 21, 0.6) 0%, rgba(250, 204, 21, 0.6) 100%);
    background-repeat: no-repeat;
    background-size: 100% 88%;
    background-position: 0 88%;
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 600;
    color: #000000;
    animation: highlightSweep 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes highlightSweep {
    from { background-size: 0% 88%; }
    to { background-size: 100% 88%; }
}

/* Style 2: Notion Productivity UI Card */
.ali-notion-card {
    background: rgba(30, 30, 26, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    max-width: 280px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 32%;
    left: 8%;
    z-index: 10;
    font-family: var(--font-sans);
}

.notion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.notion-icon {
    font-size: 20px;
}

.notion-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: rgba(217, 119, 87, 0.2);
    color: var(--claude-coral);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.notion-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.notion-todos {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notion-todo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #e7e5e4;
}

.notion-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background-color: var(--claude-coral);
    color: #181816;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
}

/* Style 3: Animated Growth Chart (SVG Curve) */
.ali-chart-card {
    background: rgba(24, 24, 22, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 20px;
    width: 270px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 28%;
    left: 9%;
    z-index: 10;
}

.chart-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--claude-amber);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.chart-svg {
    width: 100%;
    height: 110px;
    overflow: visible;
}

.chart-path {
    stroke: var(--claude-coral);
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawPath 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.chart-dot {
    fill: var(--claude-coral);
    filter: drop-shadow(0 0 8px var(--claude-coral));
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { r: 5; }
    50% { r: 8; }
    100% { r: 5; }
}

/* Style 4: Paper Journal & Marker Notes */
.ali-journal-card {
    background: #fef08a;
    color: #1c1917;
    border-radius: 8px;
    padding: 18px;
    width: 260px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    position: absolute;
    top: 30%;
    left: 10%;
    z-index: 10;
    font-family: var(--font-serif);
    transform: rotate(-2deg);
}

.journal-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-sans);
    font-weight: 800;
    color: #854d0e;
    margin-bottom: 8px;
}

.journal-text {
    font-size: 18px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    color: #000000;
}

.journal-circle {
    border: 3px solid #dc2626;
    border-radius: 50%;
    padding: 2px 6px;
    display: inline-block;
}

/* Style 5: Minimal Editorial Quote Banner */
.ali-quote-card {
    background: radial-gradient(circle at center, rgba(217, 119, 87, 0.15) 0%, rgba(24, 24, 22, 0.92) 80%);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(217, 119, 87, 0.3);
    border-radius: 18px;
    padding: 22px;
    width: 280px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: absolute;
    top: 28%;
    left: 7%;
    z-index: 10;
}

.quote-icon {
    font-size: 28px;
    color: var(--claude-coral);
    margin-bottom: 8px;
}

.quote-body {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 12px;
}

.quote-author {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--claude-amber);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress Ring */
.progress-ring-container {
    position: absolute;
    top: 24px;
    right: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.1s linear;
    stroke-dasharray: 131.94; /* 2 * pi * 21 */
    stroke-dashoffset: 131.94;
}

.progress-ring-text {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 11px;
    color: #fff;
}

/* Callouts Layer (Checkmark Badges like in Image Reference 2) */
.callouts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.callout-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(18, 20, 26, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.callout-badge.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.callout-icon {
    width: 36px;
    height: 36px;
    background-color: var(--accent-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.callout-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

/* Add to Board Quick Toolbar above Phone Preview */
.add-to-board-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.add-to-board-bar button {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 14px;
}

/* User Floating Elements Layer */
.user-canvas-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.canvas-custom-element {
    position: absolute;
    pointer-events: auto !important;
    cursor: grab;
    user-select: none;
    transform-origin: center center;
    border-radius: 8px;
}

.canvas-custom-element:active {
    cursor: grabbing;
}

.canvas-custom-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    color: var(--text-main);
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
    padding: 4px 8px;
    white-space: nowrap;
}

.canvas-custom-emoji {
    font-size: 64px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

/* Callouts & Stat Layers Positioning Fixes */
.callouts-container {
    position: absolute;
    top: 38%;
    left: 10%;
    z-index: 8;
    pointer-events: auto !important;
    cursor: grab;
    width: auto;
    height: auto;
}

.stat-overlay-container {
    position: absolute;
    top: 25%;
    left: 15%;
    z-index: 9;
    pointer-events: auto !important;
    cursor: grab;
    width: auto;
    height: auto;
}

.captions-container {
    position: absolute;
    bottom: 85px;
    left: 5%;
    width: 90%;
    text-align: center;
    z-index: 11;
    pointer-events: auto !important;
    cursor: grab;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Clean, Natural Caption Typography */
.caption-word {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9), 0 2px 4px rgba(0,0,0,0.8);
    transform: translateY(4px);
    opacity: 0.3;
    transition: all 0.15s ease-out;
}

.caption-word.active {
    transform: translateY(0) scale(1.05);
    opacity: 1;
    color: #ffffff;
}

/* Natural Accent Highlights */
.caption-word.highlight-cyan {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 4px 15px rgba(0,0,0,0.9);
}

.caption-word.highlight-green {
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5), 0 4px 15px rgba(0,0,0,0.9);
}

.caption-word.highlight-yellow {
    color: var(--accent-yellow);
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.5), 0 4px 15px rgba(0,0,0,0.9);
}

/* Watermark */
.video-watermark {
    position: absolute;
    bottom: 30px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    font-family: var(--font-display);
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

/* Bottom Progress Bar */
.video-progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 9;
}

/* Element Selection Inspector Bar above Phone - Claude Styling */
.element-inspector-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-panel);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 8px 16px;
    margin-bottom: 12px;
    width: 330px;
    box-shadow: 0 8px 24px rgba(217, 119, 87, 0.25);
    animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.inspector-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.inspector-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.insp-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.insp-item input[type="range"] {
    width: 50px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Draggable & Selectable Elements in Phone Screen */
.selectable-element {
    cursor: grab;
    pointer-events: auto !important;
    user-select: none;
    transition: outline 0.15s ease, box-shadow 0.15s ease;
    border-radius: 8px;
    position: absolute;
}

.selectable-element:active {
    cursor: grabbing;
}

.selectable-element:hover {
    outline: 2px dashed rgba(217, 119, 87, 0.7);
    outline-offset: 4px;
}

.selectable-element.selected-element {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 4px;
    box-shadow: 0 0 20px rgba(217, 119, 87, 0.4);
}

/* Interactive Corner Resize Handles on Selected Element */
.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border: 2px solid #ffffff;
    border-radius: 50%;
    z-index: 20;
    display: none;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.selected-element .resize-handle {
    display: block;
}

.resize-handle-nw { top: -8px; left: -8px; cursor: nwse-resize; }
.resize-handle-ne { top: -8px; right: -8px; cursor: nesw-resize; }
.resize-handle-sw { bottom: -8px; left: -8px; cursor: nesw-resize; }
.resize-handle-se { bottom: -8px; right: -8px; cursor: nwse-resize; }

/* Top 100 YouTube Badge Library Styles */
.badge-presets-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.badge-preset-chip {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.badge-preset-chip:hover, .badge-preset-chip.active {
    border-color: var(--primary-color);
    background-color: rgba(217, 119, 87, 0.15);
}

.badge-icons-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
}

.badge-icon-item {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-icon-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.15);
    background-color: rgba(217, 119, 87, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-icon-item.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #181816;
}
.image-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-dropzone:hover, .image-dropzone.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(0, 229, 255, 0.05);
}

.dropzone-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.dropzone-text {
    font-size: 12px;
    color: var(--text-muted);
}

.dropzone-text span {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

/* Sample B-Roll Buttons Row */
.sample-media-row {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sample-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.sample-btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-sample-media {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 5px 10px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-sample-media i {
    color: var(--primary-color);
}

.btn-sample-media:hover {
    border-color: var(--primary-color);
    background-color: rgba(217, 119, 87, 0.12);
}

.dropped-images-list {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.dropped-thumb-card {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    cursor: pointer;
}

.dropped-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropped-thumb-card .thumb-del {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: rgba(0,0,0,0.7);
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Asset Group Header with Keep Toggle */
.asset-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.keep-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 700;
}

.keep-toggle-wrapper input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Draggable & Scalable Dropped Image & Video Overlay Item in Video Viewport */
.overlay-images-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.overlay-img-item {
    position: absolute;
    pointer-events: auto;
    cursor: move;
    user-select: none;
    touch-action: none;
    transform-origin: center center;
}

.overlay-img-item img, .overlay-img-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.overlay-img-item.selected-element {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Player Controls */
.player-controls {
    width: 330px;
    margin-top: 16px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-display {
    text-align: center;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.time-display span {
    color: var(--text-main);
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.control-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.08);
}

.control-btn.play-btn {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: #fff;
    font-size: 16px;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.control-btn.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

/* Form & Controls Extensions */
.form-row {
    display: flex;
    gap: 12px;
}

.form-group.half {
    flex: 1;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background-color: #ef4444;
    color: #ffffff;
}

/* Color Pickers Grid */
.color-pickers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.color-picker-item {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-picker-item label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-input-wrapper input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.color-input-wrapper span {
    font-size: 11px;
    font-family: monospace;
    color: var(--text-main);
}

/* Edit Segment Action Buttons in Cards */
.segment-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.segment-card:hover .segment-card-actions {
    opacity: 1;
}

.btn-icon-sm {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-main);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s ease;
}

.btn-icon-sm:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Modal Extensions */
.modal-body.align-left {
    text-align: left;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}


.caption-word.highlight-blue {
    color: var(--hormozi-blue);
    text-shadow: 
        -3px -3px 0 #000,  
         3px -3px 0 #000,
        -3px  3px 0 #000,
         3px  3px 0 #000,
         0px 0px 15px rgba(0, 229, 255, 0.6);
}

/* Emoji Popups */
.emoji-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.emoji-popup {
    position: absolute;
    font-size: 80px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.5);
}

.emoji-popup.active {
    transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    opacity: 1;
}

/* Screen Shake Effect */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(0px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    55% { transform: translate(-1px, 2px) rotate(-1deg); }
    70% { transform: translate(-3px, 1px) rotate(0deg); }
    85% { transform: translate(2px, 1px) rotate(-1deg); }
    100% { transform: translate(1px, -2px) rotate(0deg); }
}

.shake {
    animation: shake 0.15s infinite;
}

/* Watermark */
.video-watermark {
    position: absolute;
    bottom: 35px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.video-watermark i {
    color: var(--primary-color);
}

/* Bottom Progress Bar */
.video-progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 7;
}

.video-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    transition: width 0.05s linear;
}

/* Player Controls */
.player-controls {
    width: 340px;
    margin-top: 16px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-display {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.time-display span {
    color: var(--text-main);
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.control-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.control-btn:active {
    transform: scale(0.9);
}

.control-btn.play-btn {
    background-color: var(--primary-color);
    color: #000;
    font-size: 18px;
    width: 44px;
    height: 44px;
    box-shadow: var(--shadow-neon);
}

.control-btn.play-btn:hover {
    background-color: #00ff66;
    color: #000;
    transform: scale(1.05);
}

.extra-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-control input {
    width: 60px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.speed-control select {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.timeline-slider-container {
    width: 100%;
}

.timeline-slider-container input {
    width: 100%;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Right Panel: Assets & Customization */
.assets-panel {
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.asset-group h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 700;
}

/* Sound Grid */
.sound-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sound-btn {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sound-btn i {
    color: var(--accent-color);
}

.sound-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.sound-btn:active {
    transform: scale(0.95);
}

/* Preset Cards */
.preset-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.preset-card.active {
    border-color: var(--primary-color);
    background-color: rgba(0, 255, 102, 0.03);
}

.preset-preview {
    width: 50px;
    height: 35px;
    border-radius: 4px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.preset-info h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.preset-info p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input[type="range"] {
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-group select {
    background-color: var(--bg-panel-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px;
    border-radius: 6px;
    font-family: var(--font-sans);
    cursor: pointer;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    user-select: none;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 450px;
    max-width: 90%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.15);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.progress-bar-container {
    width: 100%;
    height: 24px;
    background-color: var(--bg-panel-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #000;
    transition: width 0.1s ease;
}

.export-status {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
}

.export-preview-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 48px;
    color: var(--hormozi-green);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.4));
}

.export-preview-container h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.export-preview-container p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-panel);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .app-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        overflow-y: auto;
        height: auto;
    }
    .editor-panel, .assets-panel, .preview-panel {
        height: 500px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .preview-panel {
        height: 750px;
    }
}

/* Dynamic Graphic Elements */
.graphic-shape {
    position: absolute;
    pointer-events: none;
    z-index: 4;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.5);
}

.graphic-shape.active {
    transform: scale(1);
}

.graphic-shape.arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid var(--primary-color);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.graphic-shape.cross {
    width: 30px;
    height: 30px;
    position: relative;
}

.graphic-shape.cross::before, .graphic-shape.cross::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color);
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.graphic-shape.cross::before {
    top: 12px;
    left: 0;
    width: 30px;
    height: 6px;
}

.graphic-shape.cross::after {
    top: 0;
    left: 12px;
    width: 6px;
    height: 30px;
}

.graphic-shape.circle-outline {
    width: 40px;
    height: 40px;
    border: 4px solid var(--hormozi-blue);
    border-radius: 50%;
    filter: drop-shadow(0 0 6px var(--hormozi-blue));
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
