﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --secondary: #f7931e;
    --accent: #c1272d;
    --dark: #1a1a1a;
    --light: #fff5e6;
    --text: #333;
    --border: #ddd;
    --success: #28a745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    color: var(--text);
    min-height: 100vh;
}

/* Modern Header Styles */
header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.25);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Logo Styles */
.logo {
    flex-shrink: 0;
    flex: 1;
    min-width: 0;
}

    .logo a {
        color: white !important;
        text-decoration: none !important;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: -0.5px;
        transition: opacity 0.3s ease;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .logo a:hover {
            opacity: 0.9;
        }

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}

/* User Name Trim */
.trim-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.5rem 0;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
}

    .cart-icon a {
        color: white !important;
        text-decoration: none !important;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
    }

        .cart-icon a:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: white;
    color: #ff6b35;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Cart Popdown Notification */
.cart-popdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    color: #333;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

    .cart-popdown::before {
        content: '';
        position: absolute;
        top: -6px;
        right: 20px;
        width: 12px;
        height: 12px;
        background: white;
        transform: rotate(45deg);
    }

    .cart-popdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* Menu Container */
.menu-container {
    position: relative;
}

/* Menu Icon (Hamburger) */
.menu-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .menu-icon:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
    }

    .menu-icon i {
        color: white;
        font-size: 1.25rem;
    }

/* Menu Popdown */
.menu-popdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1001;
}

    .menu-popdown::before {
        content: '';
        position: absolute;
        top: -6px;
        right: 20px;
        width: 12px;
        height: 12px;
        background: white;
        transform: rotate(45deg);
    }

    .menu-popdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

/* Menu Items */
.menu-item {
    display: block;
    padding: 0.875rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .menu-item:hover {
        background: linear-gradient(90deg, rgba(255, 107, 53, 0.08) 0%, transparent 100%);
        border-left-color: #ff6b35;
        color: #ff6b35;
        padding-left: 1.5rem;
    }

/* Menu Logout Button */
.menu-popdown form {
    padding: 0.5rem 1.25rem 1rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.5rem !important;
}

.menu-popdown .btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ff6b35;
    background: white;
    color: #ff6b35 !important;
}

    .menu-popdown .btn:hover {
        background: #ff6b35;
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }

/* Login Button (when not authenticated) */
.btn-primary {
    background: white;
    color: #ff6b35 !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.95);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

        .logo a {
            line-height: 1.3;
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
        }

    .trim-text {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .cart-icon a,
    .menu-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

        .cart-icon i,
        .menu-icon i {
            font-size: 1.125rem;
        }

    .menu-popdown {
        right: 0;
        min-width: 200px;
    }

        .menu-popdown::before {
            right: 14px;
        }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        padding: 0.75rem 0.875rem;
        gap: 0.5rem;
    }

    .logo a {
        letter-spacing: -0.3px;
    }

    .cart-icon a,
    .menu-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .menu-popdown {
        min-width: calc(100vw - 1.75rem);
        max-width: 280px;
        right: 0;
    }

    .menu-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .menu-popdown form {
        padding: 0.5rem 1rem 0.875rem;
    }

    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
}

