/* style.css */
/* style.css */
body { 
    background-color: #f8f9fa; 
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.card { 
    border: none; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
    border-radius: 10px;
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.navbar-brand { font-weight: bold; color: #4e73df !important; }
.login-container { max-width: 400px; margin: 50px auto; padding: 30px; background: white; border-radius: 10px; box-shadow: 0 0 20px rgba(0,0,0,0.05); }
.book-cover-placeholder { height: 150px; background: #e9ecef; display: flex; align-items: center; justify-content: center; color: #adb5bd; font-size: 3rem; }
.badge-cat { font-size: 0.8rem; padding: 5px 10px; }

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.hero-section h1 { font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
/* .category-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 25px; } */
.category-pill {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-block;
}
.category-pill:hover { background: white; color: #4e73df; transform: translateY(-2px); }

/* Reader Loader */
.loader {
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px; height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Swiper Styles */
.swiper-slide { width: auto; }

/* Dark Mode */
body.dark-mode { background-color: #121212 !important; color: #e0e0e0; }
.dark-mode .bg-white { background-color: #1e1e1e !important; }
.dark-mode .bg-light { background-color: #121212 !important; }
.dark-mode .card { background-color: #1e1e1e; color: #e0e0e0; border-color: #333; }
.dark-mode .navbar-light .navbar-brand, 
.dark-mode .navbar-light .nav-link,
.dark-mode .navbar-light .navbar-text { color: #e0e0e0 !important; }
.dark-mode .navbar-light .navbar-toggler { border-color: rgba(255,255,255,0.5); }
.dark-mode .navbar-light .navbar-toggler-icon { filter: invert(1); }
.dark-mode .list-group-item { background-color: #1e1e1e; color: #e0e0e0; border-color: #333; }
.dark-mode .form-control, 
.dark-mode .form-select { background-color: #2c2c2c; color: #e0e0e0; border-color: #444; }
.dark-mode .modal-content { background-color: #1e1e1e; color: #e0e0e0; }
.dark-mode .table { color: #e0e0e0; }
.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > * { color: #e0e0e0; box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.05); }
.dark-mode .book-cover-placeholder { background-color: #2c2c2c; color: #666; }
.dark-mode .sidebar { background-color: #1e1e1e !important; }
.dark-mode .sidebar .submenu { background-color: #121212 !important; }
.dark-mode .hero-section { background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%); }

/* PDF Text Layer */
.textLayer {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 1;
    line-height: 1.0;
}
.textLayer > span {
    color: transparent;
    position: absolute;
    white-space: pre;
    cursor: text;
    transform-origin: 0% 0%;
}

/* Print Styles */
@media print {
    .toolbar, .modal-overlay, .nav-controls, button, a { display: none !important; }
    #viewer-container { height: auto !important; overflow: visible !important; }
    body { background: white !important; color: black !important; }
}

/* Footer Links */
footer a:hover { color: #4e73df !important; transition: color 0.3s; }
