* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-500: #737373;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-950: #0a0a0a;
    --white: #ffffff;
    --black: #000000;
}
.css-output-container pre{background:unset}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--neutral-100);
    color: var(--black);
    line-height: 1.5;
}
#header-nguyenlan{position: absolute;background: transparent;}
#header-nguyenlan .account-item,#header-nguyenlan .header-language-dropdown__link{background-color: #f3f4f6;border-radius: var(--radius-lg);
}
#header-nguyenlan .image-icon img{width:20px}
header {
    position: relative;
	
}

.alpha-header-bg {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: -1;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.gradient-preview {
    width: 100%;
 
    background: linear-gradient(90deg, rgb(9, 9, 121) 35%, rgb(0, 255, 102) 100%);
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-top: 1px solid var(--neutral-200);
    border-bottom: 1px solid var(--neutral-200);
    min-height: 320px;
    font-weight: 500;
}

.slider-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
}

.slider-row {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.slider-wrapper {
    position: relative;
    padding: 0 24px;
}

.gradient-slider {
    position: relative;
    height: 24px;
    cursor: copy;
    border-radius: 6px;
    box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--white);
    touch-action: none;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.slider-track {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(to right, rgb(9, 9, 121) 35%, rgb(0, 255, 102) 100%);
}

.color-stops-container {
    position: absolute;
    inset: 0;
    z-index: 20;
}

.color-stop {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}

.color-stop-handle {
    width: 16px;
    height: 44px;
    border-radius: 9999px;
    cursor: move;
    border: 2px solid var(--black);
    box-shadow: inset 0 0 0 2px var(--white);
    transition: box-shadow 0.15s;
}

.color-stop-handle:hover,
.color-stop.active .color-stop-handle {
    box-shadow: inset 0 0 0 2px var(--white), 0 0 0 4px rgba(0, 0, 0, 0.25);
}

.color-stop-input {
    position: absolute;
    width: 55px;
    height: 32px;
    padding: 0 8px;
    font-size: 14px;
    text-align: center;
    border: 1px solid var(--neutral-200);
    border-radius: 4px;
    background: var(--white);
    outline: none;
    top: 52px;
    font-family: inherit;
}

.color-stop-input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 2px var(--black);
}

.color-stop.active .color-stop-input {
    border-color: var(--black);
    box-shadow: 0 0 0 2px var(--black);
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 24px 0;
    border-top: 1px solid var(--neutral-200);
}

.type-angle-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.type-buttons {
    display: flex;
}

.type-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 36px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--neutral-200);
    background: var(--white);
    cursor: pointer;
    transition: all 0.15s;
    color: var(--neutral-700);
}

.type-btn:first-child {
    border-radius: 4px 0 0 4px;
    margin-right: -1px;
}

.type-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.type-btn.active {
    background: var(--neutral-100);
    color: var(--black);
}

.angle-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.angle-picker {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--black);
    cursor: pointer;
}

.angle-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.angle-input {
    width: 66px;
    height: 36px;
    padding: 0 12px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid var(--neutral-200);
    border-radius: 4px;
    background: var(--white);
    outline: none;
}

.angle-input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 2px var(--black);
}

.presets-group {
    display: flex;
    gap: 8px;
}

.preset-swatch {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.preset-swatch:hover {
    box-shadow: 0 0 0 2px var(--black), inset 0 0 0 2px var(--white);
}

.editor-section {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    border-top: 1px solid var(--neutral-200);
    padding: 20px 24px 32px;
}

.editor-main {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    flex: 1;
}

.picker-column {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    font-size: 12px;
    color: var(--neutral-500);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
}

.color-canvas-wrapper {
    position: relative;
    aspect-ratio: 5 / 4;
    width: 100%;
    border: 1px solid var(--neutral-200);
    border-radius: 4px;
    overflow: hidden;
    touch-action: none;
}

.color-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.canvas-picker {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--black);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 50;
}

.inputs-column {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--neutral-500);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
}

.text-input,
.number-input {
    height: 36px;
    width: 100%;
    padding: 0 12px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 400;
    border: 1px solid var(--neutral-200);
    border-radius: 4px;
    background: var(--white);
    color: var(--black);
    outline: none;
    transition: border 0.15s, box-shadow 0.15s;
}

.text-input:focus,
.number-input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 2px var(--black);
    z-index: 50;
}

.rgba-inputs-group {
    display: flex;
}

.rgba-inputs-group .input-first .number-input {
    border-radius: 4px 0 0 4px;
}

.rgba-inputs-group .input-middle .number-input {
    border-radius: 0;
    margin-left: -1px;
}

.rgba-inputs-group .input-last .number-input {
    border-radius: 0 4px 4px 0;
    margin-left: -1px;
}

.flex-1 {
    flex: 1;
}

.sliders-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 8px;
}

.hue-slider-wrapper,
.alpha-slider-wrapper {
    position: relative;
    height: 12px;
}

.hue-slider {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right,
            #ff0000 0%,
            #ffff00 17%,
            #00ff00 33%,
            #00ffff 50%,
            #0000ff 67%,
            #ff00ff 83%,
            #ff0000 100%);
    touch-action: none;
}

