/* Floating Buttons */
:root {
    --floating-button-bg: #E3E4E4;
    --floating-button-hover-bg: #e0e0e0;
    --floating-button-color: #888;
    --floating-button-night-bg: #353537;
    --floating-button-night-hover-bg: #555;
    --floating-button-night-color: #aaa;
}

[data-theme="dark"] {
    --floating-button-bg: var(--floating-button-night-bg);
    --floating-button-hover-bg: var(--floating-button-night-hover-bg);
    --floating-button-color: var(--floating-button-night-color);
}

.back-to-top, .edit-post-button {
    position: fixed;
    right: 20px;
    z-index: 99;
    padding: 10px;
    border-radius: 5px;
    background-color: var(--floating-button-bg);
    color: var(--floating-button-color);
    cursor: pointer;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top {
    bottom: 20px;
    opacity: 0;
    visibility: hidden;
}

.edit-post-button {
    bottom: 70px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover, .edit-post-button:hover {
    background-color: var(--floating-button-hover-bg);
}
