.ecmnote-container {
    border: 1px solid rgba(78, 0, 204, 1);
    border-radius: var(--border-radius);
    padding: 1rem;
    background-color: transparent;
    cursor: pointer;
}

.ecmnote-preview {
    position: relative;
}

.ecmnote-edit-btn,
.ecmnote-add-btn {
    background-color: transparent;
    color: var(--color-blue);
    line-height: 1;
}

.ecmnote-add-btn {
    display: flex;
    justify-content: center;
    position: relative;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.ecmnote-edit-btn {
    position: absolute;
    top: 0;
    right: 0;
}

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

.ecmnote-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 1rem;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ecmnote-close {
    position: absolute;
    right: 10px;
    top: 10px;
    height: 24px;
    width: 24px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    display: block;
}

.ecmnote-auth-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.ecmnote-auth-buttons a {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    background-color: var(--color-blue);
    background-image: none;
    color: var(--color-white);
    border: 1px solid var(--color-blue);
}

.ecmnote-message {
    margin-top: 15px;
    display: none;
}

.ecmnote-message:not(:empty) {
    display: block;
}

.material-symbols-outlined.edit {
    font-size: inherit;
    vertical-align: bottom;
}

.ecmnote-preview p {
    margin: 0;
}

#ecmnote-form .btn-primary {
    background-color: var(--color-blue);
    background-image: none;
    color: var(--color-white);
}

#ecmnote-modal p {
    color: var(--color-black);
    width: 90%;
}

#ecmnote-form .btn-primary {
    width: 100%;
}

.form-control,
.form-control:focus {
    background-color: rgba(97, 0, 255, 0.1);
}