:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E6F0FF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-dark: #0A0A0A;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 14px 34px rgba(0,0,0,0.12);
    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-5: 20px;
    --spacing-6: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Generic buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-md); border: 1px solid transparent; font-size: 14px; font-weight: 500; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #F3F4F6; color: var(--text-primary); border-color: #E5E7EB; }
.btn-ghost { background: #fff; color: var(--text-primary); border-color: #E5E7EB; }
.btn-danger { background: #DC2626; color: #fff; border-color: #DC2626; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.chip-success { background: #d1fae5; color: #065f46; }
.chip-warning { background: #fff7ed; color: #92400e; }

/* ============================================
   Mode-based visibility rules
   ============================================ */

/* Viewer mode - hide editor-only elements */
.mode-viewer #editorToolbar,
.mode-viewer .tool-panel,
.mode-viewer #toolSave,
.mode-viewer #toolExport,
.mode-viewer #toolClipping,
.mode-viewer #toolShadows,
.mode-viewer #toolRender,
.mode-viewer .nav-link[href="/dashboard"] {
    display: none !important;
}

/* Embed mode - hide most UI elements */
.mode-embed #mainHeader,
.mode-embed #editorToolbar,
.mode-embed .tool-panel,
.mode-embed .header,
.mode-embed .nav,
.mode-embed #cameraFreeIndicator {
    display: none !important;
}

/* Embed mode - ensure full height */
.mode-embed {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.mode-embed .cesium-container {
    top: 0 !important;
    height: 100vh !important;
}

/* Default hidden; shown only in embed or when enabled in viewer share */
#embedLogo { display: none; }

/* Embed mode - show watermark */
.mode-embed #embedLogo {
    display: inline-flex !important;
}

/* Hide panels in non-editor modes */
.mode-viewer .panel-container,
.mode-embed .panel-container {
    display: none !important;
}
.chip-danger { background: #fee; color: #991b1b; }

.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.upload-section {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.upload-area {
    background: rgba(255, 255, 255, 0.1);
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 3rem;
    margin: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.upload-area.drag-over {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.upload-icon {
    margin-bottom: 1rem;
}

.file-info {
    font-size: 0.9rem;
    opacity: 0.7;
}

.file-status {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.file-status.success {
    color: #4ade80;
}

.file-status.error {
    color: #f87171;
}

.features {
    max-width: 1200px;
    margin: 0 auto;
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.feature h4 {
    margin-bottom: 0.5rem;
}

.cesium-container {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    z-index: 10;
}

/* Ensure Cesium canvas can receive mouse events */
#cesiumContainer {
    pointer-events: all !important;
}

#cesiumContainer canvas {
    pointer-events: all !important;
    background: transparent !important;
}

.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 20;
    min-width: 300px;
}

.controls h3 {
    margin-bottom: 1rem;
    color: #333;
}

.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 500;
}

.control-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.25rem;
}

.control-group span {
    display: inline-block;
    color: #333;
    font-weight: bold;
}

.share-button, .reset-button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-button {
    background: #667eea;
    color: white;
}

.share-button:hover {
    background: #5a67d8;
}

.reset-button {
    background: #e5e7eb;
    color: #333;
}

.reset-button:hover {
    background: #d1d5db;
}

.instruction-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    z-index: 20;
    font-size: 1.1rem;
}

.location-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 100;
    max-width: 500px;
    width: 90%;
}

.prompt-content h2 {
    margin: 0 0 1rem 0;
    color: #333;
}

.prompt-content p {
    margin: 0.5rem 0;
    color: #666;
}


.upload-location-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.upload-location-section h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .controls {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        min-width: unset;
    }
}

/* Professional 3D Editor Toolbar */
.editor-toolbar {
    position: fixed;
    left: 0;
    top: calc(50% + 40px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--spacing-2);
    z-index: 1100; /* Higher than slider divider (1000) */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.toolbar-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toolbar-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 4px 0;
}

.tool-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    position: relative;
}

.tool-button:hover {
    background: #F3F4F6;
    color: var(--text-primary);
}

.tool-button.active {
    background: rgba(0,102,255,0.12);
    color: var(--primary);
}

