/* Rich Text Editor Styles */

.editor-container {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

/* Toolbar Styles */
.toolbar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    gap: 8px;
}

.toolbar-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.toolbar-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.toolbar-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.toolbar-btn-bold {
    font-weight: bold;
    font-size: 16px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
    position: absolute;
    background-color: white;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    top: 100%;
    left: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown.active .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Rich Editor Area */
.rich-editor {
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    box-sizing: border-box;

    
}

.rich-editor:empty:before {
    content: attr(placeholder);
    pointer-events: none;
font-size: 16px;
    color: #999;
}

.rich-editor:empty:focus:before {
    content: attr(placeholder);
    color: #999;
}

/* Link button styles */
/* Link button styles */
.link-button {
    border-radius: 4px;
    padding: 2px 6px;
    text-decoration: none;
    color: #1976d2;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    display: inline-block;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
    border: 1px solid #ffffff;
    box-sizing: border-box;
    font-size: 16px;
}

/* Efeito ao passar o mouse */
.link-button:hover {
    color: #0d47a1; /* Nova cor no hover */
    text-decoration: underline;
}



/* Bold text styling */
.rich-editor strong,
.rich-editor b {
    font-weight: bold;
}




.link-p {
    color: #1976d2;
    width: 100%;
    display: block;
    word-break: break-word;
    overflow-wrap: break-word;
}
