/* Design Pilot - Pro Styles */

#dp-scanner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06B6D4;
    font-family: 'JetBrains Mono', monospace;
    transition: opacity 0.5s ease;
}

#dp-scanner-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.scanner-container {
    text-align: center;
}

.scanner-line {
    width: 300px;
    height: 2px;
    background: #06B6D4;
    box-shadow: 0 0 15px #06B6D4, 0 0 30px #06B6D4;
    position: relative;
    margin-bottom: 20px;
    animation: scan 2s infinite ease-in-out;
}

.scanner-text {
    font-size: 12px;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes scan {
    0%, 100% { transform: translateY(-20px); opacity: 0.3; }
    50% { transform: translateY(20px); opacity: 1; }
}

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

/* Container for React App */
#design-studio-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    background: white;
}

/* Global Pro Scrollbar Styles for Design Pilot */
#design-studio-root ::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

#design-studio-root ::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

#design-studio-root ::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
}

#design-studio-root ::-webkit-scrollbar-thumb:hover,
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
    background-clip: content-box;
}

/* Light mode support for the studio scrollbar */
html[data-theme='light'] #design-studio-root ::-webkit-scrollbar-thumb,
html[data-theme='light'] .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

html[data-theme='light'] #design-studio-root ::-webkit-scrollbar-thumb:hover,
html[data-theme='light'] .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Pro Animations for Design Studio */
@keyframes studio-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes studio-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes studio-entrance-combined {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pro Animations for Design Studio - Scoped to avoid affecting main site */
#design-studio-root .animate-in,
.design-studio-pro .animate-in {
    animation-duration: 300ms;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

#design-studio-root .fade-in,
.design-studio-pro .fade-in {
    animation-name: studio-fade-in-up;
}

#design-studio-root .zoom-in,
.design-studio-pro .zoom-in {
    animation-name: studio-zoom-in;
}

#design-studio-root .fade-in.zoom-in,
.design-studio-pro .fade-in.zoom-in {
    animation-name: studio-entrance-combined;
}

/* Duration helpers */
#design-studio-root .duration-200, .design-studio-pro .duration-200 { animation-duration: 200ms !important; }
#design-studio-root .duration-300, .design-studio-pro .duration-300 { animation-duration: 300ms !important; }
#design-studio-root .duration-500, .design-studio-pro .duration-500 { animation-duration: 500ms !important; }
#design-studio-root .duration-700, .design-studio-pro .duration-700 { animation-duration: 700ms !important; }
#design-studio-root .duration-1000, .design-studio-pro .duration-1000 { animation-duration: 1000ms !important; }