.tool-button.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.tool-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

.tool-label {
    font-size: 11px;
    font-weight: 500;
}

/* Tool Panels - Compact Right Side Panel Design */
.tool-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 260px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 999;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(248, 248, 248, 0.9);
}

.panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.panel-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.panel-content {
    padding: 8px;
    color: var(--text-primary);
}

/* Typography System: Title (14px bold), Body (13px regular), Subtitle (12px medium) */
.tool-panel p {
    color: #666666;
    font-size: 13px;
    font-weight: 400;
    margin: 4px 0;
    line-height: 1.4;
}

.tool-panel label {
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 400;
}

.tool-panel h4 {
    color: #1a1a1a;
    margin: 8px 0 4px 0;
    font-size: 12px;
    font-weight: 500;
}

.tool-panel input[type="text"],
.tool-panel textarea {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 8px;
    font-size: 13px;
}

.tool-panel input[type="text"]:focus,
.tool-panel textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.tool-panel input[type="text"]::placeholder,
.tool-panel textarea::placeholder {
    color: var(--text-secondary);
    font-size: 13px;
}

.panel-button {
    width: 100%;
    padding: 8px 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 8px;
}

.panel-button:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.panel-button.secondary {
    background: #f3f4f6;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.panel-button.secondary:hover {
    background: #e5e7eb;
}

.panel-button.danger {
    background: #DC2626;
    color: white;
}

.panel-button.danger:hover {
    background: #b91c1c;
}

.panel-button.danger {
    background: #dc2626;
    color: #fff;
    border: none;
}

.panel-button.danger:hover {
    background: #b91c1c;
}

/* Clipping Method Selection */
.clipping-method-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.method-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-button:hover {
    background: #e5e7eb;
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.method-button.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.method-icon {
    width: 24px;
    height: 24px;
}

.method-controls {
    margin-top: 16px;
}

.method-instructions {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 12px 0;
    text-align: center;
    font-style: italic;
}

.panel-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.panel-actions .panel-button {
    flex: 1;
    margin-top: 0;
}


/* Footprint Status */
#footprintStatus {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    text-align: center;
    min-height: 20px;
}

/* Export Panel Specific */
/* Export Panel Specific Styles */
.export-panel {
    max-height: 90vh;
    overflow-y: auto;
}

.export-panel .panel-content {
    padding: 16px;
}

/* Tab Navigation */
.export-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.export-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-tab:hover {
    color: var(--text-primary);
}

.export-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Tab Content */
.export-tab-content {
    display: none;
}

.export-tab-content.active {
    display: block;
}

/* Compact Styles */
.compact-content {
    padding: 16px !important;
}

.visibility-options.compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.visibility-option.compact {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visibility-option.compact:hover {
    background: var(--bg-secondary);
}

.visibility-option.compact input[type="radio"] {
    margin-right: 10px;
}

.visibility-option.compact .visibility-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visibility-option.compact strong {
    font-size: 13px;
    color: var(--text-primary);
}

.visibility-option.compact small {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.compact-input, .compact-textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
}

/* Visibility Dropdown Styles */
.visibility-dropdown-container {
    margin-bottom: 12px;
}

.visibility-dropdown-container label {
    display: block;
    margin-bottom: 6px;
}

.visibility-dropdown {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
}

/* Ensure dropdown works in both panels */
.export-option select,
.tool-panel select {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
}

.compact-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: monospace;
    font-size: 12px;
}

.compact-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.button-row {
    display: flex;
    gap: 8px;
}

.button-row .panel-button {
    flex: 1;
}

.panel-button.compact {
    padding: 8px 14px;
    margin-top: 8px;
    font-size: 13px;
}

/* Save Notification */
.save-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.save-icon {
    width: 20px;
    height: 20px;
}

/* Preset buttons for transform panels */
.preset-buttons {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.preset-button {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 50px;
}

.preset-button:hover {
    background: #e5e7eb;
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.preset-button:active {
    background: #d1d5db;
    transform: scale(0.98);
}

/* Control group with slider and input - Body text */
.control-group {
    margin-bottom: 10px;
}

.control-group label {
    display: block;
    margin-bottom: 6px;
    color: #1a1a1a;
    font-weight: 400;
    font-size: 13px;
}

/* Checkbox group styling - Body text, consistent colors */
.tool-panel .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-panel .checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 400;
}

.tool-panel .checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0066cc;
}

