/* Genel */
.reader-page {
    margin: 0;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
}

/* Üst bar */
.reader-header {
    position: fixed;
    top: 0;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

.back-btn {
    text-decoration: none;
    font-size: 22px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #eee;
}

.book-title {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

/* Alt bar */
.reader-footer {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid #ddd;
    z-index: 1000;
}

button {
    border: none;
    padding: 7px 12px;
    font-size: 18px;
    background: #efefef;
    border-radius: 6px;
    cursor: pointer;
}
button:hover {
    background: #ddd;
}

/* PDF Alanı */
.reader-main {
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
}

canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Dark mode */
.dark {
    background: #111 !important;
    color: #eee !important;
}
.dark .reader-header,
.dark .reader-footer {
    background: #222 !important;
    border-color: #444 !important;
}
.dark button {
    background: #333;
    color: white;
}
.dark button:hover {
    background: #444;
}

.side-panel {
    position: fixed;
    top: 60px; bottom: 60px; left: -260px;
    width: 250px;
    background: #fff;
    border-right: 1px solid #ddd;
    transition: .3s;
    z-index: 999;
    overflow-y: auto;
}

.side-panel.open { left: 0; }

.panel-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
}
.panel-tab {
    flex: 1;
    padding: 8px;
    background: #eee;
    cursor: pointer;
    border: none;
}
.panel-tab.active {
    background: #ddd;
    font-weight: bold;
}

.note-editor {
    position: fixed;
    right: -300px; top: 60px; bottom: 60px;
    width: 280px;
    background: #fff;
    border-left: 1px solid #ddd;
    padding: 10px;
    display: flex; flex-direction: column;
    transition: .3s;
}
.note-editor.open { right: 0; }
.note-editor textarea {
    flex: 1; margin-bottom: 10px;
}

.tts-bar {
    position: fixed;
    bottom: 60px; left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex; gap: 6px;
}