﻿@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-blue: #2c5282;
    --primary-yellow: #F4C560;
    --primary-yellow-hover: #e0b050;
    --bg-beige: #fdf6ec;
    --text-dark: #464255;
    --text-gray: #666;
    --text-light-gray: #888;
    --border-color: #ddd;
    --shadow-soft: 0 4px 25px rgba(0, 0, 0, 0.08);
    --bg-color: var(--bg-beige);
    --font-primary: 'Poppins', sans-serif;
    --button-color-blue: rgb(44, 82, 130)
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

.home {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100vh;
    background-color: var(--bg-color);
    font-family: var(--font-primary);
    overflow: hidden;
}

.main-content {
    flex-grow: 1;
    margin-left: 260px;
    width: calc(100% - 260px);
    overflow-y: auto;
    background-color: var(--bg-color);
    padding: 0;
}

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-color);
    padding: 30px 30px 20px 30px;
    box-shadow: 0 4px 15px -10px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title {
    font-size: 28px;
    font-weight: 600;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    width: 70%;
    max-width: 800px;
}

.video-modal video {
    width: 100%;
    border-radius: 8px;
}

.close-video {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    float: right;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff80;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.swal-wide-modal {
    width: 600px !important;  /* wider */
    max-width: 90% !important; /* responsive */
}

.styled-input {
    width: 100% !important;
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
}

.back-btn {
    background-color: white;
    border: none;
    cursor: pointer;
    color: #464255;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.back-btn:hover {
    background-color: #1a2b4b;
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 6px 15px rgba(26, 43, 75, 0.2);
}

.btn-read-now {
    background-color: #1a2b4b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: auto;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(244, 197, 96, 0.3);
}

.btn-read-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 197, 96, 0.4);
}

.btn-bookmark-details {
    background-color: #F4C560;
    color: white;
    border: 2px solid #F4C560;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
    min-width: 180px;
    text-align: center;
}

.bookmark-new-category {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .burger-menu {
        display: block;
    }
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    margin: 0 10px;
    font-size: 14px;
    color: #666;
    font-family: 'Poppins', sans-serif;
}

.search-icon {
    color: #ccc;
    width: 24px;
    height: 24px;
}

.dropdown-icon {
    color: #333;
    width: 30px;
    height: 30px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background-color: #1a2b4b;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.icon-btn img {
    width: 20px;
    height: 20px;
}

.welcome-text {
    padding-top: 20px;
    font-size: 20px;
    color: #464255;
    margin-bottom: 30px;
    font-weight: 500;
}

.welcome-text strong {
    font-weight: 700;
}

.content-container {
    padding: 40px 30px 30px 30px;
}

.books-grid {
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    justify-items: center;
    animation: fadeIn 0.5s ease;
}

.book-cover {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 2/3;
    background-color: #eee;
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: translateY(-5px);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 200, 100, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: transform 0.2s;
}

.book-badge:hover {
    transform: scale(1.1);
}

.book-title {
    margin-top: 10px;
    font-size: 18px;
    color: #464255;
    text-align: left;
    font-weight: 500;
    width: 100%;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    max-width: 80%;
    width: 100%;
    cursor: pointer;
}

.main-content.book-details-active {
    overflow: hidden !important;
    padding: 0;
}

.main-content.book-details-active .content-container {
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.book-details-view {
    display: none;
    background-color: #FEFBF6;
    border-radius: 0;
    padding: 30px 20px;
    margin: 0;
    animation: fadeIn 0.5s ease;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: none;
    flex-direction: column;
}

.details-header {
    margin-bottom: 20px;
    flex-shrink: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.details-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding-bottom: 50px;
}

.details-book-cover {
    width: 320px;
    flex-shrink: 0;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    transition: transform 0.3s ease;
}

.details-book-cover:hover {
    transform: scale(1.02);
}

.details-book-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.details-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 5px;
    padding-right: 10px;
}

.details-title h1 {
    font-family: 'Barlow', serif;
    font-size: 42px;
    color: #1a2b4b;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.details-publisher {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-top: 2px;
}

.details-meta {
    font-family: 'Times New Roman', serif;
    color: #555;
    font-size: 18px;
    line-height: 1.5;
}

.details-description {
    font-family: 'Poppins', sans-serif;
    color: #444;
    line-height: 1.6;
    font-size: 15px;
    max-width: 900px;
}

.details-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag-pill {
    background-color: #3b5998;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(59, 89, 152, 0.2);
    transition: transform 0.2s;
}

.tag-pill:hover {
    transform: translateY(-2px);
}

.details-actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .dashboard-header {
        flex-direction: row;
        gap: 10px;
    }

    .search-container {
        display: none;
    }

    .header-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header-icons {
        gap: 10px;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .book-title {
        font-size: 20px;
    }

    .book-cover {
        width: 100%;
    }

    .details-content {
        flex-direction: column;
        align-items: center;
    }

    .details-book-cover {
        width: 250px;
    }

    .details-info {
        align-items: center;
        text-align: center;
    }

    .details-tags {
        justify-content: center;
    }
}

.about-card {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin: 0 auto;
}

.about-title {
    font-family: 'Barlow', serif;
    font-size: 28px;
    color: #1a2b4b;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-text {
    font-family: 'Poppins', sans-serif;
    color: #464255;
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

.about-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-family: 'Poppins', sans-serif;
    color: #464255;
    font-size: 15px;
}

.about-footer p {
    margin-bottom: 8px;
}

.icon-badge-sm {
    position: absolute;
    top: 4px;
    left: 2px !important;
    width: 24px;
    height: 24px;
    padding: 0;
    z-index: 10;
    cursor: pointer;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.icon-badge-sm:hover {
    background-color: var(--primary-yellow-hover);
    transform: scale(1.1);
}

.icon-badge-sm svg {
    width: 12px;
    height: 12px;
    fill: white;
}

.sidebar-book-cover,
.related-vid-thumb {
    position: relative;
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        width: 100%;
    }

    .main-content {
        padding: 0;
    }

    .content-container {
        padding: 20px;
    }
}

.swal2-container {
    z-index: 9999 !important;
}

.pdf-reader-modal {
    display: none;
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.pdf-reader-content {
    width: 90%;
    max-width: 1000px;
    height: 90%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease;
}

.pdf-reader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.pdf-controls button {
    margin-left: 5px;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
}

.pdf-close-btn {
    font-size: 22px;
    border: none;
    background: none;
    cursor: pointer;
    margin-left: 10px;
}

.pdf-canvas-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #888;
    flex-direction: column;
    max-width: 1200px;
}

#pdfCanvas {
    max-width: 100%;
    border-radius: 6px;
    height: auto;
}

#flipbook {
    width: 100%;
    height: 100%;
    margin: auto;
    display: none;
}

.page {
    width: 100%;
    height: 100%;
}

canvas {
    width: 100%;
    height: 100%;
}

@keyframes slideIn{
    from{transform:translateY(-30px); opacity:0;}
    to{transform:translateY(0); opacity:1;}
}

