/* modal_colors.css */

.modal.colors .btn {
    padding: 5px 22px 5px 22px;
    min-width: 84px;
}

.modal.colors .modal-header {
    padding: 12px 30px;
    padding-right: 40px; 
}
.modal.colors .modal-body {
    padding: 8px 0px 30px 30px;
}

.modal.colors span {
    color: #898586;
    font-size: 16px;
    font-weight: 600;
}

.modal.colors h4 {
    font-size: 15px;
}
.modal.colors h5 {
    font-size: 11px;
    text-transform: uppercase;
    margin: 10px 0px 6px 0px; 
}

.modal.colors .ui-list {
    min-width: 200px; 
}
.modal.colors .ui-list li {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer; 
}
.modal.colors .ui-list li:hover {
    background-color: #E4F7FF; 
}
.modal.colors .ui-list li.active {
    background-color: #ffedf1;
    border-left: 4px solid #ff7091;
    cursor: default; 
}
.modal.colors .ui-list .color-indicator {
    width: 24px;
    height: 24px;
    border: 1px solid #AFAFAF;
    background: white; 
}

.modal.colors .config_buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    gap: 20px;
    min-width: 250px;
}

.modal.colors .color_picker_dialog {
    display: inline-block;
    position: relative;
    width: 150px;
    margin-left: 40px;
    margin-right: 40px;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* hue_bar style */
.modal.colors .color_picker_dialog .hue_bar {
    background: -webkit-linear-gradient(left, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
    background: linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
    width: 150px;
    height: 10px;
    margin-top: 3px;
    margin-bottom: 7px;
    border-radius: 6px;
    position: relative;
    display: flex;
    cursor: pointer;
}
/* hue_picker style */
.modal.colors .color_picker_dialog .hue_bar .hue_picker {
    position: absolute;
    left: 0;
    border-radius: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    height: 14px;
    width: 14px;
    border: 3px solid white;
    /*pointer-events: none;*/
    cursor: pointer;
    box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, .3);
    background: hsl(0, 100%, 50%);
}
.modal.colors .color_picker_dialog .hue_bar .hue_picker.active {
    width: 18px;
    height: 18px;
}

/* sat_rect style */
.modal.colors .color_picker_dialog .sat_rect {
    width: 150px;
    height: 150px;
    display: inline-block;
    background: hsl(0, 100%, 50%);
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.modal.colors .color_picker_dialog .sat_rect .black,
.modal.colors .color_picker_dialog .sat_rect .white {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.modal.colors .color_picker_dialog .sat_rect .white {
    background: -webkit-linear-gradient(left, #fff, rgba(204, 154, 129, 0));
    background: linear-gradient(to right, #fff, rgba(204, 154, 129, 0));
}
.modal.colors .color_picker_dialog .sat_rect .black {
    background: -webkit-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));
    background: linear-gradient(to top, #000, rgba(204, 154, 129, 0));
}
/* sat_picker style */
.modal.colors .color_picker_dialog .sat_rect .sat_picker {
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    top: 0;
    left: 100%;
    border-radius: 50%;
    border: 3px solid white;
    z-index: 10;
    -webkit-transition: width .25s, height .25s;
    transition: width .25s, height .25s;
    background: hsl(0, 100%, 50%);
    box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, .3);
}
.modal.colors .color_picker_dialog .sat_rect .sat_picker.active {
    width: 16px;
    height: 16px;
}

/* color previsualization style */
.modal.colors .color_picker_dialog .color_preview {
    display: flex;
    width: 100%;
    height: 34px;
}
.modal.colors .color_picker_dialog .color_preview .previous_color {
    width: 50%;
    height: 100%;
}
.modal.colors .color_picker_dialog .color_preview .actual_color {
    width: 50%;
    height: 100%;
}

/* color hex style */
.modal.colors .color_picker_dialog .bottom {
    display: flex;
    align-items: center;
    position: relative;
    height: 24px;
    width: 100%;
    background: #D9D9D9;
    border-radius: 3px;
    padding: 4px 4px 4px 24px;
    margin-top: 7px;
}
.modal.colors .color_picker_dialog .bottom span {
    text-transform: uppercase;
    color: #666666;
    font-size: 10px;
    font-weight: 600;
}
.modal.colors .color_picker_dialog .bottom input {
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    right: 4px;
    padding: 0;
    width: 72px;
    min-height: 16px;
    font-size: 10px;
    outline: none !important;
    background-color: #fff;
    font-weight: 600;
    border-radius: 2px;
}

.modal.colors .color_picker_dialog .basic_colors_container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns */
    grid-template-rows: repeat(4, 14px); /* 5 rows */
    gap: 10px; /* gap between grid items */
}
.modal.colors .color_picker_dialog .basic_colors_container .basic_color {
    cursor: pointer; 
}
.modal.colors .color_picker_dialog .basic_colors_container .basic_color:hover {
    border: 1px solid #666666;
    border-radius: 2px;
}