.tool-panel .checkbox-group span {
    color: #1a1a1a;
    user-select: none;
}

.tool-panel .checkbox-group label:hover span {
    color: #0066cc;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-row input[type="range"] {
    flex: 1;
    margin: 0;
}

/* Dark theme for clipping panel */
#clippingPanel {
    background: rgba(30, 30, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

#clippingPanel .panel-header h3 {
    color: white;
}

#clippingPanel .panel-close {
    color: rgba(255, 255, 255, 0.8);
}

#clippingPanel .panel-close:hover {
    color: white;
}

#clippingPanel p {
    color: rgba(255, 255, 255, 0.8) !important;
}

#clippingPanel label {
    color: rgba(255, 255, 255, 0.9) !important;
}

#clippingPanel .clipping-tab {
    color: rgba(255, 255, 255, 0.6) !important;
    background: transparent !important;
    border-bottom: 2px solid transparent !important;
}

#clippingPanel .clipping-tab.active {
    color: white !important;
    border-bottom-color: #0066FF !important;
}

#clippingPanel .clipping-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8) !important;
}

#clippingPanel .panel-button {
    background: #0066FF;
    color: white;
}

#clippingPanel .panel-button:hover {
    background: #0052CC;
}

#clippingPanel .panel-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#clippingPanel .panel-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

#clippingPanel .panel-button.danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #EF4444;
}

#clippingPanel input[type="range"] {
    background: transparent;
}

#clippingPanel input[type="checkbox"] {
    accent-color: #0066FF;
}

#clippingPanel .loading-spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: #0066FF;
}

.slider-row span {
    min-width: 60px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 500;
}

/* Fine input controls */
.fine-input {
    width: 80px;
    padding: 6px 8px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: center;
}

.fine-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Ensure all input text is readable */
.fine-input::placeholder {
    color: var(--text-secondary);
}

.control-group input[type="number"] {
    color: var(--text-primary);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
}

/* Special case for full-width inputs */
.control-group.full-width .fine-input {
    width: 100%;
    margin-top: 8px;
}

/* Checkbox group styling */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group span {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Slider Group */
.slider-group {
    margin-bottom: 15px;
}

.slider-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-primary);
}

/* Panel Slider */
.panel-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.panel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.panel-slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.panel-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.panel-slider::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Panel-specific checkbox/radio styling - Body text, consistent colors */
.tool-panel .checkbox-label,
.tool-panel .radio-label {
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 400;
}

.panel-checkbox,
.panel-radio {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0066cc;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
}

/* Before/After Comparison Slider */
.before-after-slider {
    position: fixed;
    top: 60px; /* Position below header */
    left: 0;
    width: 100%;
    height: calc(100% - 60px); /* Adjust height to account for top offset */
    z-index: 999; /* Lower than header z-index (1000) */
    pointer-events: none; /* Allow mouse events to pass through to viewers */
}

/* Full height for share/embed mode */
.before-after-slider.full-height {
    top: 0;
    height: 100%;
}

/* Split viewer styles */
.split-viewer-active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0);
}

.cesium-viewer-half {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#viewer-after {
    /* Ensure after viewer receives pointer events on the right side */
    z-index: 11;
}

.split-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.comparison-label {
    position: absolute;
    bottom: 20px;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    z-index: 950; /* Below header (1000) but above slider divider (900) */
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* White background with transparency */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Black text */
    color: #000000;
}

.before-label {
    /* Position far to the left of the divider */
    right: 100px;
    left: auto;
}

.after-label {
    /* Position far to the right of the divider */
    left: 100px;
    right: auto;
}

.slider-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: ew-resize;
    pointer-events: all;
    transform: translateX(-50%);
    z-index: 800; /* Below header (1000) and toolbar (1100) */
}

