/* Special pages (recently opened, etc.) styles */

.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.page-description {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.books-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* book-card related rules are centralized in components.css */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0.6;
}

.empty-state h3 {
    margin-bottom: 1rem;
}

.clear-history-container {
    text-align: center;
    margin: 2rem 0;
}

.clear-history-button {
    background-color: rgba(255, 0, 0, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.clear-history-button:hover {
    background-color: rgba(255, 0, 0, 0.2);
}

.home-button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2.5rem 0;
}

.home-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid var(--text-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    min-width: 140px;
    text-align: center;
}

.home-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

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

/* Download table styles */

.table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
    text-align: left;
}

.download-table th, 
.download-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.download-table th {
    background-color: rgba(128, 128, 128, 0.05);
    font-weight: 600;
}

.download-table tr:hover {
    background-color: rgba(128, 128, 128, 0.03);
}

.download-table tr[onclick] {
    cursor: pointer;
}

.download-button-cell {
    text-align: left;
}

@media (max-width: 600px) {
    .download-table th, .download-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    .download-button-cell {
        width: auto;
    }
}

