.kwt-research-group {
    flex-wrap: wrap;
}

.kwt-group-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.kwt-group-toggle-icon {
    transition: transform 0.3s ease;
}

.kwt-research-group.active .kwt-group-toggle-icon {
    transform: rotate(180deg);
}

.kwt-group-keywords {
    display: none;
    width: 100%;
}

.kwt-research-group.active .kwt-group-keywords {
    display: block;
}

#kwt-manage-panel .ui-resizable-handle {
    position: absolute;
    /* Common styles for all handles */
    width: 10px;
    height: 10px;
    font-size: 0.1px; /* Hide default text if any */
    display: block;
    z-index: 90; /* Ensure handles are above panel content */
    background-color: transparent; /* Make handles transparent */
    border: 1px solid transparent; /* Optional: subtle border for visibility during debug */
}

/* Corner handles */
#kwt-manage-panel .ui-resizable-se { cursor: se-resize; width: 15px; height: 15px; right: 1px; bottom: 1px; }
#kwt-manage-panel .ui-resizable-sw { cursor: sw-resize; width: 15px; height: 15px; left: 1px; bottom: 1px; }
#kwt-manage-panel .ui-resizable-ne { cursor: ne-resize; width: 15px; height: 15px; right: 1px; top: 1px; }
#kwt-manage-panel .ui-resizable-nw { cursor: nw-resize; width: 15px; height: 15px; left: 1px; top: 1px; }

/* Side handles */
#kwt-manage-panel .ui-resizable-n { cursor: n-resize; height: 7px; left: 0; top: 0; width: 100%; }
#kwt-manage-panel .ui-resizable-s { cursor: s-resize; height: 7px; left: 0; bottom: 0; width: 100%; }
#kwt-manage-panel .ui-resizable-e { cursor: e-resize; width: 7px; right: 0; top: 0; height: 100%; }
#kwt-manage-panel .ui-resizable-w { cursor: w-resize; width: 7px; left: 0; top: 0; height: 100%; }

.kwt-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.kwt-modal.visible {
    display: block;
}

.kwt-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.kwt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.kwt-modal-close {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
}