/* Reset and base styles */
html,
body {
    position: relative;
    width: 100%;
    height: 100%;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
    color: #333;
    margin: 0;
    padding: 8px;
    box-sizing: border-box;
    background-color: #f5f5f5;
}

/* Editable block styling */
[contenteditable="true"]:focus {
    outline: none;
    background-color: #f9f9f9;
    border-radius: 5px;
}

[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: #aaa;
    font-style: italic;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    padding: 0.4em;
    margin: 0 0 0.5em 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 2px;
    background-color: #f4f4f4;
    color: #333;
    cursor: pointer;
}

button:hover {
    border-color: #999;
}

button:focus {
    outline: none;
}

/* Flash messages */
.flash {
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

.flash.info {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.flash.error {
    background-color: #ffebee;
    color: #b71c1c;
}

.ProseMirror a {
    color: inherit; /* This makes links the same color as regular text */
    text-decoration: underline; /* Ensures links are underlined */
}

.ProseMirror a:hover {
    text-decoration-thickness: 2px; /* Makes the underline thicker on hover */
}

.ProseMirror {
    font-weight: 400; /* Normal weight, not bold */
    font-family: "Roboto Mono", monospace;
}