/* Invisible clickable area for easier dragging */
.slider-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px; /* Much wider clickable area */
    height: 100%;
    cursor: ew-resize;
    z-index: 1;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-handle svg {
    pointer-events: none;
}

/* Render Controls */
.screenshot-controls {
    position: fixed;
    left: 88px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    z-index: 999;
    width: 320px;
    transition: all 0.3s ease;
}

.screenshot-controls.minimized {
    height: auto;
}

.screenshot-controls.minimized .panel-content {
    display: none;
}

.screenshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}


.capture-button { width: 100%; padding: 12px 20px; background: var(--primary); color: #fff; border: 1px solid transparent; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }

.capture-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); background: var(--primary-dark); }

.capture-button:active {
    transform: translateY(0);
}

.capture-button:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transform: none;
}

.camera-icon {
    width: 20px;
    height: 20px;
}

.resolution-select {
    width: 100%;
    padding: 10px 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.resolution-select:hover {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.2);
}

.resolution-select:focus {
    outline: none;
    border-color: #667eea;
}

.resolution-select option {
    background: white;
    color: var(--text-primary);
}

.custom-resolution {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.custom-resolution input {
    flex: 1;
    padding: 8px 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
}

.custom-resolution input:focus {
    outline: none;
    border-color: #667eea;
}

.custom-resolution span {
    color: var(--text-secondary);
    font-size: 16px;
}

.screenshot-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.screenshot-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    user-select: none;
}

.screenshot-options label:hover {
    color: var(--primary);
}

.screenshot-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Loading state */
.capture-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification animations */
@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    max-width: 300px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.loading-status {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    min-height: 20px;
}

.loading-progress {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Loading dots animation */
.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Render preview modal */
.screenshot-preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.screenshot-preview-content {
    background: #fff;
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: auto;
    box-shadow: var(--shadow-lg);
}

.screenshot-preview-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Portrait orientation optimization */
.screenshot-preview-content.portrait {
    max-width: min(90vw, 400px); /* Narrow width for portrait images */
    width: auto;
}

.screenshot-preview-content.portrait .screenshot-preview-image {
    max-height: 75vh; /* Allow more height for portrait */
    width: 100%;
    height: auto;
}

/* Stack buttons vertically in portrait mode */
.screenshot-preview-content.portrait .screenshot-preview-actions {
    flex-direction: column;
    width: 100%;
}

.screenshot-preview-content.portrait .screenshot-preview-actions button {
    width: 100%;
}

.screenshot-preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.screenshot-preview-actions button:hover { transform: translateY(-1px); transition: all 0.12s ease; }

.screenshot-preview-actions button { padding: 10px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid transparent; }

/* Preview button styles */
.preview-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: white;
}

.preview-button-primary {
    background: #667eea;
}

.preview-button-success {
    background: #10b981;
}

.preview-button-secondary {
    background: rgba(255,255,255,0.2);
}
/* New Landing Page Styles */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-tagline {
    font-size: 11px;
    color: #003d99;
    font-weight: 600;
    margin-left: 0;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.cta-button {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
    text-align: center;
    background: #030712;
}

.hero-immersive {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
    margin: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero-viewer-showcase {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #000;
}

.hero-viewer-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,6,23,0.5) 0%, rgba(2,6,23,0.65) 35%, rgba(2,6,23,0.85) 100%);
    pointer-events: none;
}

.hero-viewer-showcase iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 48px;
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    gap: 24px;
}

.hero-overlay-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    text-align: center;
    margin-bottom: 180px;
}

.hero-overlay-bottom {
    width: 100%;
    max-width: 720px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: auto;
}

.hero-description {
    font-size: 20px;
    color: rgba(226, 232, 240, 0.95);
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.hero-cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    text-align: center;
}

.hero-scroll-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.hero-scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 12px;
}

.hero-scroll-cue svg {
    width: 32px;
    height: 32px;
    animation: heroScroll 1.5s infinite;
}

.hero-scroll-label {
    font-size: 0.9rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

@keyframes heroScroll {
    0% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.7; }
}

.cta-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.secondary-button {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border: 1px solid var(--text-secondary);
    transition: all 0.2s;
    cursor: pointer;
}

