/* ==========================================================================
   MOCKUP STUDIO V2 CSS
   ========================================================================== */

.mockup-main {
    background: transparent;
}

.editor-toolbar select,
.properties-panel select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2310B981%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem top 50%;
    background-size: .65rem auto;
    padding-right: 2rem !important;
}

.bg-btn {
    transition: transform 0.2s, box-shadow 0.2s;
}
.bg-btn:hover {
    transform: scale(1.1);
}
.bg-btn.active {
    box-shadow: 0 0 0 3px #0A0F1A, 0 0 0 5px #10B981;
}

#canvas-wrapper {
    /* Adding a subtle transition makes resizing preset sizes feel smoother */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* No scale transition so dragging remains perfectly 1:1 mapped to mouse coords instantly */
}

/* Scrollbars for text areas */
#text-content-input::-webkit-scrollbar {
    width: 6px;
}
#text-content-input::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}
#text-content-input::-webkit-scrollbar-thumb {
    background: #10B981;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .editor-workspace {
        flex-direction: column;
    }
    .properties-panel {
        width: 100% !important;
    }
    .canvas-container {
        min-height: 50vh;
    }
}

@keyframes pulse {
    0%   { opacity: 1;   transform: scale(1); }
    50%  { opacity: 0.8; transform: scale(0.95); }
    100% { opacity: 1;   transform: scale(1); }
}

/* ==========================================================================
   PREMIUM INSPECTOR CONTROLS (Mockup Studio properties panel)
   Scoped to .properties-panel so other pages using scanner.css are untouched
   ========================================================================== */

/* Panel scrolls cleanly when the inspector is taller than the workspace */
.properties-panel {
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.4) transparent;
    flex: 0 0 320px;
}
.properties-panel::-webkit-scrollbar { width: 6px; }
.properties-panel::-webkit-scrollbar-track { background: transparent; }
.properties-panel::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.35);
    border-radius: 6px;
}
.properties-panel::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.6); }

/* Section labels get a quiet emerald tick so groups read as sections */
.properties-panel .cyber-label {
    color: var(--text-faint);
    letter-spacing: 1.5px;
}

/* Range sliders */
.properties-panel input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    cursor: pointer;
}
.properties-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10B981;
    border: 2px solid #0A0F1A;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.6), 0 2px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.properties-panel input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); }
.properties-panel input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid #0A0F1A;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.6);
    cursor: pointer;
}
.properties-panel input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

/* Checkboxes -> custom emerald check */
.properties-panel input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.properties-panel input[type="checkbox"]:hover { border-color: rgba(16, 185, 129, 0.5); }
.properties-panel input[type="checkbox"]:checked {
    background: #10B981;
    border-color: #10B981;
}
.properties-panel input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #04140d;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Unified focus ring for every text control in the panel */
.properties-panel select:focus,
.properties-panel textarea:focus,
.properties-panel input[type="text"]:focus {
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

/* Toggle rows read as settings rows */
.properties-panel input[type="checkbox"] {
    margin-right: 2px;
}
