.library-showcase{border-radius:20px;max-width:1400px;margin:0 auto;width:100%;box-sizing:border-box;background-color:#f6f8ff}
.library-content{padding:0rem 2rem}
.library-header{text-align:center;margin-bottom:2rem;padding:2rem;border-radius:20px 20px 0 0;background-color:#ffde45}
.library-header h1{font-size:3rem;color:#1a1a1a;font-weight:700;letter-spacing:2px;margin-bottom:0.5rem}
.library-description{color:#333;font-size:1.1rem}
.library-filters{display:flex;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}
.filter-group{display:flex;flex-direction:column;gap:.5rem}
.filter-select{padding:.5rem 1rem;border:1px solid #ddd;border-radius:8px;background-color:#fff;min-width:150px;font-size:.9rem}
.books-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:2rem;margin-bottom:2rem}
.book-card{background:#fff;border-radius:25px;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease;box-shadow:0 4px 6px rgba(0,0,0,0.1);border:4px solid #4ECDC4;transform:rotate(-1deg)}
.book-card:hover{transform:rotate(1deg) translateY(-10px);border-color:#FF6B6B;box-shadow:0 8px 15px rgba(0,0,0,0.15)}
.book-link{text-decoration:none;color:inherit}
.book-cover{position:relative;padding-top:140%;overflow:hidden}
.book-cover img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}
.book-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.4);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease}
.book-card:hover .book-overlay{opacity:1}
.read-now{color:#fff;background:#1a1a1a;padding:0.75rem 1.5rem;border-radius:50px;font-weight:600;font-size:1rem;border:none;transition:all 0.3s ease;cursor:pointer}
.read-now:hover{background:#333;transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,0.2)}
.book-info{padding:1rem}
.book-title{font-size:1.1rem;margin:0 0 .5rem;color:#2c3e50}
.book-meta{display:flex;gap:.5rem;font-size:.9rem;color:#666}
.age-badge{background:none;padding:0;border-radius:0;font-size:1rem;color:#274962;font-weight:800;display:inline-block;vertical-align:middle;}
.age-badge::after{content:"|";color:lightgray;display:inline-block;vertical-align:middle;width:1px;height:1.25em;margin:0 8px}
.pages-count{color:#274962;font-weight:600;margin-top:3px}
.load-more-container{text-align:center;margin:2rem 0}
.load-more-btn{background:#1a1a1a;color:#fff;border:none;padding:1rem 2.5rem;border-radius:50px;cursor:pointer;font-size:1.1rem;transition:all .3s ease;font-weight:600}
.load-more-btn:hover{background:#333;transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,0.2)}
.load-more-btn:active{transform:translateY(0);box-shadow:0 4px 10px rgba(0,0,0,0.15)}

@media (max-width: 768px) {
.books-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.library-header h1{font-size:2rem}
}
.pending-cover{width:100%;height:100%;background:linear-gradient(45deg,#f0f0f0,#e0e0e0);display:flex;align-items:center;justify-content:center}
.generating-text{font-size:1.2em;color:#666;animation:pulse 2s infinite}

/* Delete book button overlay */
.delete-book-btn{
	position:absolute;
	top:8px;
	right:8px;
	background:rgba(0,0,0,0.45);
	border:0;
	width:36px;
	height:36px;
	border-radius:50%;
	display:flex;
	align-items:center;
	justify-content:center;
	cursor:pointer;
	z-index:50;
	transition:background .15s ease, transform .08s ease;
}
.delete-book-btn:hover{background:rgba(255,0,0,0.85);transform:scale(1.05)}
.delete-book-btn svg path{fill:#fff}
@keyframes pulse {
0%{opacity:.6}
50%{opacity:1}
100%{opacity:.6}
}
@media (max-width: 480px) {
.library-header h1{font-size:2rem}
.library-description{font-size:1rem}
.books-grid{grid-template-columns:1fr;gap:1.5rem}
.book-card{max-width:100%}
.filter-group{width:100%}
.filter-select{width:100%}
.library-filters{flex-direction:column;gap:.8rem}
.load-more-btn{width:100%;padding:.8rem;font-size:1rem}
}
/* Educational Book Styles */
.book-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 4px 0;
}

.educational-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.standard-info {
    font-size: 12px;
    color: #444;
    margin: 4px 0;
    padding: 4px 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
}

.standard-info strong {
    color: #4ECDC4;
    font-weight: 600;
}

.grade-badge, .subject-badge {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.subject-badge {
    background: #e7f3ff;
    color: #004085;
}

.filter-input {
    padding: .5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    min-width: 200px;
    font-size: .9rem;
}

.filter-input:focus {
    outline: none;
    border-color: #4ECDC4;
}

.filter-group label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.filter-group input[type="checkbox"] {
    margin-right: 6px;
}
/* Student Creator Badge */
.student-creator-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.student-creator-badge i {
    margin-right: 4px;
}

/* Books Sections */
.books-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #4ECDC4;
    font-weight: 700;
}

.books-section:nth-child(even) .section-title {
    border-bottom-color: #667eea;
}

.books-section .books-grid {
    margin-bottom: 0;
}

/* Empty state for sections */
.books-section .books-grid:empty::after {
    content: 'No books in this section';
    display: block;
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
}

/* Add subtle styling for student-created books */
.book-card[data-student-created="true"] {
    border-color: #667eea;
}

.book-card[data-student-created="true"]:hover {
    border-color: #764ba2;
}