.secondary-button:hover {
    border-color: var(--text-primary);
}

/* Device Showcase */
.device-showcase {
    max-width: 1400px;
    margin: 20px auto 60px;
    padding: 0 40px;
    position: relative;
    z-index: 100;
}

/* Hero Viewer Showcase */

.showcase-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    transform-style: preserve-3d;
    will-change: transform;
}

.device-wrapper {
    position: absolute;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style;
}

.desktop-wrapper {
    z-index: 10;
    will-change: transform;
}

.mobile-wrapper {
    z-index: 20;
    transform: translate3d(170px, 45px, 0);
    -webkit-transform: translate3d(170px, 45px, 0);
    will-change: transform;
}

.device-label {
    display: none; /* Hidden for layered layout */
}

/* Devices.css Overrides */
.device {
    margin: 0 auto;
}

.device-macbook-pro {
    transform: scale3d(0.95, 0.95, 1);
    -webkit-transform: scale3d(0.95, 0.95, 1);
    will-change: transform;
}

.device-iphone-14-pro {
    transform: scale3d(0.35, 0.35, 1);
    -webkit-transform: scale3d(0.35, 0.35, 1);
    will-change: transform;
}

.device .device-screen {
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
    z-index: 1;
}

/* Embedded Viewer Styles */
.embedded-viewer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #f0f0f0;
}

/* Device iframe styles */
.device-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* Ensure iframe in device screen is interactive */
.device-screen iframe {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .device-macbook-pro {
        transform: scale3d(0.8, 0.8, 1);
        -webkit-transform: scale3d(0.8, 0.8, 1);
    }
    
    .device-iphone-14-pro {
        transform: scale3d(0.3, 0.3, 1);
        -webkit-transform: scale3d(0.3, 0.3, 1);
    }
    
    .mobile-wrapper {
        transform: translate3d(140px, 40px, 0);
        -webkit-transform: translate3d(140px, 40px, 0);
    }
}

@media (max-width: 900px) {
    .showcase-container {
        min-height: 300px;
    }
    
    .device-macbook-pro {
        transform: scale3d(0.7, 0.7, 1);
        -webkit-transform: scale3d(0.7, 0.7, 1);
    }
    
    .device-iphone-14-pro {
        transform: scale3d(0.25, 0.25, 1);
        -webkit-transform: scale3d(0.25, 0.25, 1);
    }
    
    .mobile-wrapper {
        transform: translate3d(110px, 30px, 0);
        -webkit-transform: translate3d(110px, 30px, 0);
    }
}

@media (max-width: 600px) {
    .device-macbook-pro {
        transform: scale3d(0.55, 0.55, 1);
        -webkit-transform: scale3d(0.55, 0.55, 1);
    }
    
    .device-iphone-14-pro {
        transform: scale3d(0.2, 0.2, 1);
        -webkit-transform: scale3d(0.2, 0.2, 1);
    }
    
    .mobile-wrapper {
        transform: translate3d(80px, 25px, 0);
        -webkit-transform: translate3d(80px, 25px, 0);
    }
}

/* Features */
.features {
    padding: 40px 0 60px;
    background: var(--bg-primary);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.features-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-header .hero-description {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 20px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Features Section - Scroll Snap One at a Time
   ============================================ */
.features-storytelling {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.storytelling-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Left Side - Sticky CTA - Hidden */
.features-cta-sticky {
    display: none;
}

/* Features Content - Three on one page */
.features-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 80px 0;
}

/* Feature Story Layout - Split left/right */
.feature-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Challenge Box - Left Side */
.story-problem {
    padding: 40px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.problem-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 16px;
}

.story-problem h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 0;
}

.problem-impact {
    display: none;
}

/* Solution - Right Side, Clean */
.story-solution {
    display: block;
    padding: 40px;
    height: 100%;
}

.solution-badge {
    display: none;
}

.story-solution h3 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    line-height: 1.2;
}

.story-solution > p {
    font-size: 18px;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
}

.solution-benefits {
    list-style: disc;
    padding: 0;
    margin: 0;
    padding-left: 24px;
}

