/* Floating Share Bar */
.floating-share-bar {
    position: fixed;
    top: 50%;
    right: 15px; /* Changed from left to right */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff03;
    padding: 15px 10px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
    z-index: 10000; /* Increased z-index */
}

.floating-share-bar .share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: none;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-share-bar .share-btn:hover {
    background-color: #dc3545;
    color: #fff;
}

.floating-share-bar hr {
    width: 80%;
    margin: 5px auto;
    border: none;
    border-top: 1px solid #ddd;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .floating-share-bar {
        flex-direction: row;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        justify-content: space-evenly;
        padding: 10px 0;
        border-radius: 0;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    }

    .floating-share-bar hr {
        display: none;
    }
}

/* Reading Tools Bar */
.reading-tools-bar {
    position: fixed;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0);
    padding: 15px 10px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.reading-tool-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.reading-tool-btn:hover {
    background-color: #f0f0f0;
}

/* Dark Mode Theme */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .header, 
body.dark-mode .footer {
    background-color: #1e1e1e !important;
}

body.dark-mode .card, 
body.dark-mode .modal-content {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode .text-dark,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #f5f5f5 !important;
}

body.dark-mode .text-muted {
    color: #aaa !important;
}

body.dark-mode a {
    color: #bb86fc;
}

body.dark-mode .btn-outline-danger {
    color: #cf6679;
    border-color: #cf6679;
}

body.dark-mode .btn-outline-danger:hover {
    background-color: #cf6679;
    color: #121212;
}

body.dark-mode .reading-tools-bar {
    background-color: rgba(30, 30, 30, 0.9);
}

body.dark-mode .reading-tool-btn {
    color: #e0e0e0;
}

body.dark-mode .reading-tool-btn:hover {
    background-color: #333;
}

/* Reading Mode Active */
body.reading-mode-active .header,
body.reading-mode-active .footer,
body.reading-mode-active .floating-share-bar {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}