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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.color-picker-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.color-preview {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #00d9ff;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    border-radius: 50%;
}

#native-picker {
    position: absolute;
    width: 180px;
    height: 180px;
    opacity: 0;
    cursor: pointer;
    border-radius: 50%;
}

.color-values {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.value-group label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.value-box {
    display: flex;
    gap: 10px;
}

.value-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.value-box input:focus {
    outline: none;
}

.copy-btn {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: #00d9ff;
}

.copy-btn.copied {
    background: #00ff88;
    border-color: #00ff88;
    color: #1a1a2e;
}

.sliders-section {
    margin-bottom: 25px;
}

.sliders-section h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.slider-group label {
    width: 25px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.slider-group input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

#r-slider {
    background: linear-gradient(to right, #000, #ff0000);
}

#g-slider {
    background: linear-gradient(to right, #000, #00ff00);
}

#b-slider {
    background: linear-gradient(to right, #000, #0000ff);
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-group span {
    width: 40px;
    text-align: right;
    color: #fff;
    font-size: 14px;
    font-family: 'Consolas', monospace;
}

.palette-section h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.palette-color {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.palette-color:hover {
    transform: scale(1.1);
    border-color: #fff;
}

.add-color-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-color-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: #00d9ff;
    color: #00d9ff;
}

.footer {
    text-align: center;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #00d9ff;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

@media (max-width: 480px) {
    .card {
        padding: 25px;
    }
    
    .color-preview {
        width: 140px;
        height: 140px;
    }
    
    #native-picker {
        width: 140px;
        height: 140px;
    }
}