/* -- Styles from your template, unchanged -- */
@font-face {
    font-family: 'NaatFont';
    src: url('https://res.cloudinary.com/awescreative/raw/upload/v1749150996/Awes/naatfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.urdu-text {
    font-family: 'NaatFont', 'Noto Nastaliq Urdu', serif;
    line-height: 2.2;
    font-size: 1.125rem;
}

.urdu-text-xl {
    font-size: 2.2rem;
}

.urdu-text-lg {
    font-size: 1.8rem;
}

.urdu-text-md {
    font-size: 1.4rem;
}

.urdu-text-base {
    font-size: 1.125rem;
}

.urdu-text-sm {
    font-size: 1rem;
}

.urdu-text-xs {
    font-size: 0.9rem;
}

.urdu-text-xxs {
    font-size: 0.8rem;
    line-height: 1.8;
}

.header-gradient {
    background: linear-gradient(to bottom, #d2f4f2, #ffffff);
}

.card {
    background-color: white;
    border-radius: 1.25rem;
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 3px 6px -3px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

.section-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.section-title {
    font-weight: 700;
    color: #2a415a;
    font-size: 2.2rem;
    display: inline-flex;
    align-items: center;
}

.section-title-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title-icon {
    font-size: 1.8rem;
    color: white;
}

.gradient-icon-bg-kutub {
    background-image: linear-gradient(45deg, #8e44ad, #c39bd3);
}

.footer-bg {
    background-color: #2a415a;
    color: #cbd5e1;
}

.book-card-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 0.75rem;
}

.read-button {
    background-color: #06b6d4;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
}

.read-button:hover {
    background-color: #0891b2;
}

.stats-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.stats-bar i {
    font-size: 1rem;
    margin-left: 0.25rem;
}

.filter-container {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    border-radius: 9999px;
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.search-input-wrapper:focus-within {
    border-color: #8e44ad;
    box-shadow: 0 0 0 4px rgba(142, 68, 173, 0.2);
}

.search-input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    background-color: transparent;
    text-align: right;
}

.search-button {
    background-color: #8e44ad;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background-color: #7d3c98;
}

.filter-select {
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-left: 2.5rem;
}

.view-toggle-button {
    transition: all 0.2s ease-in-out;
}

.view-toggle-button.active {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-toggle-button.active i {
    color: #8e44ad;
}

#bookGrid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

#bookGrid.list-view .book-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#bookGrid.list-view .book-card-image-link {
    flex-shrink: 0;
    width: 7rem;
    margin-left: 1.5rem;
}