/* Try-It widget styles (extracted from templates/welcome.html) */
.try-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,243,250,0.96));
    box-shadow: 0 12px 30px rgba(18,18,18,0.08);
    align-items: stretch;
}

.try-top {
    display:flex;
    gap:12px;
    align-items:center;
    width:100%;
    flex-wrap:wrap;
}

.try-input {
    flex:1 1 320px;
    padding:12px 14px;
    border-radius:10px;
    border:1px solid rgba(0,0,0,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    font-size:1em;
}

.try-actions {
    display:flex;
    gap:8px;
    align-items:center;
}

.try-small {
    padding:8px 12px;
    border-radius:10px;
    background:linear-gradient(135deg,#7b1fa2,#ab47bc);
    color:#fff;
    border:0;
    cursor:pointer;
    box-shadow: 0 6px 18px rgba(123,31,162,0.18);
    transition: transform .15s ease, box-shadow .15s ease;
    font-weight:600;
}

.try-small:hover{ transform: translateY(-3px); box-shadow: 0 10px 28px rgba(123,31,162,0.22); }

.try-options { display:flex; gap:10px; align-items:center; color:#555; font-size:0.95em; }

.try-output {
    background: #fbfbff;
    border-radius:10px;
    padding:12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Courier New', monospace;
    font-size:0.88em;
    color:#222;
    white-space:pre-wrap;
    position:relative;
    max-height: 280px; /* compact height */
    overflow: auto;   /* enable scrolling for large JSON */
}

.copy-btn {
    position:absolute;
    right:8px; top:8px;
    background:transparent; border:0; color:#7b1fa2; cursor:pointer; font-weight:700;
}
