.whiteboard-widget {
    display: none; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 350px;
    min-width: 250px;
    min-height: 200px;
    z-index: 10000;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden; 
    flex-direction: column;
}
.whiteboard-widget.ww-maximized {
    top: 24px !important;
    left: 24px !important;
    width: calc(100vw - 48px) !important;
    height: calc(100vh - 48px) !important;
    transform: none;
}
.ww-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    cursor: move;
    user-select: none; 
}
.ww-maximized .ww-header {
    cursor: default;
}
.ww-title {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}
.ww-controls {
    display: flex;
    gap: 4px;
}
.ww-controls button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ww-controls button:hover {
    background-color: #e0e0e0;
    color: #000;
}
.ww-content {
    position: relative;
    flex-grow: 1; 
    height: 100%;
}
.ww-textarea {
    width: 100%;
    height: 100%;
    padding: 12px;
    border: none;
    resize: none;
    outline: none;
    box-sizing: border-box;
    background-color: #ffc;
}
.ww-resize-handle {
    position: absolute;
    bottom: 4px; 
    right: 4px;  
    width: 24px; 
    height: 24px; 
    cursor: nwse-resize;
    color: #888;
    opacity: 0.7;
    display: flex; 
    align-items: center;
    justify-content: center;
    padding: 4px; 
    box-sizing: border-box; 
}
.ww-maximized .ww-resize-handle {
    display: none; 
}