body {
    font-family: Arial, sans-serif;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 3px 8px;
}

.update-icon {
    margin-right: 3px;
    font-size: 0.7rem;
}

.info-box {
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 7px;
    background-color: #fafafa;
}

.info-header {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 0.7rem;
    cursor: pointer;
    color: #666;
}

.info-toggle {
    font-size: 0.7rem;
    color: #999;
}

.info-content {
    font-size: 0.7rem;
    color: #666;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    padding: 0 10px;
}

.info-content.active {
    max-height: 100px;
    padding-bottom: 6px;
}

.tabs-container {
    overflow-x: auto;
}

.tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding-top: 2px;
    overflow-x: auto;
    gap: 6px;
}

.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    padding: 0 10px 6px;
    margin-bottom: 1px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.tab.active {
    font-weight: 700;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: black;
    border-radius: 2px;
}

.sub-tabs {
    display: none;
    gap: 5px;
    padding: 10px 0 5px 2px;
    overflow-x: auto;
    white-space: nowrap;
}

.sub-tabs.active {
    display: flex;
}

.sub-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 14px;
    background-color: #f2f2f2;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
}

.sub-tab.active {
    background-color: #111;
    color: white;
    border: none;
}

.tab-content {
    display: none;
    padding: 2px;
}

.tab-content.active {
    display: block;
    margin-top: 5px;
}

.total-count {
    font-size: 12px;
    padding: 2px 4px 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f4f4f4;
    white-space: nowrap;
    text-align: center;
}

td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

a.no-underline {
    text-decoration: none;
    color: inherit;
}

a.no-underline:visited {
    color: inherit;
}

a.no-underline:hover {
    text-decoration: none;
}

a.no-underline:active {
    color: inherit;
}

/**/

.book-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-buttons {
    display: flex;
    align-items: center;
    gap: 3px;
}

.book-login-button button {
    padding: 3px 8px;
}

button {
    font-size: 8pt;
    width: 100%;
    color: #000000;
    background-color: #f3f3f3;
    border: none;
    border-radius: 12px;
    padding: 3px 12px;
    cursor: pointer;
}

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

button:active {
    background-color: #dadada;
}

th.book-title, td.book-title {
    width: 70%;
}

th.rating-count, td.rating-count {
    width: 20%;
}

th.rating-average, td.rating-average {
    width: 10%;
}

td.book-award {
    width: 20%;
    font-size: small;
    text-align: center;
}

td.book-award-title {
    width: 55%;
    font-size: small;
}

td.book-award-author {
    width: 25%;
    font-size: small;
    text-align: center;
}

.rating-count, .rating-average {
    white-space: nowrap;
    text-align: center;
    align-items: center;
}

/**/

@media (max-width: 768px) {
    .info-text {
        font-size: small;
    }

    table, th, td {
        font-size: small;
    }
}

@media (min-width: 769px) {
    body {
        max-width: 500px;
        margin: 10px auto;
    }
}