@media (max-width: 768px) {
    .modal-content {
        width: 100% !important;
        height: 100%;
        border-radius: 0;
    }

    #flipbook {
        min-height: 300px;
        height: 70vh;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 620px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    animation: scaleUp 0.3s ease forwards;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.admin-modal-lg {
    max-width: 800px;
    width: 90%;
}

.admin-form-container {
    max-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-form-input {
    margin-bottom: 30px;
    width: 50%;
    box-sizing: border-box;
}

.admin-form-input-last {
    width: 50%;
    box-sizing: border-box;
}

.admin-form-select-wrapper {
    width: 50%;
    margin-bottom: 30px;
    position: relative;
}

.admin-form-select {
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
    background: white url('data:image/svg+xml;utf8,<svg fill=%22gray%22 height=%2224%22 viewBox=%220 0 24 24%22 width=%2224%22 xmlns=%22http://www.w3.org/2000/svg%22><path d=%22M7 10l5 5 5-5z%22/></svg>') no-repeat right 8px center;
}

.admin-save-btn {
    width: 50%;
    justify-content: center;
}

.password-input-wrapper {
    position: relative;
    width: 50%;
    margin-bottom: 0;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px;
    margin-bottom: 40px;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 30%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: color 0.2s;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #1a2b4b;
}

.password-toggle-btn .eye-icon {
    width: 18px;
    height: 18px;
}

.modal-content h3 {
    margin: 0;
    color: #1a2b4b;
    font-size: 26px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
}

.bookmark-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
}

.bookmark-chip {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #464255;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.bookmark-chip:hover {
    background-color: #eef2ff;
    border-color: #d0d7ff;
}

.bookmark-chip.selected {
    background-color: #1a2b4b;
    color: white;
    border-color: #1a2b4b;
    box-shadow: 0 4px 10px rgba(26, 43, 75, 0.2);
    transform: translateY(-2px);
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-close {
    width: 80px;
    padding: 10px 0;
    text-align: center;
    background: #7380ec;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(115, 128, 236, 0.3);
}

.btn-cancel,
.btn-confirm {
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-cancel {
    background-color: #f0f2f5;
    color: #666;
}

.btn-confirm {
    background-color: #1a2b4b;
    color: white;
    box-shadow: 0 8px 16px rgba(26, 43, 75, 0.2);
}

.btn-confirm:hover {
    background-color: #253b63;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes scaleDown {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

.modal-overlay.closing {
    animation: fadeOut 0.3s ease forwards;
}

.modal-overlay.closing .modal-content {
    animation: scaleDown 0.3s ease forwards;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #1a2b4b;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 16px;
    position: fixed;
    z-index: 3000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.book-details-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 15px;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.book-details-container::-webkit-scrollbar {
    width: 8px;
}

.book-details-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.book-details-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.book-details-container::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.book-details-col-left {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding-right: 15px;
}

.details-related-books {
    flex-shrink: 0;
    width: 350px;
    border-left: 1px solid #eee;
    padding-left: 30px;
    align-self: stretch;
}

.details-main-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.related-section-title {
    font-family: 'Barlow', sans-serif;
    font-size: 22px;
    color: #1a2b4b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.related-books-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-book-card {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: white;
    border: 1px solid #f0f0f0;
}

.sidebar-book-card:hover {
    background-color: #f8f9fa;
    border-color: #e0e0e0;
}

.sidebar-book-cover {
    width: 70px;
    min-width: 70px;
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    background-color: #eee;
}

.sidebar-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-book-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    padding-right: 5px;
}

.sidebar-book-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #464255;
    margin: 0 0 5px 0;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
    word-break: break-word;
    height: auto;
}

.related-videos-section {
    padding-top: 30px;
    margin-bottom: 50px;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-video-card-lib {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.related-video-card-lib:hover {
    transform: translateY(-3px);
}

.related-vid-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
}

.related-vid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.vid-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.related-vid-info {
    padding-top: 8px;
}

.related-vid-title {
    font-size: 14px;
    font-weight: 600;
    color: #464255;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-book-author {
    font-size: 13px;
    color: #888;
    margin: 0;
}

@media (max-width: 1200px) {
    .book-details-container {
        flex-direction: column;
    }

    .book-details-col-right {
        width: 100%;
        border-left: none;
        padding-left: 0;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid #eee;
    }

    .details-main-content {
        flex-direction: column;
    }

    .details-related-books {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 30px;
        margin-top: 40px;
    }

    .book-details-col-left {
        padding-right: 0;
    }

    .related-books-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .details-main-content {
        flex-direction: column;
        align-items: center;
    }

    .details-book-cover {
        width: 200px;
    }

    .book-details-view {
        padding: 0 20px;
    }

    .details-actions {
        display: flex;
        flex-direction: column;
    }

    .modal-body-grid {
        grid-template-columns: 1fr;
    }
}

.book-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 0 5px;
}

.tag-pill.sm {
    font-size: 10px !important;
    padding: 3px 10px !important;
    min-height: auto;
    line-height: normal;
    background-color: rgb(45, 67, 115) !important;
}

.filter-panel {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.filter-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.filter-accordion-item {
    border-bottom: 1px solid #f5f5f5;
}

.filter-accordion-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}

.filter-accordion-header:hover {
    background: #f9f9f9;
}

.accordion-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a2b4b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-badge {
    background: #3b5998;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    display: none;
}

.filter-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.filter-chips-container {
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #eee;
    background: white;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip.selected {
    background-color: #3b5998;
    color: white;
    border-color: #3b5998;
}

.search-container {
    position: relative;
}

.student-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background-color: #3b5998;
    background: linear-gradient(180deg, #4A69BD 0%, #324B82 100%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding: 20px 15px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

.sidebar-logo {
    width: 120px;
    height: auto;
    margin-bottom: 40px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
}

.btn-sidebar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    width: 100%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.btn-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-sidebar.active {
    background-color: var(--primary-yellow);
    color: var(--primary-dark-blue);
    font-weight: 600;
}

.btn-sidebar .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.btn-sidebar svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.card-dash-board {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--bg-color);
    color: #E74C3C;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #E74C3C;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s;
    flex-shrink: 0;
}

.card-dash-board:hover {
    background-color: #ffe6e6;
}

.logout {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.log-out {
    margin: 0;
}

.close-sidebar {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 20;
    color: white;
}

@media (max-width: 1024px) {
    .student-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 280px;
    }

    .student-sidebar.show {
        transform: translateX(0);
    }

    .close-sidebar {
        display: block;
    }
}

.books-table-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 0 20px 20px 20px;
    margin-top: 10px;
    height: calc(100vh - 240px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.table-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    width: 100%;
    min-height: 0;
    position: relative;
}

.books-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-family: 'Poppins', sans-serif;
    min-width: 600px;
}

.books-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: white;
    text-align: left;
    padding: 15px 20px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    border-bottom: none;
    white-space: nowrap;
}

.books-table td {
    padding: 15px 20px;
    vertical-align: middle;
    border-bottom: none;
    color: #464255;
    font-size: 15px;
}

.books-table tr:hover {
    background-color: #fcfcfc;
}

.books-table tr.selected {
    background-color: rgba(128, 128, 128, 0.1);
}

.books-table tr.selected td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.books-table tr.selected td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.book-cover-cell {
    width: 60px;
}

.book-cover-img {
    width: 40px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-title-cell {
    font-weight: 500;
    color: #1a2b4b;
    min-width: 200px;
}

.action-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
    padding: 6px;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background-color: #f0f2f5;
    color: #1a2b4b;
}

.action-btn.edit {
    color: #2c5282;
}

.action-btn.delete {
    color: #e53e3e;
}

.action-btn.edit:hover {
    background-color: #e6f0ff;
}

.action-btn.delete:hover {
    background-color: #fff5f5;
}

.action-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInTooltip 0.2s forwards;
    pointer-events: none;
}

.action-btn[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    z-index: 10;
    opacity: 0;
    animation: fadeInTooltip 0.2s forwards;
    pointer-events: none;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.add-book-btn {
    background-color: #F4C560;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.add-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(244, 197, 96, 0.3);
}

.control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.bulk-delete-btn {
    background-color: #e53e3e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.bulk-delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.3);
}

.bulk-delete-btn.visible {
    display: flex;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.checkbox-custom.checked {
    background-color: #1a2b4b;
    border-color: #1a2b4b;
}

.checkbox-custom.checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (max-width: 1024px) {
    .books-table-container {
        padding: 15px;
    }

    .books-table td,
    .books-table th {
        padding: 12px 15px;
    }
}

@media (max-width: 768px) {
    .control-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .add-book-btn {
        justify-content: center;
        width: 100%;
    }

    .search-container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .books-table-container {
        margin-top: 20px;
        padding: 10px;
    }

    .books-table {
        min-width: 700px;
    }
}

@media (max-width: 480px) {
    .control-bar {
        margin-bottom: 15px;
    }

    .books-table td,
    .books-table th {
        padding: 10px;
        font-size: 13px;
    }

    .book-title-cell {
        min-width: 150px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fffbf5;
    width: 1200px;
    max-width: 80%;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #464255;
    margin: 0;
}

.drag-drop-zone {
    border: 2px dashed #a0a0a0;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.drag-drop-zone:hover,
.drag-drop-zone.dragover {
    border-color: #F4C560;
    background-color: rgba(244, 197, 96, 0.05);
    transform: scale(1.01);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    fill: #464255;
    transition: transform 0.3s ease;
}

.drag-drop-zone:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-text-main {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.upload-text-sub {
    display: block;
    font-size: 14px;
    color: #888;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.file-preview-container {
    display: none;
    margin-bottom: 10px;
    width: 100%;
}

.preview-table-wrapper {
    max-height: 450px;
    overflow-y: auto;
    margin-bottom: 5px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th {
    position: sticky;
    top: 0;
    background: #fafafa;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    border-bottom: 1px solid #eee;
    z-index: 1;
}

.preview-table td {
    padding: 12px;
    border-bottom: 1px solid #f9f9f9;
    color: #464255;
    font-size: 14px;
    text-align: center;
}

.preview-table th:last-child,
.preview-table td:last-child {
    text-align: center;
    vertical-align: middle;
}

.preview-table .action-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.preview-table .action-btn:hover {
    background-color: rgba(255, 77, 79, 0.1) !important;
}

.file-card {
    border: 1px dashed #a0a0a0;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    margin-top: 10px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-name {
    font-weight: 600;
    color: #464255;
    font-size: 16px;
    margin-bottom: 4px;
}

.change-file-btn {
    border: 1px solid #7380ec;
    background: white;
    padding: 8px 24px;
    border-radius: 8px;
    color: #7380ec;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.change-file-btn:hover {
    background-color: #f0f1ff;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.btn-cancel {
    flex: 1;
    max-width: 200px;
    padding: 12px 0;
    text-align: center;
    border: 1px solid #F4C560;
    background: white;
    color: #F4C560;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background-color: #fffbf0;
}

.btn-view {
    width: 100px;
    padding: 12px 0;
    text-align: center;
    background: #2d3581;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(115, 128, 236, 0.3);
}

.btn-save {
    flex: 1;
    max-width: 200px;
    padding: 12px 0;
    text-align: center;
    background: #F4C560;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(244, 197, 96, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(244, 197, 96, 0.4);
}

.pagination-container {
    padding-top: 20px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

.pagination-info {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #eee;
    background: white;
    color: #464255;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.page-btn:hover:not(:disabled) {
    background-color: #fffbf0;
    color: #F4C560;
    border-color: #F4C560;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(244, 197, 96, 0.2);
}

.page-btn.active {
    background-color: #F4C560;
    color: white;
    border-color: #F4C560;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(244, 197, 96, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.page-btn svg {
    stroke-width: 2.5;
}

.filter-container {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 0 15px;
    border-radius: 12px;
    height: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    min-width: 180px;
    transition: box-shadow 0.2s;
}

.filter-container:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.filter-select {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    margin-right: 5px;
}

.filter-container[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInTooltip 0.2s forwards;
    pointer-events: none;
}

.filter-container[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    z-index: 10;
    opacity: 0;
    animation: fadeInTooltip 0.2s forwards;
    pointer-events: none;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    height: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.filter-btn:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background-color: #fafafa;
}

.filter-btn.active {
    background-color: #F4C560;
    color: white;
    box-shadow: 0 4px 10px rgba(244, 197, 96, 0.3);
}

.filter-btn.active svg {
    stroke: white;
}

.filter-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 20px;
    min-width: 300px;
    z-index: 100;
    display: none;
    animation: slideDown 0.2s ease;
}

.filter-dropdown-panel.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section:last-of-type {
    margin-bottom: 15px;
}

.filter-section-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-option:hover {
    background-color: #f8f9fa;
}

.filter-option input[type='checkbox'] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a2b4b;
}

.filter-option span {
    font-size: 14px;
    color: #464255;
    user-select: none;
}

.filter-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.filter-clear-btn,
.filter-apply-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.filter-clear-btn {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.filter-clear-btn:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.filter-apply-btn {
    background: #F4C560;
    color: white;
    box-shadow: 0 2px 5px rgba(244, 197, 96, 0.3);
}

.filter-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 197, 96, 0.4);
}

.home {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100vh;
    background-color: var(--bg-color);
    font-family: var(--font-primary);
    overflow: hidden;
}

.main-content {
    flex-grow: 1;
    margin-left: 260px;
    width: calc(100% - 260px);
    background-color: var(--bg-color);
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-color);
    padding: 30px 30px 20px 30px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title {
    font-size: 28px;
    font-weight: 600;
    color: #464255;
    font-family: 'Barlow', sans-serif;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    margin: 0 10px;
    font-size: 14px;
    color: #666;
    font-family: 'Poppins', sans-serif;
}

.search-icon {
    color: #ccc;
    width: 24px;
    height: 24px;
}

.dropdown-icon {
    color: #333;
    width: 30px;
    height: 30px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background-color: #1a2b4b;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.icon-btn img {
    width: 20px;
    height: 20px;
}

.welcome-text {
    padding-top: 20px;
    font-size: 20px;
    color: #464255;
    margin-bottom: 30px;
    font-weight: 500;
}

.welcome-text strong {
    font-weight: 700;
}

.content-container {
    background-color: #FEFBF6;
    padding: 0 30px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.books-grid {
    padding-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    justify-items: center;
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.category-main-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.books-grid::-webkit-scrollbar {
    width: 8px;
}

.books-grid::-webkit-scrollbar-track {
    background: transparent;
}

.books-grid::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

.book-cover {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 2/3;
    background-color: #eee;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-badged-already {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(230, 69, 69, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 200, 100, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-title {
    margin-top: 10px;
    font-size: 18px;
    color: #464255;
    text-align: left;
    font-weight: 500;
    width: 100%;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    max-width: 80%;
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.category-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-shrink: 0;
    background-color: #FEFBF6;
    padding: 20px 0 10px 0;
}

.category-container .category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background-color: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    color: #464255;
    font-weight: 500;
    font-size: 18px;
}

.category-container .category-item:hover {
    background-color: #1a2b4b;
    color: #fff;
    border-radius: 12px;
}

.category-container .category-item.active {
    background-color: #1a2b4b;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(26, 43, 75, 0.2);
}

.category-container .category-item .delete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    margin-left: 5px;
}

.category-container .category-item:hover .delete-icon {
    opacity: 1;
    transform: scale(1);
}

.category-container .category-item .delete-icon:hover {
    background-color: #ff4d4d;
    color: white;
    transform: scale(1.1);
}

.category-container .add-category-btn {
    font-size: 24px;
    padding: 5px 20px;
    font-weight: 600;
    color: #1a2b4b;
    border: 2px dashed #1a2b4b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-container .add-category-btn:hover {
    background-color: #e0e7ff;
    color: #1a2b4b;
    border-style: solid;
    transform: translateY(-2px);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    animation: scaleUp 0.3s ease forwards;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.modal-content h3 {
    margin: 0;
    color: #1a2b4b;
    font-size: 26px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
}

.input-group {
    width: 100%;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    background-color: #f8f9fa;
    border-radius: 16px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    color: #464255;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #1a2b4b;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(26, 43, 75, 0.1);
}

.input-group input::placeholder {
    color: #aaa;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.main-video-player{
    position: relative;
}

.main-video{
    width:100%;
    border-radius:10px;
}

.center-play-btn{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    background:rgba(0,0,0,0.5);
    border-radius:50%;
    padding:20px;
    cursor:pointer;
    transition:0.2s;
}

.center-play-btn:hover{
    background:rgba(0,0,0,0.7);
}

.center-play-btn.hide{
    display:none;
}

.btn-cancel,
.btn-confirm {
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #888;
}

.btn-cancel:hover {
    background-color: #eee;
    color: #555;
}

.btn-confirm {
    background-color: #1a2b4b;
    color: white;
    box-shadow: 0 8px 16px rgba(26, 43, 75, 0.2);
}

.btn-confirm:hover {
    background-color: #253b63;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(26, 43, 75, 0.3);
}

.btn-confirm:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes scaleDown {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

.modal-overlay.closing {
    animation: fadeOut 0.3s ease forwards;
}

.modal-overlay.closing .modal-content {
    animation: scaleDown 0.3s ease forwards;
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .category-container {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-container::-webkit-scrollbar {
        display: none;
    }

    .category-container p {
        flex-shrink: 0;
    }

    .burger-menu {
        display: block;
    }

    .dashboard-header {
        flex-direction: row;
        gap: 10px;
    }

    .search-container {
        display: none;
    }

    .header-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header-icons {
        gap: 10px;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .book-title {
        font-size: 20px;
    }

    .book-cover {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        width: 100%;
    }

    .main-content {
        padding: 0;
    }

    .content-container {
        padding: 20px;
    }
}

.btn-danger {
    background-color: #ff4d4d;
    color: white;
    box-shadow: 0 8px 16px rgba(255, 77, 77, 0.2);
}

.btn-danger:hover {
    background-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(255, 77, 77, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

body,
.home {
    background-color: #fdf6ec !important;
}

.main-content {
    background-color: #fdf6ec !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.content-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px 30px 30px 30px;
}

#videoDashboard {
    overflow-y: auto;
    flex-grow: 1;
    display: block;
    padding-top: 20px;
    padding-bottom: 50px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

#videoDashboard::-webkit-scrollbar {
    width: 8px;
}

#videoDashboard::-webkit-scrollbar-track {
    background: transparent;
}

#videoDashboard::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

#viewAllSection {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.view-all-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #fdf6ec;
}

#viewAllGrid {
    overflow-y: auto;
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    align-content: start;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

#viewAllGrid::-webkit-scrollbar {
    width: 8px;
}

#viewAllGrid::-webkit-scrollbar-track {
    background: transparent;
}

#viewAllGrid::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutSlide {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.fade-in-slide {
    animation: fadeInSlide 0.4s ease forwards;
}

.fade-out-slide {
    animation: fadeOutSlide 0.3s ease forwards;
}

.video-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 24px;
    color: #3b5998;
}

h2.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #464255;
    font-family: 'Barlow', sans-serif;
    margin: 0;
}

.view-all-btn {
    background-color: #3b5998;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s;
}

.view-all-btn:hover {
    background-color: #2d4373;
}

.section-description {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    margin-top: -10px;
}

.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: transparent;
    border-radius: 16px;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumb-box {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-info {
    display: block;
    padding-top: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #464255;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.video-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.video-tag {
    background-color: #e8ccaef0;
    color: #6d5d4b;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.bookmark-badge-styled {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-yellow, #F4C560);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s, background-color 0.2s;
}

.bookmark-badge-styled:hover {
    transform: scale(1.1);
    background-color: var(--primary-yellow-hover, #e0b050);
}

.bookmark-badge-styled svg {
    width: 24px;
    height: 24px;
    color: white;
}

#videoDetailsSection {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.video-details-col1 {
    container: video-details-col1 / inline-size;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    background-color: var(--cardchoice-1);
    padding: 39px 30px 90px 47px;
    border-radius: 12px;
}

.video-details-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.subtitle-e {
    margin: 0 10px;
    font-size: 25px;
    font-family: 'Poppins', sans-serif;
    color: #464255;
}

.video-details-col2 {
    container: video-details-col2 / inline-size;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-details-row1 {
    display: flex;
    align-items: flex-start;
    gap: 41px;
}

.video-details-col-left {
    margin-top: 9px;
    display: flex;
    flex-direction: column;
    gap: 33px;
    flex-grow: 1;
    color: #464255;
    letter-spacing: 0.74px;
    text-align: left;
}

.input-group-top {
    margin-top: -9px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.input-group-top-grade-1-mtb {
    text-align: left;
    padding: 15px 20px;
    font-size: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
}

.input-group {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.input-group-grade-1-mtb {
    min-height: 224px;
    flex-shrink: 0;
    text-align: left;
    padding: 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    resize: none;
    font-family: 'Inter', sans-serif;
}

.video-details-col-bottom {
    display: flex;
    flex-direction: column;
    gap: 21px;
    font-size: 25px;
}

.video-details-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: rgba(216, 216, 216, 0.2);
    padding: 21px 40px 21px 27px;
    border-radius: 12px;
}

.video-details-text-grade {
    text-align: left;
    margin: 0;
}

.video-details-col-right {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 27px;
    font-size: 25px;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

.video-details-group-top {
    position: relative;
    background-color: #333;
    border-radius: 16px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-details-group-bottom {
    margin-top: 20px;
}

.row-bottom {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.row-bottom button {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

.row-bottom button:hover {
    background: #f0f0f0;
}

@media screen and (max-width: 1280px) {
    .video-details-row1 {
        flex-direction: column;
    }

    .video-details-col-right {
        width: 100%;
    }
}

.video-details-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.video-details-header {
    padding: 20px 30px;
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.video-details-layout {
    display: flex;
    flex-direction: column;
    padding: 20px 30px 40px 30px;
    flex: 1;
    overflow-y: auto;
    gap: 40px;
}

.video-primary-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}

.video-main-content {
    flex: 2;
    min-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    background-color: #000;
    border-radius: 20px;
    overflow: hidden;
}

.main-video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-play-btn {
    width: 80px;
    height: 80px;
}

.main-play-btn svg {
    width: 40px;
    height: 40px;
}

.video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.fake-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
}

.fake-progress-fill {
    width: 30%;
    height: 100%;
    background-color: #fff;
    border-radius: 3px;
}

.main-video-info {
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

.main-video-title {
    font-size: 24px;
    font-weight: 700;
    color: #464255;
    margin-bottom: 8px;
    line-height: 1.3;
}

.main-video-meta {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.main-video-description {
    font-size: 16px;
    color: #464255;
    line-height: 1.6;
    margin-bottom: 25px;
}

.main-video-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

.tag-pill {
    background-color: rgb(26, 43, 75);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.btn-bookmark {
    background-color: #f3d47d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-bookmark:hover {
    background-color: #e0c065;
}

.video-sidebar {
    flex: 1;
    min-width: 300px;
    padding-left: 20px;
    text-align: left;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    color: #464255;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.related-videos-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-video-card {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
    overflow: visible !important;
}

.related-video-card:hover {
    opacity: 0.8;
}

.related-thumb-box {
    position: relative;
    width: 140px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.related-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    color: #464255;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 12px;
    color: #888;
}

@media screen and (max-width: 1200px) {
    .video-primary-section {
        display: flex;
        flex-direction: column !important;
        width: 100% !important;
    }

    .video-details-layout {
        padding: 0 15px 30px 15px !important;
        overflow-y: auto !important;
        gap: 30px;
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .video-main-content {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .video-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding-left: 0 !important;
        margin-top: 10px;
        box-sizing: border-box !important;
    }

    .sidebar-title {
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 10px;
        margin-bottom: 20px;
        width: 100%;
    }

    .related-videos-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
        width: 100%;
    }

    .related-video-card {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .related-thumb-box {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        max-width: none;
    }

    .related-info {
        width: 100%;
    }

    .related-title {
        white-space: normal;
    }

    .related-books-section {
        width: 100% !important;
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    .video-details-layout {
        padding: 0 20px 30px 20px !important;
    }

    .related-videos-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .video-details-layout {
        padding: 0 10px 30px 10px !important;
    }

    .related-videos-list {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-title-group {
        width: 100%;
    }

    h2.section-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .view-all-btn {
        padding: 6px 16px;
        font-size: 13px;
        align-self: flex-start;
    }
}

.btn-bookmark {
    background-color: #f3d47d !important;
    color: white !important;
}

.btn-bookmark:hover {
    background-color: #e0c065 !important;
}

.related-thumb-box {
    position: relative;
}

.related-bookmark-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 24px;
    height: 24px;
    background-color: #f3d47d;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}

.related-bookmark-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.related-bookmark-btn.active {
    background-color: #e0c065;
}

.related-bookmark-btn svg {
    width: 14px;
    height: 14px;
}

.related-books-section {
    margin-top: 40px;
    width: 100%;
    flex-basis: 100%;
}

.related-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.book-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.book-cover {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.book-cover-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.book-card:hover .book-cover {
    transform: translateY(-5px);
}

.book-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: #f3d47d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transition: transform 0.2s;
}

.book-badge:hover {
    transform: scale(1.1);
}

.book-badge svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.book-title {
    font-size: 15px;
    font-weight: 700;
    color: #464255;
    text-align: left;
    line-height: 1.4;
    padding-left: 4px;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card:hover .book-title {
    color: #3b5998;
}

body {
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100%;
    width: 100%;
}

.login-left {
    flex: 0 0 600px;
    background-color: var(--primary-blue);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.login-auth-card {
    background: white;
    width: 560px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup-link-wrapper {
    text-align: center;
    margin-top: 25px;
}

.signup-link {
    color: var(--primary-yellow);
    font-weight: 600;
    text-decoration: none;
}

.signup-link:hover {
    text-decoration: underline;
}

.login-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-header {
    margin-bottom: 25px;
    text-align: center;
}

.login-header h1 {
    font-family: 'Barlow', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

#login-step {
    width: 100%;
}

.login-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-yellow);
}

.form-options {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 5px;
}

.form-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-yellow);
}

.recaptcha-box {
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    margin-bottom: 15px;
    width: 100%;
}

.recaptcha-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: white;
}

.recaptcha-text {
    font-size: 12px;
    font-family: Roboto, sans-serif;
    display: flex;
    flex-direction: column;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-yellow);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

.btn-login:hover {
    background-color: var(--primary-yellow-hover);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}

.login-footer a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.forgot-password {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.login-right {
    flex: 1;
    background-color: var(--bg-beige);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.right-content {
    max-width: 90%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.e-library-title {
    font-family: 'Barlow', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.illustration-box {
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
}

.illustration-img {
    width: 100%;
    height: auto;
    display: block;
}

.description-text {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    max-width: 100%;
    text-align: center;
    padding: 0 20px;
}

@media screen and (max-width: 900px) {
    .e-library-title {
        font-size: 36px;
    }
}

@media screen and (max-width: 768px) {
    body {
        background-color: var(--primary-blue);
        overflow-y: auto;
    }

    .login-container {
        flex-direction: column;
        padding: 30px 20px;
        min-height: 100vh;
        align-items: center;
        justify-content: flex-start;
    }

    .login-left {
        flex: 1;
        width: 100%;
        max-width: 600px;
        padding: 0 !important;
        box-shadow: none;
    }

    .login-logo {
        margin-bottom: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-img {
        width: 100px;
        height: 100px;
    }

    .login-auth-card {
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        padding: 30px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .login-right {
        display: none;
    }

    .login-form {
        max-width: 100%;
    }

    .role-selection-group {
        padding: 0;
    }

    .back-button-container {
        margin-left: -5px;
        margin-bottom: 15px;
    }

    .btn-back-login {
        padding: 8px 16px;
        font-size: 14px;
    }

    .role-teacher {
        width: 100% !important;
    }
}

@media screen and (max-width: 480px) {
    .login-container {
        padding: 20px 15px;
    }

    .login-left {
        padding: 0;
    }

    .login-auth-card {
        padding: 25px 25px;
    }

    .logo-img {
        width: 80px;
        height: 80px;
    }

    .login-logo {
        margin-bottom: 20px;
    }

    .role-selection-group {
        flex-direction: column;
        gap: 15px;
    }

    .login-header h1 {
        font-size: 26px;
    }

    .form-group input {
        padding: 16px 18px;
        font-size: 15px;
    }

    .btn-login {
        padding: 14px;
        font-size: 15px;
    }

    .recaptcha-box {
        padding: 8px;
    }

    .login-footer {
        font-size: 12px;
    }
}

.form-group {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #666;
    cursor: pointer;
    background: transparent;
    z-index: 10;
}

.login-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.recaptcha-label {
    font-size: 10px;
    color: #555;
    margin-top: 2px;
}

.recaptcha-logo {
    width: 24px;
    margin-left: auto;
    opacity: 0.5;
}

.text-opacity-70 {
    opacity: 0.7;
}

.role-selection-group {
    display: flex;
    gap: 25px;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 0;
}

.role-card {
    flex: 1;
    height: 160px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 600;
    font-size: 18px;
    padding: 20px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.role-teacher {
    background-color: var(--primary-blue);
    color: white;
}

.role-teacher .role-icon {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.role-student {
    background-color: var(--primary-yellow);
    color: white
}

.role-student .role-icon {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.role-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 15px;
    padding: 10px;
    border: 2px solid;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.role-icon ion-icon {
    font-size: 32px !important;
}

.hidden {
    display: none !important;
}

.back-button-container {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.btn-back-login {
    background: rgb(44, 82, 130);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 15px;
    padding: 10px 20px;
    transition: all 0.2s;
}

.btn-back-login:hover {
    transform: translateX(-3px);
}

.role-prompt {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 400;
}

.login-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body {
    height: 100vh;
    overflow: hidden;
}

.form-header-title {
    text-align: center;
    font-family: 'Barlow', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.stepper-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
    width: 100%;
}

.step-indicator {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
    margin: 0 5px;
}

.step-indicator.active {
    background: var(--primary-yellow);
}

.step-label {
    display: none;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-blue);
    position: absolute;
    top: -4px;
    left: -6px;
}

.form-step {
    display: none;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    animation: smoothSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-step.active {
    display: flex;
}

@keyframes smoothSlideIn {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.role-selection-group {
    display: flex;
    gap: 25px;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    padding: 0;
}

.role-card {
    flex: 1;
    height: 160px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
    font-weight: 600;
    font-size: 18px;
    padding: 20px 40px;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.role-teacher {
    background-color: var(--primary-blue);
}

.role-student {
    background-color: var(--primary-yellow);
}

.role-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-gray);
    align-self: flex-start;
    margin-bottom: 8px;
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

.input-field {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    outline: none;
    margin-bottom: 25px;
}

.input-field:focus {
    border-color: var(--primary-yellow);
}

.readonly-text {
    width: 100%;
    padding: 12px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    text-align: left;
}

.btn-large {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-yellow);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.btn-large:hover {
    background: var(--primary-yellow-hover);
}

.otp-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.otp-box {
    width: 45px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.resend-link {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    align-self: flex-start;
}

.nav-buttons {
    display: flex;
    width: 100%;
    gap: 15px;
    margin-top: auto;
}

.btn-back {
    flex: 1;
    padding: 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-gray);
    font-weight: 600;
    cursor: pointer;
}

.btn-next {
    flex: 1;
    padding: 16px;
    background: var(--primary-yellow);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.footer-link {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-gray);
    text-align: right;
    width: 100%;
}

.footer-link a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
}

@media screen and (max-width: 1024px) {
    body {
        background-color: var(--primary-blue);
        overflow-y: auto;
    }

    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 20px;
        align-items: center;
        justify-content: center;
    }

    .login-logo {
        margin-bottom: 30px;
    }

    .logo-img {
        width: 100px;
        height: 100px;
    }

    .login-right {
        display: none;
    }

    .login-left {
        flex: 1;
        width: 100%;
        max-width: 600px;
        padding: 20px;
        box-shadow: none;
    }

    .login-auth-card {
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        padding: 30px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .form-header-title {
        color: var(--text-dark);
        margin-bottom: 20px;
    }

    .step1-desc,
    .input-label,
    .step-verify-title,
    .step-verify-desc,
    .confirm-title,
    .confirm-h4,
    .resend-link,
    .success-desc,
    .success-title {
        color: var(--text-dark) !important;
    }

    .step-verify-desc {
        color: var(--text-gray) !important;
    }

    .footer-link {
        color: var(--text-gray);
    }

    .footer-link a {
        color: var(--primary-yellow);
    }

    .input-field {
        background: white;
        color: var(--text-dark);
        border: 1px solid var(--border-color);
    }

    .readonly-text {
        color: var(--text-dark);
        border-bottom: 1px solid #eee;
    }

    .role-card {
        background-color: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        width: 100% !important;
    }

    .role-teacher {
        background-color: var(--primary-blue);
        border: none;
    }

    .role-student {
        background-color: var(--primary-yellow);
        color: var(--text-dark);
    }

    .role-teacher,
    .role-student {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}

@media screen and (max-width: 480px) {
    .login-container {
        padding: 15px;
    }

    .login-auth-card {
        padding: 25px 20px;
    }

    .form-header-title {
        font-size: 24px;
    }

    .role-selection-group {
        flex-direction: column;
        gap: 15px;
        padding: 0px !important;
    }

    .role-card {
        width: 100% !important;
        max-width: 100%;
        height: 120px;
        padding: 15px;
    }

    .otp-container {
        gap: 8px;
    }

    .otp-box {
        width: 40px;
        height: 45px;
        font-size: 18px;
    }

    .nav-buttons {
        gap: 10px;
    }

    .btn-back,
    .btn-next {
        padding: 14px;
        font-size: 15px;
    }

    .logo-img {
        width: 80px;
        height: 80px;
    }
}

.step1-desc {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.step-verify-title {
    padding-top: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-verify-desc {
    font-size: 13px;
    color: var(--text-light-gray);
    margin-bottom: 20px;
}

.highlight-phone {
    color: var(--primary-yellow);
    font-size: 16px;
}

.phone-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.phone-input-group {
    margin-bottom: 0;
}

.btn-send-otp {
    width: 120px;
    padding: 0;
}

.icon-check-wrapper {
    width: 80px;
    height: 80px;
    background: #ebd581;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.success-title {
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.success-desc {
    color: var(--text-gray);
    margin-bottom: 30px;
    text-align: center;
    font-size: 18px;
}

.btn-lets-go {
    width: auto;
    padding: 12px 60px;
    border-radius: 8px;
}

.confirm-title {
    padding: 20px;
    padding-bottom: 20px;
    color: var(--primary-blue);
    text-align: center;
}

.nav-buttons-spaced {
    margin-top: 30px;
}

.confirm-h4 {
    margin: 20px 0 10px;
    text-align: center;
    color: #555;
    font-weight: normal;
}

.nav-right {
    justify-content: flex-end;
}

.btn-auto-width {
    width: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.searchable-dropdown {
    position: relative;
    width: 100%;
}

.searchable-dropdown .input-field {
    padding-right: 40px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 38%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.dropdown-options {
    display: none;
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 100;
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.dropdown-options li {
    padding: 15px 20px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-options li:last-child {
    border-bottom: none;
}

.dropdown-options li:hover {
    background-color: #FEFBF6;
    color: var(--primary-yellow);
    padding-left: 25px;
}

.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.step-content-centered {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
}

.password-wrapper .input-field {
    margin-bottom: 0;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-gray);
    cursor: pointer;
    z-index: 10;
}

.text-center-mb {
    text-align: center;
    margin-bottom: 20px;
}

.initially-hidden {
    display: none;
}

#addStudentModal .modal-content {
    max-width: 1200px;
    width: 100%;
    z-index: 998;
}

#addAdminModal .modal-content {
    max-width: 900px;
    width: 100%;
    z-index: 998;
}

#unsavedChangesModal .modal-content {
    max-width: 1000px;
    width: 100%;
    z-index: 999;
}

#deletePreviewStudentModal .modal-content {
    max-width: 1000px;
    width: 100%;
    z-index: 999;
}

.search-filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.filter-dropdown-wrapper {
    position: relative;
}

.filter-arrow-icon {
    margin-left: 5px;
}

.action-group {
    display: flex;
    gap: 10px;
}

.col-checkbox {
    width: 50px;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.file-name-info {
    font-size: 13px;
    color: #888;
}

.modal-footer {
    display: none;
}

.unsaved-modal-content {
    width: 400px;
    text-align: center;
}

.unsaved-title {
    margin-top: 0;
    color: #464255;
}

.unsaved-text {
    color: #666;
    margin: 15px 0 25px;
}

.unsaved-footer {
    justify-content: center;
    gap: 15px;
    margin-top: 0;
}

.btn-leave-confirm {
    background: #E74C3C;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.empty-state-cell {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #464255;
}

.empty-subtitle {
    font-size: 14px;
    color: #888;
}

.preview-more-rows {
    text-align: center;
    color: #888;
}

.delete-action-btn {
    color: #ff4d4f;
    border: none;
    background: none;
    cursor: pointer;
}

.book-title-text {
    color: #464255;
}

.search-container-custom {
    max-width: 400px;
    padding: 5px 15px;
    height: 50px;
}

.col-width-60 {
    width: 60px;
}

.pdf-badge {
    background-color: #c0392b;
    width: 36px;
    height: 44px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.icon-margin {
    display: inline-block;
    margin-left: 5px;
}

.no-data-cell {
    text-align: center;
    padding: 60px 20px;
}

.no-data-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.no-data-title {
    font-size: 18px;
    font-weight: 600;
    color: #464255;
}

.no-data-subtitle {
    font-size: 14px;
    color: #888;
}

.preview-info-row {
    text-align: center;
    color: #888;
}

.cursor-pointer {
    cursor: pointer;
}

.modal-text-secondary {
    color: #666;
}

.modal-text-highlight {
    color: #1a2b4b;
}

.modal-text-centered {
    color: #666;
    width: 100%;
    text-align: center;
}

.modal-highlight-bold {
    font-weight: 700;
    color: #1a2b4b;
}

.video-section-title {
    margin: 0;
    font-size: 32px;
}

.video-badge-absolute {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
}

.book-card-cover-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.book-cover-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-badge-absolute {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    z-index: 10;
}

.book-info-padding {
    padding-top: 10px;
}

.book-title-sm {
    font-size: 14px;
    margin: 0;
}

.no-match-msg {
    color: #666;
    width: 100%;
}

.no-books-msg {
    grid-column: 1/-1;
    text-align: center;
    color: #888;
    margin-top: 50px;
}

.badge-delete {
    cursor: pointer;
    background-color: #ff4d4d;
}

.section-hidden {
    display: none;
}

.modal-lg {
    max-width: 1050px;
    width: 95%;
    padding: 40px;
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-title-custom {
    font-size: 24px;
    font-weight: 600;
    color: #464255;
}

.modal-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-add-more {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save {
    background-color: var(--primary-yellow);
    color: white;
    padding: 10px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    margin-right: 50px;
}

.close-modal-custom {
    background: none;
    border: none;
    cursor: pointer;
    color: #464255;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-custom {
    margin-bottom: 10px;
}

.form-label-custom {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #464255;
    font-size: 13px;
}

.form-input-beige {
    background-color: #F7F7F5;
    border: none;
    border-radius: 12px;
    padding: 15px;
    width: 100%;
    font-family: var(--font-primary);
    font-size: 12px;
    color: #464255;
}

.form-textarea-beige {
    background-color: #F7F7F5;
    border: none;
    border-radius: 12px;
    padding: 15px;
    width: 100%;
    font-family: var(--font-primary);
    font-size: 14px;
    color: #464255;
    resize: none;
    height: 120px;
}

.form-column {
    margin-bottom: 20px;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-header {
    background-color: #F7F7F5;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-body {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
    margin-top: 5px;
    padding: 10px;
}

.dropdown-body.open {
    display: block;
}

.dropdown-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}

.dropdown-search:focus {
    border-color: var(--primary-yellow);
    outline: none;
}

.dropdown-list {
    max-height: 150px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.upload-box {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 12px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;
    cursor: pointer;
    transition: border-color 0.3s;
    background-color: #fff;
    margin-bottom: 15px;

    overflow: hidden;

}

.upload-box:hover {
    border-color: var(--primary-yellow);
}

.upload-box img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-icon {
    font-size: 32px;
    color: var(--primary-yellow);
    margin-bottom: 10px;
}

.upload-text {
    color: var(--primary-yellow);
    font-weight: 500;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-item {
    background-color: #F0F0F0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-close {
    cursor: pointer;
    color: #888;
}

.modal-overlay {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content.modal-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: #FFFEFC;
}

.modal-header-custom {
    border-bottom: 2px solid #F0F0F0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.modal-title-custom {
    font-size: 26px;
    font-weight: 700;
    color: #2D3748;
    letter-spacing: -0.5px;
}

.form-label-custom {
    font-size: 15px;
    color: #4A5568;
    margin-bottom: 10px;
}

.form-input-beige,
.form-textarea-beige {
    background-color: #fff;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    font-size: 13px;
}

.form-input-beige:focus,
.form-textarea-beige:focus {
    background-color: #fff;
    border-color: var(--primary-yellow);
    outline: none;
}

.tags-container{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:8px;
}

.tag-item{
    background:#F1F5F9;
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
}

.tag-item span{
    margin-left:6px;
    cursor:pointer;
}

.dropdown-header {
    background-color: #fff;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.dropdown-header:hover {
    border-color: #CBD5E0;
    background-color: #fff;
}

.dropdown-body {
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
    color: #4A5568;
}

.dropdown-item:hover {
    background-color: #EDF2F7;
    color: #2D3748;
    padding-left: 20px;
}

.upload-box {
    background-color: #FAFAFA;
    border: 2px dashed #CBD5E0;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: var(--primary-yellow);
    background-color: #FFFCF5;
    transform: translateY(-2px);
}

.btn-save {
    box-shadow: 0 4px 6px rgba(244, 197, 96, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(244, 197, 96, 0.4);
}

.form-label-custom {
    text-align: left;
}

.modal-edit-student, .modal-edit-teacher {
    max-width: 700px !important;
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
}

.modal-confirm {
    max-width: 400px !important;
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
}

.modal-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.warning-icon-container {
    width: 60px;
    height: 60px;
    background-color: #FEE2E2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #DC2626;
    margin-bottom: 20px;
}

.modal-header-center h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: #6B7280;
    font-size: 14px;
}

.modal-body.text-center {
    text-align: center;
    margin-bottom: 30px;
    color: #4B5563;
    font-size: 16px;
}

.modal-footer-center {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-delete-red {
    background-color: #DC2626;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-delete-red:hover {
    background-color: #B91C1C;
}

.btn-cancel-gray {
    background-color: #F3F4F6;
    color: #374151;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel-gray:hover {
    background-color: #E5E7EB;
}

.book-details-view {
    padding: 40px 60px;
    background-color: #FAFAF9;
    min-height: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

.back-btn-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: white;
    border: 1px solid #E5E7EB;
    padding: 12px 24px;
    border-radius: 30px;
    color: #1F2937;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.back-btn-pill:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateX(-3px);
    border-color: #D1D5DB;
}

.back-btn-pill svg {
    color: #4B5563;
}

.details-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-save-light {
    background-color: white;
    color: #4B5563;
    border: 1px solid #E5E7EB;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.btn-save-light:hover {
    background-color: #F9FAFB;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.btn-more-dots {
    background: white;
    border: 1px solid #E5E7EB;
    color: #3B82F6;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.btn-more-dots:hover {
    background-color: #EFF6FF;
    border-color: #BFDBFE;
}

.details-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

.details-left-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 50px;
}

.details-right-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
    margin-left: 5px;
}

.input-wrapper-gray {
    background-color: #F5F5F4;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper-gray:focus-within {
    background-color: white;
    border-color: #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-input-transparent,
.form-select-transparent {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 16px;
    color: #111827;
    font-weight: 600;
    outline: none;
    font-family: inherit;
}

.form-textarea-transparent {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 15px;
    color: #4B5563;
    resize: none;
    outline: none;
    line-height: 1.6;
    font-family: inherit;
}

.subject-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.subject-chip {
    background: #3B5998;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.subject-chip:hover {
    background: #2D4373;
    transform: translateY(-1px);
}

.search-dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    padding: 16px 20px;
    background-color: #F5F5F4;
    border: 1px solid transparent;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-trigger:hover {
    background-color: white;
    border-color: #E5E7EB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dropdown-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 50;
    overflow: hidden;
}

.dropdown-popup.show {
    display: block;
}

.dropdown-search-wrapper {
    padding: 12px;
    background-color: #F9FAFB;
    border-bottom: 1px solid #F3F4F6;
}

.dropdown-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.dropdown-search-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dropdown-list {
    max-height: 220px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 15px;
    color: #374151;
}

.dropdown-option:hover {
    background-color: #EFF6FF;
    color: #1D4ED8;
}

.cover-display-large {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4.2;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    transition: transform 0.3s;
}

.cover-display-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.book-cover-large {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background-color: #FAFAF9;
}

.cover-label {
    font-size: 18px;
    font-weight: 700;
    color: #4B5563;
    margin-bottom: 10px;
    align-self: flex-start;
}

.edit-cover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 60px;
    height: 60px;
    background: rgba(251, 191, 36, 0.9);
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    backdrop-filter: blur(2px);
}

.cover-display-large:hover .edit-cover-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.edit-cover-btn:hover {
    background: rgba(245, 158, 11, 1);
}

.book-details-view {
    padding: 40px 60px;
    background-color: white;
    background-color: #FFFFFF;
    min-height: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.details-grid-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 80px;
    align-items: start;
}

.details-left-col {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.details-right-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-left: 2px;
}

.input-wrapper-gray {
    background-color: #F8F9FA;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 18px 24px;
    transition: all 0.2s ease;
}

.input-wrapper-gray:hover {
    background-color: #F3F4F6;
}

.input-wrapper-gray:focus-within {
    background-color: white;
    border-color: #E5E7EB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.form-input-transparent,
.form-select-transparent {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    outline: none;
    font-family: inherit;
}

.form-textarea-transparent {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #4B5563;
    resize: none;
    outline: none;
    line-height: 1.7;
    font-family: inherit;
}

.dropdown-trigger {
    width: 100%;
    padding: 18px 24px;
    background-color: #F8F9FA;
    border: 1px solid transparent;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #1F2937;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 15px;
}

.dropdown-trigger:hover {
    background-color: #F3F4F6;
}

.visual-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    display: block;
    margin-bottom: 12px;
}

.visual-frame-container {
    position: relative;
    background: white;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.visual-frame-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12);
}

.visual-inner-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: #D1D5DB;
    color: #6B7280;
    font-weight: 700;
    font-size: 24px;
    justify-content: center;
    align-items: center;
}

.visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-btn-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #F59E0B;
    transition: all 0.2s;
    opacity: 0;
    transform: scale(0.9);
}

.visual-frame-container:hover .edit-btn-floating {
    opacity: 1;
    transform: scale(1);
}

.edit-btn-floating:hover {
    transform: scale(1.1);
    color: #D97706;
}

.back-btn-pill {
    background: transparent;
    border: none;
    box-shadow: none;
    font-weight: 700;
    color: #374151;
    padding: 0;
}

.back-btn-pill:hover {
    background: transparent;
    box-shadow: none;
    color: #111827;
    transform: translateX(-5px);
}

.book-details-view {
    padding: 40px 60px;
    background-color: #FEFEFE;
    min-height: 100vh;
    animation: fadeIn 0.3s ease-in-out;
}

.details-grid-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
    margin-top: 20px;
}

.details-left-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.details-right-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.field-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #4B5563;
    margin-bottom: 12px;
}

.input-block-minimal {
    width: 100%;
    background-color: #F3F4F6;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.input-block-minimal:focus-within {
    background-color: #fff;
    border-color: #E5E7EB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.minimal-input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    font-family: inherit;
    outline: none;
}

.minimal-textarea {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 15px;
    line-height: 1.6;
    color: #4B5563;
    font-family: inherit;
    outline: none;
    resize: none;
    min-height: 120px;
}

.chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subject-chip-blue {
    background-color: #3f5896;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.subject-chip-blue:hover {
    background-color: #324a85;
}

.visual-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: white;
}

.visual-image {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

.edit-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(250, 204, 21, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.2s;
}

.visual-container:hover .edit-overlay-btn {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.header-minimal {
    margin-bottom: 20px;
}

.back-link-minimal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}

.back-link-minimal:hover {
    color: #111827;
}

.minimal-dropdown-container {
    position: relative;
    width: 100%;
}

.minimal-dropdown-trigger {
    width: 100%;
    background-color: #F3F4F6;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.minimal-dropdown-trigger:hover {
    background-color: #E5E7EB;
}

.minimal-dropdown-trigger.active {
    background-color: white;
    border-color: #E5E7EB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.trigger-text {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.trigger-icon {
    color: #6B7280;
    transition: transform 0.2s;
}

.minimal-dropdown-trigger.active .trigger-icon {
    transform: rotate(180deg);
}

.minimal-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #E5E7EB;
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: none;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

.minimal-dropdown-menu.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-search-box {
    padding: 12px;
    border-bottom: 1px solid #F3F4F6;
    background-color: #FAFAFA;
}

.dropdown-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.dropdown-search-input:focus {
    border-color: #3B82F6;
}

.dropdown-options-list {
    max-height: 240px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 12px 20px;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.1s;
}

.dropdown-item:hover {
    background-color: #EFF6FF;
    color: #1D4ED8;
}

.dropdown-item.selected {
    background-color: #EEF2FF;
    color: #4F46E5;
    font-weight: 600;
}

.book-details-view {
    padding: 20px 40px;
    background-color: #FEFEFE;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.header-minimal {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.details-grid-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 40px;
    align-items: start;
    margin-top: 0;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 20px;
}

.details-left-col {
    gap: 20px;
}

.details-right-col {
    gap: 20px;
}

.field-label {
    margin-bottom: 8px;
    font-size: 14px;
}

.input-block-minimal,
.minimal-dropdown-trigger {
    padding: 12px 16px;
    font-size: 15px;
}

.minimal-input {
    font-size: 15px;
}

.minimal-textarea {
    min-height: 80px;
    font-size: 14px;
}

.visual-container {
    border-radius: 8px;
}

.form-row-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.details-left-col {
    gap: 40px !important;
    justify-content: flex-start;
    padding-top: 20px;
}

.input-block-minimal,
.minimal-dropdown-trigger {
    padding: 18px 24px !important;
    border-radius: 12px;
}

.field-label {
    margin-bottom: 12px !important;
    font-size: 15px !important;
    color: #4B5563;
}

.form-row-compact {
    gap: 30px !important;
    align-items: end;
}

.details-right-col {
    gap: 40px !important;
    padding-top: 20px;
}

.details-grid-layout {
    overflow-y: auto;
    padding-bottom: 40px;
}

.back-btn-pill-white {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: white;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 5px 20px -5px rgba(0, 0, 0, 0.1);
    color: #1F2937;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    user-select: none;
}

.back-btn-pill-white:hover {
    transform: translateX(-3px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.12);
    color: #111827;
}

.back-btn-pill-white svg {
    color: #4B5563;
    transition: transform 0.2s;
}

.back-btn-pill-white:hover svg {
    transform: translateX(-2px);
    color: #1F2937;
}

.dropdown-search-input:focus {
    border-color: #F4C560 !important;
    box-shadow: 0 0 0 3px rgba(244, 197, 96, 0.2);
}

.dropdown-item:hover {
    background-color: #FFF9EB !important;
    color: #B45309 !important;
}

.dropdown-item.selected {
    background-color: #FCE7B8 !important;
    color: #78350F !important;
    font-weight: 600;
}

.minimal-dropdown-trigger.active {
    border-color: #F4C560 !important;
}

.dropdown-options-list::-webkit-scrollbar-thumb {
    background-color: #F4C560;
    border-radius: 4px;
}

.details-right-col>div {
    margin-bottom: 30px;
}

.details-right-col>div:last-child {
    margin-bottom: 0;
}

.details-right-col .field-label {
    margin-bottom: 12px;
}

.header-minimal .back-btn {
    width: fit-content;
    padding: 10px 20px;
    font-size: 14px;
}

.details-right-col>div {
    margin-bottom: 40px !important;
}

.visual-container {
    margin-bottom: 20px;
}

.main-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.content-container {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}

.books-table-container {
    margin-bottom: 0 !important;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background-color: white;
    border-top: 1px solid #F3F4F6;
    flex-shrink: 0;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #E5E7EB;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

.page-btn:hover:not(:disabled) {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn svg {
    width: 18px;
    height: 18px;
}

.pagination-numbers {
    display: flex;
    gap: 6px;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.page-number:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.page-number.active {
    background-color: var(--primary-yellow, #F4C560);
    border-color: var(--primary-yellow, #F4C560);
    color: white;
    font-weight: 600;
}

.page-number.active:hover {
    background-color: var(--primary-yellow-hover, #e0b050);
    border-color: var(--primary-yellow-hover, #e0b050);
}

.table-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
    transition: background 0.2s;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.table-scroll-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB transparent;
}

.book-details-view {
    display: none;
    flex-direction: column;
    width: 100%;
}

.filter-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.filter-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 300px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    padding: 20px;
}

.filter-dropdown-panel.show {
    display: block;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #94A3B8;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #CBD5E1;
    border-radius: 4px;
    cursor: pointer;
}

.filter-option span {
    font-size: 14px;
    color: #475569;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
}

.filter-clear-btn {
    flex: 1;
    padding: 10px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #64748B;
    font-weight: 700;
    cursor: pointer;
}

.filter-apply-btn {
    flex: 1;
    padding: 10px;
    background: #E4C05A;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
}

.filter-apply-btn:hover {
    background: #D4AF37;
}

.filters-group-inline {
    display: flex;
    gap: 12px;
    align-items: center;
}

.simple-dropdown-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.simple-panel {
    width: 220px;
    padding: 16px;
    border-radius: 12px;
    margin-top: 6px;
}

.simple-panel .filter-options {
    gap: 10px;
}

.simple-panel .filter-option span {
    font-size: 14px;
    color: #334155;
}

.small-apply {
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    font-size: 14px;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    accent-color: #E4C05A;
    accent-color: #E4C05A;
}

.filter-dropdown-search {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.filter-dropdown-search:focus {
    border-color: #E4C05A;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.filter-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 100;
    margin-top: 8px;
    display: none;
    overflow: hidden;
}

.filter-panel.show {
    display: block;
}

.filter-accordion-item {
    border-bottom: 1px solid #F1F5F9;
}

.filter-accordion-item:last-child {
    border-bottom: none;
}

.filter-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    background: #FFFFFF;
    transition: background-color 0.2s;
}

.filter-accordion-header:hover {
    background: #F8FAFC;
}

.accordion-title {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #F8FAFC;
}

.filter-chips-container {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: #CBD5E1;
    background: #F1F5F9;
}

.filter-chip.selected {
    background: #E4C05A;
    color: #FFFFFF;
    border-color: #E4C05A;
    font-weight: 500;
}

@media (max-width: 768px) {
    .control-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        height: auto;
    }

    .search-filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .search-container {
        max-width: 100%;
        width: 100%;
        display: flex !important;
    }

    .filters-group-inline {
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .filter-dropdown-wrapper {
        flex: 1;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .action-group {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .bulk-delete-btn,
    .add-book-btn {
        justify-content: center;
    }

    .books-table-container {
        margin-top: 20px;
        border-radius: 12px;
        border: 1px solid #eee;
        overflow: hidden;
    }

    .table-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .books-table {
        min-width: 800px;
    }

    .filter-dropdown-panel {
        width: 100%;
        min-width: 250px;
        max-width: 90vw;
    }

    .dashboard-header {
        padding: 20px;
        flex-direction: row;
        align-items: center;
    }

    .header-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 15px;
    }

    .filter-dropdown-panel {
        left: 0;
        right: 0;
        width: auto;
    }
}

.icon-24 {
    font-size: 24px;
}

.d-none {
    display: none !important;
}

.preview-img-hidden {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.video-thumb-small {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
}

.file-input-hidden {
    display: none;
}

/* .modal-z-index {
    z-index: 200;
} */

/*REAL CSS starts here*/

#div-error {
    display: none;
}