.alpha-slider-wrapper {
    position: relative;
}

.alpha-checker {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.alpha-slider {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, rgba(9, 9, 121, 0), rgb(9, 9, 121));
    touch-action: none;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 20px;
    border-radius: 9999px;
    border: 2px solid var(--black);
    box-shadow: inset 0 0 0 2px var(--white);
    background: transparent;
    cursor: grab;
}

.slider-thumb:active {
    cursor: grabbing;
}

.divider-vertical {
    display: none;
    width: 1px;
    background: var(--neutral-200);
}

.stops-column {
    min-width: 216px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stops-list {
    display: flex;
    flex-direction: column;
    margin: 0 -8px;
}

.stop-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.stop-row:hover {
    background: var(--neutral-100);
}

.stop-row.active {
    background: var(--neutral-100);
}

.stop-color-preview {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.stop-row.active .stop-color-preview {
    border: 1px solid var(--black);
    box-shadow: 0 0 0 1px var(--black), inset 0 0 0 2px var(--white);
}

.stop-hex-input {
    height: 36px;
    width: 108px;
    padding: 0 12px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 400;
    border: 1px solid var(--neutral-200);
    border-radius: 4px;
    background: var(--white);
    color: var(--black);
    outline: none;
}

.stop-hex-input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 2px var(--black);
}

.stop-position-input {
    height: 36px;
    width: 66px;
    padding: 0 12px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 400;
    border: 1px solid var(--neutral-200);
    border-radius: 4px;
    background: var(--white);
    color: var(--black);
    outline: none;
}

.stop-position-input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 2px var(--black);
}

.stop-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--neutral-500);
    cursor: pointer;
    transition: color 0.15s;
    border-radius: 4px;
}

.stop-delete-btn:hover {
    color: var(--black);
}

.stop-delete-btn svg {
    width: 16px;
    height: 16px;
}

.css-output-container {
    max-width: 1200px;
    margin: 8px auto 0;
    background: var(--neutral-950);
    border-radius: 6px;
    font-weight: 500;
}

.css-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--neutral-800);
}

.css-title {
    color: var(--white);
    font-weight: 900;
}

.compatibility-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-200);
    font-size: 14px;
}

.checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #a3a3a3;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--white);
}

.css-code-wrapper {
    display: flex;
    gap: 32px;
    padding: 16px 20px;
	min-height:172px;
}

.line-numbers {
    display: none;
    flex-direction: column;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--neutral-700);
    line-height: 1.75;
    font-size: 14px;
}

.css-code {
    flex: 1;
    color: var(--white);
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-all;
}

.css-code .property {
    color: #5eead4;
}

.copy-wrapper {
    padding: 16px 20px 32px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 900;
    font-family: inherit;
    border: none;
    border-radius: 4px;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: transform 0.1s;
}

.copy-btn:active {
    transform: scale(0.975);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.css-columns {
    display: flex;
    flex-direction: column;
}

.css-column {
    flex: 1;
}

.css-column-divider {
    height: 1px;
    background: var(--neutral-800);
}

.css-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--neutral-800);
	height:50px;
}

.css-column-title {
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.text-case-toggle {
    display: flex;
    gap: 4px;
}

.case-btn {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--neutral-700);
    background: transparent;
    color: var(--neutral-500);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.case-btn:hover {
    border-color: var(--neutral-500);
    color: var(--neutral-300);
}

.case-btn.active {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.text-preview-wrapper {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;background:#fff;
	width:95%;margin-left:auto;margin-right:auto;margin-top:15px;
}

.text-gradient-preview {
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(90deg, rgb(9, 9, 121) 35%, rgb(0, 255, 102) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .slider-section {
        padding: 24px;
    }

    .controls-row {
        padding: 36px 24px 0;
    }

    .editor-section {
        padding: 32px 24px;
    }

    .css-code-wrapper {
        padding: 16px 32px;
    }

    .copy-wrapper {
        padding: 16px 32px 32px;
    }

    .css-header {
        padding: 16px 32px;
    }

    .css-code {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .slider-row {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }

    .slider-wrapper {
        flex: 1;
        padding: 0;
    }

    .controls-row {
        justify-content: flex-start;
        padding-top: 0;
        border-top: none;
    }

    .line-numbers {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .alpha-header-bg {
        top: 64px;
        
    }

    .gradient-preview {
        height: 240px;
    }

    .main-container {
        border: 1px solid var(--neutral-200);
        border-radius: 6px;
        margin-top: -48px;
    }

    .slider-section {
        padding: 24px 32px;
    }

    .slider-row {
        gap: 48px;
    }

    .controls-row {
        gap: 48px;
    }

    .editor-section {
        padding: 20px 32px 32px;
    }

    .divider-vertical {
        display: block;
    }

    .presets-group {
        gap: 12px;
    }

    .css-columns {
        flex-direction: row;
    }

    .css-column-divider {
        width: 1px;
        height: auto;
    }

    .text-gradient-preview {
        font-size: 32px;
    }

    .css-column-header {
        padding: 12px 32px;
    }

    .css-column .css-code-wrapper {
        padding: 16px 32px;
    }

    .css-column .copy-wrapper {
        padding: 16px 32px 24px;
    }
}