/**
 * Premium Wedding Invitation PDF Editor Stylesheet
 * Luxury gold & dark slate styling, responsive 3-column layout, interactive preview stage
 */

:root {
    --gold-primary: #d4af37;
    --gold-light: #f5e6a8;
    --gold-dark: #aa8214;
    --stage-bg: #1e222b;
    --panel-bg: #ffffff;
    --border-color: #e2e8f0;
}

/* Custom scrollbars */
.editor-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.editor-scrollbar::-webkit-scrollbar-track {
    background: #f8fafc;
}

.editor-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.editor-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Page Thumbnail Item */
.thumb-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.thumb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.thumb-card.active-page {
    border-color: #6366f1 !important;
    background-color: #eef2ff !important;
    box-shadow: 0 0 0 2px #6366f1;
}

.thumb-card.is-unselected {
    opacity: 0.55;
    filter: grayscale(40%);
}

.thumb-card.is-unselected:hover {
    opacity: 0.85;
    filter: none;
}

/* Center Stage Viewport - Fixed 9:16 Invitation Aspect Ratio */
.stage-canvas-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.15s ease-out;
    aspect-ratio: 259.2 / 460.8;
    min-height: 520px;
}

/* Interactive Overlay on Canvas */
.preview-interactive-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

/* Page 1 Recipient Name Exact Styling - Fixed #868454 */
#liveOverlayNameText {
    color: #868454 !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Interactive Checkbox Hitbox on Live Preview */
.interactive-check-box {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.interactive-check-box:hover {
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 0 1.5px rgba(99, 102, 241, 0.5);
}

.interactive-check-box svg {
    width: 85%;
    height: 85%;
    display: block;
    pointer-events: none;
    margin: auto;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

/* Glowing download button */
.btn-download-gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa8214 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.25s ease;
}

.btn-download-gold:hover {
    background: linear-gradient(135deg, #e5c04b 0%, #ba9018 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-1px);
}

.btn-download-gold:active {
    transform: translateY(1px);
}

/* Shimmer animation for download loading */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer-progress {
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #6366f1 100%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite linear;
}
