﻿
.book-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.book-image {
    height: 180px;
    object-fit: contain;
}

.selected-book {
    border-left: 4px solid #198754;
    padding-left: 10px;
    margin-bottom: 10px;
    position: relative;
}

    .selected-book .book-actions {
        position: absolute;
        right: 5px;
        top: 5px;
        display: flex;
        gap: 5px;
    }

.additional-item {
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    margin-bottom: 10px;
    position: relative;
}

    .additional-item .item-actions {
        position: absolute;
        right: 5px;
        top: 5px;
        display: flex;
        gap: 5px;
    }

.saved-list-item {
    transition: background-color 0.2s;
    cursor: pointer;
}

    .saved-list-item:hover {
        background-color: #f8f9fa;
    }

.book-toggle-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .book-toggle-btn.added {
        background-color: #dc3545;
    }

        .book-toggle-btn.added i::before {
            content: "\F62A"; /* Bootstrap icon for dash */
        }

.book-title {
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Loader styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-wrapper {
    text-align: center;
}

.loader-logo {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

    .loader-logo span {
        display: inline-block;
        animation: bounce 1.5s infinite alternate;
    }

        .loader-logo span:nth-child(2) {
            animation-delay: 0.1s;
        }

        .loader-logo span:nth-child(3) {
            animation-delay: 0.2s;
        }

        .loader-logo span:nth-child(4) {
            animation-delay: 0.3s;
        }

        .loader-logo span:nth-child(5) {
            animation-delay: 0.4s;
        }

        .loader-logo span:nth-child(6) {
            animation-delay: 0.5s;
        }

        .loader-logo span:nth-child(7) {
            animation-delay: 0.6s;
        }

        .loader-logo span:nth-child(8) {
            animation-delay: 0.7s;
        }

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #007bff;
    animation: pulse 1.5s infinite alternate;
}

    .loader-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .loader-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

/* Preview styles */
.preview-header {
    text-align: center;
    margin-bottom: 20px;
}

.preview-school-logo {
    max-height: 60px;
    max-width: 60px;
    margin-bottom: 10px;
}

.preview-book-list {
    margin-top: 20px;
}

.preview-book-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.preview-book-cover {
    width: 40px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
}

.preview-additional-items {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.preview-additional-item {
    padding: 5px;
    margin-bottom: 5px;
}

/* PDF layout styles */
.pdf-page {
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px;
    padding: 20px;
}

    .pdf-page.a4-portrait {
        width: 210mm;
        height: 297mm;
        max-width: 100%;
    }

    .pdf-page.a4-landscape {
        width: 297mm;
        height: 210mm;
        max-width: 100%;
    }

    .pdf-page.a5-booklet {
        width: 148mm;
        height: 210mm;
        max-width: 100%;
    }

.pdf-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
}

@@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

@@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}



