/* Framing Adjustment Controls */
.framing-group {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-top: 10px;
}

.form-section-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.live-preview-box {
    width: 100%;
    height: 200px;
    background: #05070a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e293b;
    margin-bottom: 20px;
}

.live-preview-box img {
    width: 100%;
    height: 100%;
    display: block;
}

.framing-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-item label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.control-item label span {
    color: var(--accent-green);
}

/* Custom Range Input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #1e293b;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(0, 245, 155, 0.3);
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #1e293b;
    border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: pointer;
    border: none;
}

.highlight-pulse {
    animation: pulse-border 2s ease-in-out infinite;
    border-left: 4px solid var(--accent-green) !important;
    background: rgba(0, 245, 155, 0.05) !important;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 245, 155, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 245, 155, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 245, 155, 0);
    }
}

/* Framing photo strip */
.framing-strip-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #1e293b;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    opacity: 0.7;
}

.framing-strip-thumb:hover {
    border-color: #00f59b88;
    transform: scale(1.08);
    opacity: 1;
}

.framing-strip-thumb.active {
    border-color: #00f59b !important;
    box-shadow: 0 0 0 2px rgba(0, 245, 155, 0.3);
    transform: scale(1.05);
    opacity: 1;
}

.framing-strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}