.solution-benefits li {
    font-size: 16px;
    color: #475569;
    padding: 6px 0;
    line-height: 1.6;
    font-weight: 400;
}

.solution-benefits li::before {
    display: none;
}

/* Accessibility - Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .feature-story {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-story {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-problem {
        padding: 32px;
    }

    .story-solution {
        padding: 32px;
    }

    .story-problem h3 {
        font-size: 24px;
    }

    .story-solution h3 {
        font-size: 28px;
    }

    .story-solution > p {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .storytelling-container {
        padding: 0 20px;
    }

    .features-scroll-content {
        gap: 40px;
        padding: 60px 0;
    }

    .feature-story {
        gap: 30px;
    }

    .story-problem {
        padding: 24px;
    }

    .story-solution {
        padding: 24px;
    }

    .story-problem h3 {
        font-size: 20px;
    }

    .story-solution h3 {
        font-size: 24px;
    }

    .story-solution > p {
        font-size: 16px;
    }

    .solution-benefits li {
        font-size: 15px;
    }
}

/* QR Code Styles */
#qrcodeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin: 16px 0;
    min-height: 200px;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrcode canvas {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#qrPlaceholder {
    color: #999;
    text-align: center;
    font-size: 14px;
}

#qrResolution {
    width: 100%;
}

/* Use Cases */
.use-cases {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.use-cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.use-cases-header {
    text-align: center;
    margin-bottom: 80px;
}

.use-cases-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.use-case {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.use-case h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.use-case ul {
    list-style: none;
    padding: 0;
}

.use-case li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.use-case li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-dark);
    color: white;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-section .cta-button {
    font-size: 18px;
    padding: 16px 32px;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive - Tablet/Medium screens */
@media (max-width: 1024px) {
    .nav {
        gap: 24px; /* Reduce gap on medium screens */
    }
}

/* Responsive - Small tablets and half-screen */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 40px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link, .nav .cta-button {
        width: 100%;
        text-align: left;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav .cta-button {
        margin-top: 20px;
        text-align: center;
    }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .hero {
        margin-top: 0;
        padding: 0;
    }

    .hero-overlay {
        padding: 120px 16px 40px;
    }

    .hero-overlay-center {
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: clamp(40px, 12vw, 64px);
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-buttons {
        width: 100%;
        max-width: 360px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        text-align: left;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* Phone specific adjustments */
@media (max-width: 480px) {
    .hero {
        margin-top: 0;
        padding: 0;
    }

    .hero-overlay {
        padding: 110px 14px 32px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-scroll-cue span,
    .hero-scroll-label {
        letter-spacing: 0.2em;
    }
}

/* Fix landing-page class to not override new design */
.landing-page {
    min-height: auto;
    background: none;
    color: inherit;
    padding: 0;
}

/* Share visibility options */
.visibility-options {
    margin: 15px 0;
}

.visibility-option {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
    gap: 8px;
}

.visibility-option:hover {
    background: #f9fafb;
    border-color: var(--primary);
}

.visibility-option.selected {
    background: #f3f4f6;
    border-color: var(--primary);
}

.visibility-option-header {
    display: flex;
    align-items: center;
}

.visibility-option-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.visibility-option-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.visibility-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
}

.visibility-option input[type="radio"]:checked + .visibility-label {
    color: var(--primary);
}

.visibility-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visibility-label strong {
    font-weight: 600;
    color: var(--text-primary);
}

.visibility-label small {
    font-size: 12px;
    color: var(--text-secondary);
}

#passwordSection input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

#passwordSection input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Export panel improvements */
.export-option {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.export-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.export-option h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.export-option p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

/* Export Panel Tabs */
.export-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.export-tab {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
}

.export-tab:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

.export-tab.active {
    color: var(--primary);
    background: rgba(0, 123, 255, 0.08);
}

.export-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.export-tab-content { /* remove lateral/opacity animations for stability */ }

.export-tab-content .export-option {
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* File status loading state */
.file-status.info {
    color: #3b82f6;
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.file-status.info::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Improved file status styling */
.file-status {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-block;
}

.file-status.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
}

.file-status.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
}

/* Shape Button Styles */
.shape-btn {
    position: relative;
    overflow: hidden;
}

.shape-btn:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.shape-btn.active {
    background: rgba(0,102,255,0.2) !important;
    border-color: rgba(0,102,255,0.4) !important;
}

.shape-btn svg {
    display: inline-block;
    vertical-align: middle;
}

/* Loading overlay fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply to loading overlays */
.loading-overlay-fade {
    animation: fadeIn 0.3s ease-out;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 400px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #0066FF;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: loadingSpinner 1s linear infinite;
}

@keyframes loadingSpinner {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.loading-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.loading-status {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.loading-dots {
    display: inline-block;
    width: 20px;
    margin-left: 4px;
}

.loading-dots::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

.loading-progress {
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    margin: 12px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: all 0.3s ease;
}

.loading-step::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 12px;
    display: inline-block;
    flex-shrink: 0;
}

.loading-step.active {
    color: rgba(255, 255, 255, 0.8);
}

.loading-step.active::before {
    border-color: #0066FF;
    background: radial-gradient(circle at center, #0066FF 0%, #0066FF 40%, transparent 40%);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-step.completed {
    color: white;
}

.loading-step.completed::before {
    background: #0066FF;
    border-color: #0066FF;
    animation: none;
}

.loading-step.completed {
    position: relative;
}

.loading-step.completed::after {
    content: '✓';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

@keyframes loadingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Camera Free Mode Indicator */
.camera-free-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.camera-free-indicator .camera-icon {
    width: 20px;
    height: 20px;
    stroke: #00ff9d;
}

.camera-free-indicator span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive adjustment for camera indicator */
@media (max-width: 768px) {
    .camera-free-indicator {
        bottom: 10px;
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .camera-free-indicator .camera-icon {
        width: 16px;
        height: 16px;
    }
}
/* Minimal Clock Widget */
.clock-minimal {
    position: absolute;
    top: 80px; /* Default for editor, will be overridden for viewer */
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 12px 16px;
    min-width: 140px;
    text-align: center;
    transition: all 0.3s ease;
}

.clock-minimal:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.clock-time {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.clock-date {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.nighttime-indicator {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 11px;
    color: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nighttime-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a90e2;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Panel Clock Controls */
.panel-separator {
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 15px 0;
}

.panel-time-input, .panel-date-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.time-scale-mini {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

.preset-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.preset-chip {
    padding: 6px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-chip:hover {
    background: #e0e0e0;
    border-color: #999;
}

.panel-button-small {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.panel-select-small {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.panel-button-mini {
    padding: 5px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.panel-button-mini:hover {
    background: #e0e0e0;
}

.panel-button-mini.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Legacy Simple Clock Widget (keeping for compatibility) */
.clock-widget-simple {
    display: none !important;
}

.clock-header {
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
    font-size: 15px;
}

.clock-description {
    color: #666;
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.clock-datetime {
    color: #000;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-input-styled, .date-input-styled {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 16px;
    color: #000;
    cursor: text;
    padding: 2px 4px;
    border-radius: 2px;
    transition: background-color 0.2s;
    position: relative;
}

.time-input-styled:hover, .date-input-styled:hover {
    background-color: #f0f0f0;
}

.time-input-styled:focus, .date-input-styled:focus {
    outline: 1px solid #ccc;
    background-color: #f9f9f9;
}

/* Chrome/Safari specific - style calendar/time picker icon */
.time-input-styled::-webkit-calendar-picker-indicator,
.date-input-styled::-webkit-calendar-picker-indicator {
    cursor: pointer;
    background: transparent;
    color: #666;
    padding: 2px;
    margin-left: -20px;
}

/* Firefox specific */
.time-input-styled[type="time"]::-moz-focus-inner,
.date-input-styled[type="date"]::-moz-focus-inner {
    border: 0;
}

.time-input-styled {
    width: 65px;
}

.date-input-styled {
    width: 110px;
}

/* Time of day slider */
.time-of-day {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 2px 10px;
}

.time-of-day-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9 0%, #22c55e 40%, #f59e0b 60%, #ef4444 85%, #0f172a 100%);
    outline: none;
}

.time-of-day-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #0ea5e9;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.12s ease;
}

.time-of-day-slider::-webkit-slider-thumb:hover { transform: scale(1.08); }

.time-of-day-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #0ea5e9;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.time-of-day-scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    padding: 0 2px;
}

/* Preset chips */
.preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.preset-chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.preset-chip:hover { background: #f9fafb; border-color: #cbd5e1; }
.preset-chip:active { transform: translateY(0.5px); }

/* Action buttons */
.clock-actions {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.action-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #111827;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn:hover { background: #f9fafb; border-color: #cbd5e1; }
.action-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.action-btn.primary:hover { background: var(--primary-dark); }

.clock-separator {
    color: #666;
    margin: 0;
}

.clock-animation {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
}

.play-btn-simple {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.play-btn-simple:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.speed-label {
    color: #000;
    font-size: 13px;
}

.speed-select-simple {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    color: #000;
    cursor: pointer;
}

.speed-select-simple:hover {
    border-color: #999;
}

.nighttime-simple {
    margin-top: 8px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Compact Clock Widget - Legacy */
.clock-widget {
    position: absolute;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    overflow: hidden;
}

/* Minimal clock display */
.clock-minimal {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 10px;
}

.clock-label {
    color: #666;
    font-size: 13px;
}

.clock-time {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.clock-separator {
    color: #999;
    font-size: 12px;
    margin: 0 4px;
}

.clock-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.clock-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 12px;
    margin-left: auto;
}

.clock-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Clock controls panel */
.clock-controls-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.clock-controls-inner {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.clock-controls-panel.expanded {
    max-height: 300px;
}

/* Time and Date Inputs */
.time-input, .date-input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    color: #333;
    width: 100%;
    margin-top: 4px;
}

.time-input:focus, .date-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.3);
    background: white;
}

.clock-description {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

.control-section {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-section:last-child {
    margin-bottom: 0;
}

.control-label {
    font-size: 12px;
    color: #666;
    min-width: 80px;
}

.control-value {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
}

/* Adjustment buttons */
.adjust-buttons {
    display: flex;
    gap: 4px;
}

.adjust-btn {
    padding: 4px 8px;
    font-size: 11px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.adjust-btn:hover {
    background: #0066FF;
    color: white;
    border-color: #0066FF;
}

/* Animation controls */
.animation-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0066FF;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.play-btn:hover {
    background: #0052CC;
    transform: scale(1.05);
}

.speed-select {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Nighttime notice */
.nighttime-notice {
    font-size: 12px;
    color: #0066FF;
    text-align: center;
    padding: 6px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 4px;
    margin-top: 8px;
}

/* Remove old flip clock styles - replaced with compact clock widget */

/* Share Options */
.share-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-option {
    display: block;
    cursor: pointer;
}

.share-option input[type="radio"] {
    display: none;
}

.share-option-content {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.share-option input[type="radio"]:checked + .share-option-content {
    border-color: var(--primary);
    background: rgba(0, 123, 255, 0.05);
}

.share-option-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.share-option-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Share Features List */
.share-features {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 12px;
}

.share-features-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.share-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.share-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-primary);
}

.share-feature-tag svg {
    width: 12px;
    height: 12px;
    stroke: var(--primary);
}

/* ============================================
   Tool Panel Responsive Styles
   ============================================ */

/* Tablet and medium screens */
@media (max-width: 900px) {
    .tool-panel {
        width: 240px;
    }
}

/* Mobile and small screens */
@media (max-width: 768px) {
    .tool-panel {
        right: 10px;
        width: 220px;
        max-height: calc(100vh - 100px);
    }

    .panel-header {
        padding: 6px 8px;
    }

    .panel-header h3 {
        font-size: 13px;
    }

    .panel-content {
        padding: 6px;
    }

    .panel-button {
        padding: 7px 10px;
        font-size: 13px;
        margin-bottom: 6px;
    }

    /* Keep 13px font on mobile for readability */
    .tool-panel label {
        font-size: 13px;
    }

    .control-group label {
        font-size: 13px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .tool-panel {
        width: 200px;
    }

    .panel-content {
        padding: 5px;
    }

    .tool-panel .checkbox-group input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}
