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

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --accent-pink: #ec4899;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    
    --background: #ffffff;
    --surface: #f8fafc;
    --surface-elevated: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 25px -5px rgba(99, 102, 241, 0.25);
    
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header */
.navbar {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    cursor: pointer;
}

.nav-brand .tagline {
    font-size: 1rem;
    font-weight: 500;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
    margin-left: 0.5rem;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-brand i {
    font-size: 2.25rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bookFloat 3s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Main Container */
.main-container {
    position: relative;
    min-height: calc(100vh - 80px);
}

/* Search Section */
.search-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero-content {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}

.search-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: titleGlow 2s ease-in-out infinite alternate;
    background: linear-gradient(45deg, #ffffff, #e0e7ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleGlow {
    0% { 
        background-position: 0% 50%;
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    100% { 
        background-position: 100% 50%;
        text-shadow: 0 4px 20px rgba(255, 255, 255, 0.5);
    }
}

.search-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* API Setup Card */
.api-setup {
    margin-bottom: 3rem;
    animation: slideInDown 1s ease-out;
}

.api-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: perspective(1000px) rotateX(5deg);
    transition: var(--transition-bounce);
}

.api-card:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.3);
}

.api-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-card h3 i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: keyPulse 2s ease-in-out infinite;
}

@keyframes keyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.api-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gradient-cool);
    border-radius: var(--border-radius);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.api-note i {
    color: var(--accent-cyan);
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); color: var(--accent-cyan); }
    50% { transform: scale(1.1); color: var(--accent-green); }
}

/* Search Container */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 1s ease-out 0.8s both;
    width: 100%;
    margin: 0 auto;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.input-group {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 700px;
    position: relative;
}

.input-group input {
    flex: 1;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    border: 2px solid transparent;
}

.input-group input:focus {
    outline: none;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), var(--shadow-xl);
    background: white;
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

/* Search Error */
.search-error {
    margin-top: 1.5rem;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #f87171;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(248, 113, 113, 0.3);
    animation: slideInDown 0.3s ease-out;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-error p {
    color: #dc2626;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-back {
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(240, 147, 251, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(240, 147, 251, 0.5);
}

.btn-back {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.btn-back:hover {
    transform: translateY(-2px) translateX(-5px);
    box-shadow: 0 10px 25px -5px rgba(79, 172, 254, 0.4);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

/* Loading Section */
.loading-section {
    padding: 6rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-content {
    max-width: 400px;
    margin: 0 auto;
}

.animated-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spinRing 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 80px;
    height: 80px;
    border-top-color: var(--accent-pink);
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: var(--accent-cyan);
    animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: var(--accent-orange);
    animation-delay: -0.15s;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-pink);
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; background: var(--accent-pink); }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; background: var(--accent-cyan); }
.loading-dots span:nth-child(3) { animation-delay: 0s; background: var(--accent-orange); }

@keyframes dotBounce {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    } 
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

.loading-content p {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Books Section */
.books-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.6s ease-out;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.books-section h2, .book-report-section h2 {
    font-size: 2.5rem;
    margin: 0;
    color: white;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: slideInDown 1s ease-out;
}

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

@media (min-width: 900px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.book-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.6s ease-out both;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-warm);
}

.book-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: rotateBackground 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.book-card:hover::after {
    opacity: 1;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.book-card:nth-child(1) { animation-delay: 0.1s; }
.book-card:nth-child(2) { animation-delay: 0.2s; }
.book-card:nth-child(3) { animation-delay: 0.3s; }

.book-card:nth-child(1)::before { background: var(--gradient-primary); }
.book-card:nth-child(2)::before { background: var(--gradient-secondary); }
.book-card:nth-child(3)::before { background: var(--gradient-accent); }

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.book-card:hover .book-card-content {
    transform: translateZ(20px);
}

.book-card-content {
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.book-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.book-author {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 500;
}

.book-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.book-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-more-btn {
    background: var(--gradient-secondary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-bounce);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.5);
}

.read-more-btn i {
    transition: var(--transition);
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Book Details Sections */
.book-details, .book-analysis-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-button-container {
    margin-bottom: 2rem;
}

.book-detail-card, .analysis-card {
    background: var(--surface-elevated);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.book-detail-card::before, .analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-warm);
}

.book-header, .analysis-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.book-header h2, .analysis-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.book-meta, .analysis-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.book-meta .author {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 500;
}

.analysis-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--gradient-cool);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.analysis-meta i {
    color: var(--accent-cyan);
}

.content-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-section h3 i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-content, .analysis-content {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.summary-content p, .analysis-content p {
    margin-bottom: 1.5rem;
}

.analysis-content h4 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.4rem;
}

.action-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
    text-align: center;
}

.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--gradient-cool);
    border-radius: var(--border-radius);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    color: white;
    text-align: center;
    padding: 3rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .book-card {
        padding: 2rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-brand {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .nav-brand i {
        font-size: 1.8rem;
    }

    .nav-brand .tagline {
        font-size: 0.9rem;
        margin-left: 0;
    }
    
    .api-card {
        padding: 2rem;
    }
    
    .book-detail-card, .analysis-card {
        padding: 2rem;
    }
    
    .book-header h2, .analysis-header h2 {
        font-size: 2rem;
    }
    
    .analysis-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .book-card {
        padding: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .recommendations, .book-details, .book-analysis-section {
        margin: 1rem;
        padding: 2rem 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f172a;
        --surface: #1e293b;
        --surface-elevated: #334155;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border: #334155;
        --border-light: #475569;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
}

/* Additional hover effects */
.nav-brand:hover i {
    animation-duration: 1s;
}

.btn-primary:hover i,
.btn-secondary:hover i,
.btn-back:hover i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Scroll animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced book card animations */
.book-card:hover h3 {
    animation: textShimmer 1s ease-in-out;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.book-card:hover .book-author {
    color: var(--primary-color);
    transform: translateX(10px);
}

.book-card:hover .book-description {
    color: var(--text-primary);
}

.book-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Book Report Section */
.book-report-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.6s ease-out;
}

.report-card {
    background: var(--surface-elevated);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-warm);
}

.report-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.report-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.report-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.report-meta .author {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 500;
}


.report-content {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.report-content p {
    margin-bottom: 1.5rem;
}

.report-content h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.report-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.report-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.report-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.report-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.report-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(99, 102, 241, 0.1);
    flex-wrap: wrap;
}

.report-actions button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.report-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(156, 163, 175, 0.3);
    color: rgba(107, 114, 128, 0.7);
}

.report-actions button:disabled:hover {
    transform: none;
    background: rgba(156, 163, 175, 0.3);
}

.report-actions button i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .report-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .report-actions button {
        width: 100%;
        max-width: 200px;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.25rem;
    z-index: 10000;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
    border-left: 4px solid var(--primary-color);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-success {
    border-left-color: #10b981;
}

.notification-success .notification-content i {
    color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-error .notification-content i {
    color: #ef4444;
}

.notification-info {
    border-left-color: #3b82f6;
}

.notification-info .notification-content i {
    color: #3b82f6;
}

.notification-content span {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}