body {
    margin: 0;
    padding: 0;
    font-family: "Georgia", serif;
    background-color: #fff;
    color: #000;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
    border-bottom: 1px solid #000;
    box-sizing: border-box;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.top-nav a {
    margin-left: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 220px;
    padding: 40px;
    border-right: 1px solid #000;
    overflow-y: auto;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin: 10px 0;
}

.sidebar li a {
    font-size: 1rem;
    cursor: pointer;
}

/* New Sidebar Styles */
.book-entry {
    font-weight: bold;
}

.book-entry.expandable {
    cursor: pointer;
}

.book-poems {
    margin-top: 10px;
    margin-left: 20px;
    display: none;
}

.book-poems li {
    margin: 10px 10px;
}

.book-poems.visible {
    display: block;
}

.poem-entry {
    font-weight: normal;
}

.category-entry {
    font-weight: bold;
}

.sidebar li.sidebar-section-header {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.sidebar li.sidebar-section-header:first-child {
    margin-top: 0;
}

.category-entry.expandable {
    cursor: pointer;
}

.content-area {
    flex-grow: 1;
    padding: 60px;
    overflow-y: auto;
}

#content-display {
    max-width: 800px;
    margin: 0 auto;
    white-space: pre-wrap;
    line-height: 1.6;
}

.placeholder {
    color: #888;
    font-style: italic;
}

/* Admin Styles */
.admin-container {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
textarea,
select,
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    font-family: "Georgia", serif;
    box-sizing: border-box;
}

button {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: "Georgia", serif;
    text-transform: uppercase;
}

button:hover {
    background-color: #333;
}

.entry-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    margin-bottom: 40px;
}

.entry-table th, .entry-table td {
    border: 1px solid #000;
    padding: 10px;
    text-align: left;
}

.entry-table th {
    background-color: #000;
    color: #fff;
}

/* PDF viewer */
.pdf-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 0;
    overflow-y: visible;
}

.pdf-viewer canvas {
    margin-bottom: 20px;
    max-width: 100%;
    height: auto !important;
    border: 1px solid #000;
}

embed, iframe {
    width: 100%;
    height: 80vh;
    border: 1px solid #000;
}

/* About page */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    white-space: normal;
    text-align: justify;
}

.about-container .profile-image {
    float: right;
    width: 40%;
    padding-left: 25px;
    padding-bottom: 10px;
}
