* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 40px;
    line-height: 1.4;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Links */
a {
    color: #0000EE;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Navigation */
nav {
    margin-bottom: 20px;
}

.breadcrumb {
    margin-bottom: 40px;
    font-size: 0.9em;
}

/* Lists */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 3px;
}

/* Reading list specific styles */
.stats {
    margin-bottom: 40px;
    font-size: 0.9em;
    color: #666;
}

.stats span {
    margin-right: 20px;
}

.controls {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9em;
    color: #000;
    min-width: 50px;
}

/* Form elements */
select, input {
    padding: 4px 8px;
    border: 1px solid #ccc;
    background: #ffffff;
    font-size: 0.9em;
    font-family: Arial, sans-serif;
    color: #000;
}

select:focus, input:focus {
    outline: none;
    border-color: #0000EE;
}

/* Timeline */
.timeline {
    position: relative;
}

.year-section, .reading-section {
    margin-bottom: 40px;
}

.undated-section {
    margin-top: 40px;
}

/* Book items */
.book-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.book-item:last-child {
    border-bottom: none;
}

.book-title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 3px;
    color: #000;
}

.book-author {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 3px;
}

.book-meta {
    font-size: 0.9em;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.book-meta span {
    white-space: nowrap;
}

.date-info {
    color: #000;
}

.no-books {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 0.9em;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 0.9em;
}

.error {
    text-align: center;
    padding: 40px 20px;
    color: #cc0000;
    font-size: 0.9em;
}

/* Collapsible sections */
.collapsible {
    background: none;
    color: #000000;
    cursor: pointer;
    padding: 0;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.5em;
    font-weight: bold;
    font-family: Arial, sans-serif;
    margin: 20px 0;
    transition: none;
}

.collapsible:hover {
    background: none;
}

.collapsible:after {
    content: '\25B6'; /* Right-pointing triangle */
    color: #000000;
    font-weight: bold;
    float: right;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.collapsible.active:after {
    transform: rotate(90deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-content.show {
    max-height: 2000px;
}

.book-count {
    color: #666;
    font-size: 0.6em;
    margin-left: 8px;
    font-weight: normal;
}

/* Status badges */
.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.unfinished {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.reading {
    background-color: #d4edda;
    color: #155724;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        margin: 20px;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-group {
        justify-content: space-between;
    }

    .book-meta {
        flex-direction: column;
        gap: 3px;
    }

    h1 {
        font-size: 1.5em;
    }

    .collapsible {
        font-size: 1.2em;
    }
}