.custom-tooltip {
    border-bottom: 1px dotted #888;
    cursor: help;
    position: relative;
}
.custom-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    background: #333;
    color: white;
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10;
}

.tooltip-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px 25px;
    z-index: 999;
    font-family: Arial, sans-serif;
}

.tooltip-content textarea#tooltip-editor {
    width: 100%;
    height: 100px;
    resize: vertical;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline-color: #4a90e2;
    transition: border-color 0.2s ease;
}

.tooltip-content textarea#tooltip-editor:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.tooltip-content button {
    margin-top: 12px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 70px;
}

#tooltip-submit {
    background-color: #4a90e2;
    color: white;
    margin-right: 10px;
}

#tooltip-submit:hover {
    background-color: #357ABD;
}

#tooltip-cancel {
    background-color: #e0e0e0;
    color: #333;
}

#tooltip-cancel:hover {
    background-color: #bdbdbd;
}