* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap');

/* Book Card Styles */
.book-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(26, 111, 182, 0.2);
    position: relative;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 111, 182, 0.05), rgba(21, 165, 117, 0.05));
    opacity: 0.3;
    z-index: -1;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(26, 111, 182, 0.2);
}

.book-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 111, 182, 0.1), rgba(21, 165, 117, 0.1));
    opacity: 0.5;
    z-index: -1;
}

/* Book Cover Styles */
.book-cover-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f0f4f8;
    border-bottom: 1px solid rgba(26, 111, 182, 0.3);
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(90%);
}

.book-card:hover .book-cover {
    transform: scale(1.08);
    filter: brightness(100%);
}

.book-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 111, 182, 0.5), rgba(21, 165, 117, 0.5));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card:hover .book-cover-overlay {
    opacity: 0.9;
}

.book-overlay-content {
    color: #ffffff;
    font-size: 1.2rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    opacity: 0.95;
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.book-card:hover .book-overlay-content {
    transform: scale(1.15);
}

.book-cover-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(26, 111, 182, 0.1), rgba(21, 165, 117, 0.1));
}

.placeholder-icon {
    font-size: 5rem;
    color: rgba(26, 111, 182, 0.4);
    transition: color 0.4s ease;
}

.book-card:hover .placeholder-icon {
    color: rgba(26, 111, 182, 0.6);
}

/* Book Info Styles */
.book-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid rgba(26, 111, 182, 0.2);
}

.book-title-container {
    margin-bottom: 15px;
    text-align: center;
}

.book-title {
    font-size: 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #1a3c5e;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.4s ease;
}

.book-card:hover .book-title {
    color: #15a575;
}

.title-separator {
    height: 4px;
    width: 60px;
    background: linear-gradient(45deg, #1a6fb6, #15a575);
    margin: 10px auto;
    border-radius: 3px;
    transition Eo: width 0.4s ease;
}

.book-card:hover .title-separator {
    width: 80px;
}

.button-separator {
    height: 1px;
    width: 100%;
    background: linear-gradient(45deg, rgba(26, 111, 182, 0.2), rgba(21, 165, 117, 0.2));
    margin: 15px 0 20px 0;
}

/* Book Meta Styles */
.book-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #4a5b6d;
    font-family: 'Roboto', sans-serif;
    justify-content: center;
}

.book-meta i {
    margin-left: 6px;
    color: #15a575;
}

/* Book Actions Styles */
.book-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 95%;
    padding: 12px 28px;
    background: linear-gradient(45deg, #1a6fb6, #15a575);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-align: center;
    transition: all 0.4s ease;
    font-size: 1rem;
}

.btn-download:hover {
    background: linear-gradient(45deg, #154f8a, #0e7c51);
    box-shadow: 0 6px 20px rgba(26, 111, 182, 0.3);
    transform: translateY(-4px);
}

.btn-locked {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 95%;
    padding: 12px 28px;
    background: linear-gradient(45deg, rgba(26, 111, 182, 0.2), rgba(21, 165, 117, 0.2));
    color: #1a6fb6;
    border: 1px solid #1a6fb6;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1rem;
}

.btn-locked:hover {
    background: linear-gradient(45deg, rgba(26, 111, 182, 0.3), rgba(21, 165, 117, 0.3));
    box-shadow: 0 4px 16px rgba(26, 111, 182, 0.25);
    transform: translateY(-4px);
}

.book-lock-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #1a6fb6, #15a575);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(26, 111, 182, 0.3);
    transition: transform 0.4s ease;
}

.book-card:hover .book-lock-indicator {
    transform: scale(1.05);
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.15);
    border: none;
    background: #ffffff;
}

.modal-header {
    background: linear-gradient(45deg, #1a6fb6, #15a575);
    color: #ffffff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 20px;
}

.modal-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
}

.modal-body {
    padding: 25px;
    text-align: center;
    background: #ffffff;
}

.modal-icon {
    font-size: 3.2rem;
    color: #1a6fb6;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.modal-body:hover .modal-icon {
    transform: scale(1.05);
}

.modal-message {
    font-size: 1.2rem;
    color: #1a3c5e;
    margin-bottom: 25px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(45deg, #1a6fb6, #15a575);
    border: none;
    padding: 10px 28px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #154f8a, #0e7c51);
    box-shadow: 0 6px 20px rgba(26, 111, 182, 0.3);
    transform: translateY(-4px);
}

.btn-outline-primary {
    border-color: #1a6fb6;
    color: #1a6fb6;
    padding: 10px 28px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.4s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(45deg, #1a6fb6, #15a575);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(26, 111, 182, 0.25);
}

.modal-footer {
    padding: 15px 25px;
    background: #ffffff;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 10px 28px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.25);
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 50px 25px;
    background: linear-gradient(45deg, rgba(26, 111, 182, 0.05), rgba(21, 165, 117, 0.05));
    border-radius: 12px;
    margin: 30px 0;
    border: 2px dashed rgba(26, 111, 182, 0.3);
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 111, 182, 0.05), rgba(21, 165, 117, 0.05));
    opacity: 0.2;
    z-index: -1;
}

.empty-state:hover {
    background: linear-gradient(45deg, rgba(26, 111, 182, 0.08), rgba(21, 165, 117, 0.08));
    border-color: rgba(26, 111, 182, 0.4);
}

.empty-state-icon {
    font-size: 4rem;
    color: rgba(26, 111, 182, 0.4);
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.empty-state:hover .empty-state-icon {
    color: rgba(26, 111, 182, 0.6);
}

.empty-state-title {
    font-size: 1.8rem;
    color: #1a3c5e;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.empty-state-description {
    color: #15a575;
    font-size: 1.1rem;
    font-family: 'Roboto', sans-serif;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .book-cover-container {
        height: 240px;
    }

    .book-title {
        font-size: 1.4rem;
    }

    .book-info {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .book-cover-container {
        height: 200px;
    }

    .book-info {
        padding: 18px;
    }

    .book-title {
        font-size: 1.3rem;
    }

    .book-meta {
        font-size: 0.85rem;
        gap: 12px;
    }

    .btn-download,
    .btn-locked {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .book-cover-container {
        height: 160px;
    }

    .book-title {
        font-size: 1.2rem;
    }

    .empty-state {
        padding: 35px 15px;
    }

    .empty-state-title {
        font-size: 1.6rem;
    }

    .empty-state-description {
        font-size: 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-message {
        font-size: 1.1rem;
    }

    .modal-icon {
        font-size: 2.8rem;
    }
}