/* =================================================================== */
/* 페이지 특정 CSS (색상 변환기용)                                      */
/* =================================================================== */

.converter-layout {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rg-spacing-large);
}
.control-panel { flex: 1; min-width: 320px; }
.palette-panel { flex: 1; min-width: 320px; }

.color-preview {
    width: 100%;
    height: 150px;
    border-radius: var(--rg-border-radius);
    border: 1px solid var(--rg-color-border);
    margin-bottom: var(--rg-spacing-large);
    transition: background-color 0.3s;
}

.input-with-copy {
    display: flex;
    align-items: center;
    gap: 8px;
}
.input-with-copy .rg_form_input {
    background-color: var(--rg-color-secondary);
}
.copy-btn {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border: none;
    background-color: transparent;
    color: var(--rg-color-text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: var(--rg-border-radius);
    transition: all 0.2s;
}
.copy-btn:hover {
    background-color: var(--rg-color-secondary);
    color: var(--rg-color-primary);
}

.rgb-sliders .rg_form_group {
    display: flex; align-items: center; gap: 10px;
}
.rgb-sliders .slider-label {
    width: 20px; font-weight: 600;
}
.rgb-sliders input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px;
    background: var(--rg-color-secondary);
    border-radius: 5px;
    outline: none;
}
.rgb-sliders input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--rg-color-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--rg-shadow-sm);
}
.rgb-sliders .slider-value {
    width: 50px; text-align: right;
}

.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}
.color-swatch {
    aspect-ratio: 1 / 1;
    border-radius: var(--rg-border-radius);
    cursor: pointer;
    border: 1px solid var(--rg-color-border);
    transition: transform 0.2s;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.color-swatch:hover {
    transform: scale(1.1);
}