/* Styles for view-colors.php */
#ctmd-colors-manager .notice-info.inline {
    margin-top: 20px;
}

#ctmd-colors-manager h2 {
    margin-top: 20px;
}

#ctmd-add-color-form table {
    max-width: 1200px;
    margin-bottom: 20px;
}

#ctmd-add-color-form th.col-color-id,
#ctmd-colors-form th.col-color-id {
    width: 30%;
}

#ctmd-add-color-form th.col-label,
#ctmd-colors-form th.col-label {
    width: 40%;
}

#ctmd-add-color-form th.col-color,
#ctmd-colors-form th.col-color {
    width: 250px;
}

#ctmd-add-color-form th.col-hex,
#ctmd-colors-form th.col-hex {
    width: 120px;
}

#ctmd-add-color-form th.col-hsl,
#ctmd-colors-form th.col-hsl {
    width: 110px;
}

#ctmd-add-color-form th.col-rgb,
#ctmd-colors-form th.col-rgb {
    width: 110px;
}

.ctmd-add-new-row input[type="text"] {
    width: 100%;
}

#ctmd-colors-form .title {
    margin-top: 40px;
}

#ctmd-colors-form table {
    max-width: 1200px;
}

#ctmd-colors-form th.col-drag {
    width: 40px;
}

#ctmd-colors-form th.col-status,
#ctmd-colors-form th.col-delete {
    width: 60px;
    text-align: center;
}

.ctmd-special-color-row .col-drag-handle {
    color: #999;
    text-align: center;
    font-size: 18px;
}

.ctmd-special-color-row input[type="text"] {
    width: 100%;
}

.ctmd-color-row.inactive {
    opacity: 0.5;
}

.ctmd-drag-handle {
    cursor: move;
    text-align: center;
    vertical-align: middle;
}

.ctmd-color-row input[type="text"] {
    width: 100%;
}

.ctmd-color-swatch.is-derivative {
    /* Add styles for derivative swatch */
}

.ctmd-color-input-display[readonly] {
    background-color: #f0f0f1;
}

.ctmd-color-swatch.inactive {
    pointer-events: none;
}

.ctmd-copy-me {
    cursor: pointer;
}

.ctmd-copy-me.inactive {
    cursor: default;
}

#ctmd-derivative-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 400px;
    width: 100%;
}

#ctmd-derivative-modal-title {
    margin-top: 0;
}

#ctmd-remove-link-btn {
    position: absolute;
    top: 15px;
    right: 15px;
}

.form-table td {
    display: flex;
    align-items: center;
    gap: 8px;
}

#ctmd-parent-color {
    width: 100%;
    flex-grow: 1;
}

#ctmd-parent-color-swatch {
    width: 28px;
    height: 28px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    flex-shrink: 0;
}

.ctmd-slider-container input[type="range"] {
    width: 100%;
}

.ctmd-slider-container input[type="number"] {
    width: 70px;
    text-align: center;
}

.ctmd-modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ctmd-derivative-preview-swatch {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
}

#ctmd-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

#ctmd-colors-manager hr {
    margin: 30px 0;
}
