/* CSS Gradient Generator */
.gradient-card { max-width: 800px; }

.gradient-preview {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 3px solid var(--rosa-claro);
    background: linear-gradient(135deg, #ffd1dc, #c2f0fc);
    transition: background 0.2s;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .controls-grid { grid-template-columns: 1fr 1fr; }
}

.control-group { display: flex; flex-direction: column; }

.type-toggle {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.styled-range {
    width: 100%;
    accent-color: var(--rosa);
    margin-top: 0.5rem;
    cursor: pointer;
}

.color-stops { display: flex; flex-direction: column; gap: 0.6rem; }

.color-stop-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.color-picker {
    width: 48px;
    height: 38px;
    border: 2px solid var(--rosa-claro);
    border-radius: 10px;
    cursor: pointer;
    padding: 2px;
    background: transparent;
    flex-shrink: 0;
}

/* Tab buttons (reused from unit_converter) */
.tab-btn {
    background: transparent;
    border: 2px solid var(--rosa-claro);
    color: var(--texto);
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}
.tab-btn.active {
    background: var(--rosa);
    border-color: var(--rosa);
}
.tab-btn:hover:not(.active) {
    background: var(--azul-hover);
    border-color: var(--azul-pastel);
}
