body {
    font-family: Georgia, "Times New Roman", serif;
    background-color: #f8f5f0;
    color: #333;
    max-width: 1000px;
    margin: auto;
    padding: 30px;
    line-height: 1.8;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: #5b4636;
    font-size: 2.8em;
    margin-bottom: 5px;
}

nav {
    margin: 20px 0;
}

nav a {
    color: #2b5c8a;
    text-decoration: none;
    margin: 0 18px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #8b5e3c;
}

.banner {
    background: #fff8dc;
    border-left: 5px solid #d4af37;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.bookshelf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.book {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    border-top: 5px solid #8b5e3c;
}

.book:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.book h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.book h3 a {
    color: #5b4636;
    text-decoration: none;
}

.book h3 a:hover {
    color: #2b5c8a;
}

.book p {
    margin: 8px 0;
}

footer {
    text-align: center;
    margin-top: 50px;
    color: #777;
    font-size: 0.9em;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 5px solid #d4af37;
}

.stat-card h3 {
    margin: 0;
    font-size: 2.5em;
    color: #5b4636;
}

.stat-card p {
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

.button.danger {
    background-color: #c62828;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.button.danger:hover {
    background-color: #b71c1c;
}
strong {
    color: #5b4636;
}

.flash {
    padding: 12px;
    margin: 20px auto;
    max-width: 900px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-page {
    max-width: 700px;
    margin: 80px auto;
    text-align: center;
    padding: 20px;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 1.1rem;
    line-height: 1.6;
}
/* Static export: responsive layout and search */
[hidden]{display:none!important} .search-form{display:flex;gap:10px;flex-wrap:wrap}.search-form input{flex:1;min-width:180px;padding:12px;border:1px solid #cabcae;border-radius:6px;font:inherit}.search-form button{padding:10px 18px;background:#5b4636;color:white;border:0;border-radius:6px;cursor:pointer;font:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #2b5c8a;outline-offset:3px}@media(max-width:600px){body{padding:18px}header h1{font-size:2em}.bookshelf{grid-template-columns:1fr}.dashboard{gap:10px}.stat-card{padding:12px 6px}.stat-card h3{font-size:1.6em}.stat-card p{font-size:.8em}nav a{margin:0 10px}}
