/* ── Image Shadow Tool ─────────────────────────────────────── */
/* Prefix: isd-   Accent: #8B5CF6 */
.isd-section {
    padding: 40px 0 80px;
}

.isd-upload-zone {
    border: 2px dashed rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.04);
    padding: 56px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.isd-upload-zone:hover,
.isd-upload-zone:focus,
.isd-upload-zone.isd-drag-over {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.08);
}

.isd-upload-icon {
    font-size: 3rem;
    color: #8B5CF6;
    opacity: 0.7;
    margin-bottom: 14px;
    display: block;
}

.isd-upload-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.isd-upload-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Side-by-side layout ─────────────────────────────────── */
.isd-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 24px;
}

.isd-col-controls {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.isd-col-preview {
    min-width: 0;
}

/* ── Panel sections ──────────────────────────────────────── */
.isd-panel-section {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: .85rem 1rem;
}

.isd-panel-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 .6rem;
}

/* ── Presets (type tabs) ─────────────────────────────────── */
.isd-type-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.isd-type-tab {
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.isd-type-tab:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.isd-type-tab.active {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: #fff;
}

/* ── Slider ──────────────────────────────────────────────── */
.isd-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(139, 92, 246, 0.2);
    outline: none;
    cursor: pointer;
}

.isd-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8B5CF6;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.isd-val-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 0.8125rem;
    font-family: monospace;
}

/* ── Color input ─────────────────────────────────────────── */
.isd-color-input {
    width: 48px;
    height: 36px;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    background: none;
    cursor: pointer;
    padding: 2px;
    display: block;
}

/* ── Format select ───────────────────────────────────────── */
.isd-select {
    width: 100%;
    padding: .45rem .75rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    color: var(--text-primary, #0f172a);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.25rem;
}

.isd-select:focus {
    border-color: #8B5CF6;
}

/* ── Actions ─────────────────────────────────────────────── */
.isd-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.isd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.isd-btn-primary {
    background: #8B5CF6;
    color: #fff;
    border-color: #8B5CF6;
}

.isd-btn-primary:hover {
    filter: brightness(1.1);
}

.isd-btn-ghost {
    background: #F1F5F9;
    color: var(--text-secondary, #64748b);
    border-color: rgba(100, 116, 139, .2);
}

.isd-btn-ghost:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

/* ── Preview ─────────────────────────────────────────────── */
.isd-preview-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.isd-preview-pane {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.isd-pane-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    text-align: center;
}

.isd-canvas {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: block;
    background: #f1f5f9;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .isd-layout {
        grid-template-columns: 1fr;
    }

    .isd-col-controls {
        position: static;
    }

    .isd-type-tab {
        font-size: 0.8125rem;
        padding: 0.35rem 0.6rem;
    }
}

@media (max-width: 600px) {
    .isd-preview-wrap {
        grid-template-columns: 1fr;
    }
}
