/* ==========================================================================
   File: Tool/3d/ui/color-picker.css
   KHALA STUDIO — BORDERLESS FLOATING COLOR PICKER
   ========================================================================== */

.k-color-dialog {
    position: fixed;
    top: 80px;
    right: 340px;
    width: 500px;
    background: #222226;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    color: #f1f3f4;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2000000;
}

.k-color-title-bar {
    height: 38px;
    background: #1c1c20;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #8c8c94;
    cursor: move;
}

.k-color-close-icon {
    font-size: 18px;
    cursor: pointer;
    color: #8c8c94;
}

.k-color-dialog-body {
    padding: 16px;
    display: flex;
    gap: 14px;
}

/* Functional Saturation/Brightness Canvas Box */
.k-color-sv-box {
    width: 220px;
    height: 220px;
    position: relative;
    cursor: crosshair;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.k-color-sv-white {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.k-color-sv-black {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000000, rgba(0, 0, 0, 0));
}

.k-color-sv-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px #ffffff, 0 0 4px rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Functional Hue Strip */
.k-color-hue-bar {
    width: 24px;
    height: 220px;
    position: relative;
    border-radius: 6px;
    background: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
    cursor: pointer;
    flex-shrink: 0;
}

.k-color-hue-arrow {
    position: absolute;
    left: -3px;
    right: -3px;
    height: 6px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transform: translateY(-50%);
    pointer-events: none;
    border-radius: 2px;
}

.k-color-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.k-color-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.k-color-btn {
    height: 30px;
    border-radius: 8px;
    border: none;
    background: #2b2b32;
    color: #e4e4e7;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.k-color-btn.primary {
    background: #0A84FF;
    color: #ffffff;
}

.k-color-preview-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.k-color-preview-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 48px;
    font-size: 0.6875rem;
    color: #8c8c94;
}

.k-color-preview-box {
    width: 60px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.k-color-preview-new,
.k-color-preview-cur {
    flex: 1;
    width: 100%;
}

.k-color-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.k-color-input-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.k-color-input-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #a1a1aa;
}

.k-color-input-row label {
    width: 32px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.k-color-num-input {
    width: 44px;
    height: 24px;
    background: #18181a;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.75rem;
    text-align: center;
    font-family: monospace;
    outline: none;
}

.k-color-unit {
    font-size: 0.6875rem;
    color: #71717a;
}

.k-color-hex-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #18181a;
    border: none;
    border-radius: 8px;
    padding: 0 10px;
    height: 30px;
    margin-top: 4px;
}

.k-color-hex-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.8125rem;
    font-weight: 500;
}