.mixer-page {
    max-width: var(--small-width);
    margin: 0 auto;
    padding: 20px;
}

.input-section {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.color-panel {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
}

.color-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-input-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.hex-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    background: #f9fafb;
    font-family: monospace;
    color: #374151;
}

.color-picker {
    width: 50px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.preset-colors {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    width: 100%;
}

.preset-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    justify-self: center;
}

.preset-btn:hover {
    transform: scale(1.2);
    border-color: #9ca3af;
}

.center-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.swap-btn {
    width: 44px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.mode-select {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
}

.result-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.result-header {
    margin-bottom: 20px;
}

.result-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

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

.slider-label {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.mix-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    appearance: none;
    cursor: pointer;
}

.mix-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mix-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.slider-value {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-width: 40px;
    text-align: right;
}

.result-preview {
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-hex {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: monospace;
}

.result-formats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.format-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.format-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.format-value {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    font-family: monospace;
}

.gradient-bar {
    height: 12px;
    border-radius: 6px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .input-section {
        flex-direction: column;
    }
    
    .center-controls {
        padding-top: 0;
        flex-direction: row;
        justify-content: center;
    }
    
    .result-formats {
        grid-template-columns: 1fr;
    }
    
    .preset-colors {
        grid-template-columns: repeat(8, 1fr);
    }
}