* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 1000px;
}

.title {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Demo Section */
.demo-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.slider-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.slider-header h3 {
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slider-header h3 i {
    color: #667eea;
    font-size: 1.5rem;
}

.value-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 80px;
    text-align: center;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.unit-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Range Slider */
.range-slider {
    position: relative;
    height: 60px;
    margin: 2rem 0;
    padding: 0 1rem;
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transform: translateY(-50%);
}

.slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.slider-handle {
    position: absolute;
    top: 50%;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 0 4px rgba(255, 255, 255, 0.05),
                inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.slider-handle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4),
                0 0 0 6px rgba(102, 126, 234, 0.2),
                0 0 30px rgba(102, 126, 234, 0.3),
                inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.slider-handle:active,
.slider-handle.dragging {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Input Group */
.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.range-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.range-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-unit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    pointer-events: none;
    margin-top: 0.65rem;
}

/* Presets */
.presets {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.preset-btn:active {
    transform: translateY(0);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.feature-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.feature-card h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .title {
        font-size: 1.8rem;
    }

    .slider-card {
        padding: 1.5rem;
    }

    .slider-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .value-badge {
        font-size: 1rem;
        padding: 0.4rem 1rem;
        min-width: 70px;
    }

    .slider-handle {
        width: 2rem;
        height: 2rem;
    }

    .input-group {
        grid-template-columns: 1fr;
    }

    .presets {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Remove number input arrows */
.range-input::-webkit-outer-spin-button,
.range-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.range-input[type=number] {
    -moz-appearance: textfield;
}