@media (max-width: 360px) {
    .header-content {
        padding: 0.625rem 0.75rem;
    }

    .cart-icon a,
    .menu-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .header-actions {
        gap: 0.375rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cart-icon a,
    .menu-icon {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
}

/* Accessibility - Focus States */
.cart-icon a:focus,
.menu-icon:focus,
.menu-item:focus,
.btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Smooth Scroll for Sticky Header */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .menu-popdown {
        background: #1a1a1a;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    }

        .menu-popdown::before {
            background: #1a1a1a;
        }

    .menu-item {
        color: #e0e0e0;
    }

        .menu-item:hover {
            background: linear-gradient(90deg, rgba(255, 107, 53, 0.15) 0%, transparent 100%);
            color: #ff8a5b;
        }

    .cart-popdown {
        background: #1a1a1a;
        color: #e0e0e0;
    }

        .cart-popdown::before {
            background: #1a1a1a;
        }
}

/* Login Button (when not authenticated) */
.btn-primary {
    background: white;
    color: #ff6b35 !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.95);
    }

/* Responsive Design */
@@media (max-width: 768px) {
    .header-content {
        padding: 1rem 1.25rem;
    }

    .trim-text {
        display: none;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .cart-icon a,
    .menu-icon {
        width: 44px;
        height: 44px;
    }

    .menu-popdown {
        right: -10px;
        min-width: 200px;
    }
}

@@media (max-width: 480px) {
    .header-content {
        padding: 0.875rem 1rem;
    }

    .cart-icon a,
    .menu-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .menu-popdown {
        min-width: 180px;
    }

    .menu-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* High DPI Screens */
@@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cart-icon a,
    .menu-icon {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
}

/* Accessibility - Focus States */
.cart-icon a:focus,
.menu-icon:focus,
.menu-item:focus,
.btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Smooth Scroll for Sticky Header */
@@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Dark Mode Support (Optional) */
@@media (prefers-color-scheme: dark) {
    .menu-popdown {
        background: #1a1a1a;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    }

        .menu-popdown::before {
            background: #1a1a1a;
        }

    .menu-item {
        color: #e0e0e0;
    }

        .menu-item:hover {
            background: linear-gradient(90deg, rgba(255, 107, 53, 0.15) 0%, transparent 100%);
            color: #ff8a5b;
        }

    .cart-popdown {
        background: #1a1a1a;
        color: #e0e0e0;
    }

        .cart-popdown::before {
            background: #1a1a1a;
        }
}



/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Page sections */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .page.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing Page */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

    .hero h1 {
        font-size: 2.5rem;
        color: var(--primary);
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 1.2rem;
        color: var(--text);
        margin-bottom: 20px;
    }

/* Search Filters */
.filters {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

    .filters h3 {
        color: var(--primary);
        margin-bottom: 15px;
    }

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

    .filter-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
        color: var(--text);
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        padding: 10px;
        border: 2px solid var(--border);
        border-radius: 8px;
        font-size: 14px;
    }

        .filter-group select:focus,
        .filter-group input:focus {
            outline: none;
            border-color: var(--primary);
        }

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.book-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .book-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

.book-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
}

.book-info {
    padding: 20px;
}

.book-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 8px;
}

.book-author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.book-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
}

.book-language {
    background: var(--light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text);
}

/* Book Details */
.book-details {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 20px;
}

.details-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
}

.details-content h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.details-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

    .quantity-selector button {
        width: 40px;
        height: 40px;
        border: none;
        background: var(--primary);
        color: white;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .quantity-selector button:hover {
            background: var(--accent);
        }

    .quantity-selector input {
        width: 60px;
        text-align: center;
        padding: 10px;
        border: 2px solid var(--border);
        border-radius: 8px;
        font-size: 16px;
    }

/* Cart */
.cart-items {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

    .cart-item:last-child {
        border-bottom: none;
    }

.cart-item-image {
    width: 100px;
    height: 130px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.cart-item-info h4 {
    color: var(--dark);
    margin-bottom: 5px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

    .summary-row.total {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary);
        border-bottom: none;
        margin-top: 10px;
    }

/* Login */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

    .login-container h2 {
        text-align: center;
        color: var(--primary);
        margin-bottom: 30px;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--text);
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 2px solid var(--border);
        border-radius: 8px;
        font-size: 14px;
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
        }

/* Order Success */
.success-message {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 20px;
}

.success-message h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.order-details {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: left;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
    }

    .cart-item-controls {
        grid-column: 1 / -1;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.4rem;
    }
}

.back-btn {
    background: var(--border);
    color: var(--text);
    margin-right: 10px;
}

    .back-btn:hover {
        background: #ccc;
    }

.remove-btn {
    background: var(--accent);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .remove-btn:hover {
        background: #a01f24;
    }


.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
    transform: translateY(20px);
    z-index: 9999;
}

    .toast.show {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }



/*-- Cart Styling --*/
.cart-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .cart-container h2 {
        margin-bottom: 1rem;
        font-size: 1.6rem;
        border-bottom: 2px solid #eee;
        padding-bottom: 0.5rem;
    }

.empty-cart {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin-top: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    transition: box-shadow 0.2s;
}

    .cart-item:hover {
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    }

.cart-item-info {
    flex: 1 1 250px;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.book-lang {
    font-size: 0.9rem;
    color: #777;
}

.book-price {
    font-weight: 500;
    color: #007b55;
    margin-top: 0.3rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #f4f4f4;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 1.1rem;
    cursor: pointer;
}

    .qty-btn:hover {
        background: #ddd;
    }

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    outline: none;
}

.btn-remove {
    background: transparent;
    border: none;
    color: #d33;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-subtotal {
    font-weight: 600;
    color: #333;
    min-width: 80px;
    text-align: right;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.btn-checkout {
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-checkout:hover {
        background: #e65d00;
    }

@media (max-width: 600px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-subtotal {
        align-self: flex-end;
    }
}

/* Empty cart message */
.empty-cart {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-size: 1.1rem;
}

    .empty-cart .btn-add-more {
        display: inline-block;
        margin-top: 1rem;
        background: #ff6b00;
        color: #fff;
        padding: 0.6rem 1.2rem;
        border-radius: 8px;
        text-decoration: none;
        transition: background 0.2s;
    }

        .empty-cart .btn-add-more:hover {
            background: #e65d00;
        }

/* Loader overlay */
.cart-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid #eee;
    border-top: 4px solid #ff6b00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Add More Books button in summary */
.btn-add-more {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-add-more:hover {
        background: #005fc1;
    }
