/* ==========================================================================
   Main Stylesheet for Novel Reading Website
   ========================================================================== */

/* Base Styles & Global Components
   ========================================================================== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Base Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    max-width: 1200px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Form Controls */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-submitting {
    opacity: 0.7;
    pointer-events: none;
}

.filter-form {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

/* Buttons */
.btn-primary:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Authentication Pages (Login/Register)
   ========================================================================== */

/* Login Page */
.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-body {
    padding: 2rem;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
}

.btn-login:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.social-login {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.social-login:hover {
    background-color: #f8f9fa;
    border-color: #667eea;
}

/* Register Page */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 5px;
    transition: all 0.3s;
    background-color: #e9ecef;
}

.strength-weak { 
    background: linear-gradient(90deg, #dc3545 0%, #dc3545 100%);
}

.strength-medium { 
    background: linear-gradient(90deg, #ffc107 0%, #ffc107 100%);
}

.strength-strong { 
    background: linear-gradient(90deg, #28a745 0%, #28a745 100%);
}

.requirements {
    font-size: 0.85rem;
}

.requirement-met {
    color: #28a745;
}

.requirement-unmet {
    color: #6c757d;
}

/* Success Modal */
.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 0 auto;
}

.checkmark-circle .background {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    position: absolute;
}

.checkmark-circle .checkmark {
    border-radius: 5px;
}

.checkmark-circle .checkmark.draw:after {
    animation-duration: 800ms;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
}

.checkmark-circle .checkmark:after {
    opacity: 1;
    height: 30px;
    width: 15px;
    transform-origin: left top;
    border-right: 3px solid #fff;
    border-top: 3px solid #fff;
    content: '';
    left: 25px;
    top: 35px;
    position: absolute;
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 15px;
        opacity: 1;
    }
    40% {
        height: 30px;
        width: 15px;
        opacity: 1;
    }
    100% {
        height: 30px;
        width: 15px;
        opacity: 1;
    }
}

.countdown-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

/* ==========================================================================
   Novel Components & Cards
   ========================================================================== */

/* Novel Cards */
.novel-card {
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.novel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.novel-card img {
    transition: transform 0.2s ease;
    width: 100% !important;
    height: 100% !important;
}

.novel-card:hover img {
    transform: scale(1.05);
}

.novel-card .card-title a:hover {
    color: #007bff !important;
}

.novel-card .card-body {
    overflow: hidden;
}

.novel-card .stretched-link:hover {
    text-decoration: none !important;
}

.novel-card img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.card-body.p-2, .card-body.d-flex.flex-column {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background-color: rgba(152, 152, 152, .4);
    padding: 7px 5px 12px 15px;
}

/* Novel Info */
.novel-info .cover-image {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}

.cover-placeholder {
    height: 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-radius: 0.375rem;
}

.stat-box {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.5rem;
}

.stat-number {
    font-weight: bold;
    color: #495057;
}

.stat-item {
    padding: 0.5rem;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
}

.summary-content {
    line-height: 1.6;
    text-align: justify;
}

/* Chapter List */
.chapter-item {
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    transition: all 0.2s;
}

.chapter-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Author Cards */
.author-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.author-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.author-avatar-small {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.author-avatar-small img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.author-bio .bio-content {
    line-height: 1.6;
    text-align: justify;
}

/* Avatar Placeholders */
.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffc1072e 0%, #00b36a4a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.avatar-placeholder-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto;
}

.avatar-placeholder-tiny {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* Category Cards */
.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white !important;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.category-icon i {
    color: white !important;
}

.category-badge {
    transition: all 0.2s;
}

.category-badge:hover {
    transform: scale(1.05);
    text-decoration: none;
}

/* Suggestion Cards */
.suggestion-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
    height: 100%;
}

.suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}

/* ==========================================================================
   Rating & Review System
   ========================================================================== */

/* Quick Rating Display */
.quick-rating-display .rating-stars i {
    font-size: 1rem;
    margin-right: 2px;
}

.rating-summary {
    font-size: 0.9rem;
}

/* Professional Rating Section */
.professional-rating-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.overall-rating .rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
}

.rating-stars .rating-star {
    font-size: 1.2rem;
    margin: 0 2px;
    color: #ddd;
}

.rating-star.filled {
    color: #ffc107;
}

.rating-star.half-filled {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Rating Distribution */
.rating-distribution {
    padding: 0.5rem 0;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.rating-label {
    min-width: 40px;
    font-size: 0.85rem;
    color: #6c757d;
}

.rating-bar {
    flex-grow: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ffb300 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
    animation: fillAnimation 1s ease-out;
}

.rating-count-text {
    min-width: 25px;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
}

/* Star Rating Interactive */
.star-rating .star {
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    margin: 0 1px;
}

.star-rating .star.active,
.star-rating .star:hover {
    color: #ffc107;
    transform: scale(1.1);
}

.star-rating-large .star-large {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 5px;
}

.star-rating-large .star-large.active,
.star-rating-large .star-large:hover {
    color: #ffc107;
    transform: scale(1.1);
}

/* User Actions */
.user-actions {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

/* Review Items */
.review-item-compact {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    transition: all 0.2s;
}

.review-item-compact:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-user-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-user-compact img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.review-user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.review-stars-compact {
    color: #ffc107;
    font-size: 0.8rem;
}

.review-content-compact {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #495057;
}

/* ==========================================================================
   Tab Systems
   ========================================================================== */

.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    background: rgba(0,123,255,0.1);
    color: #007bff;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background: none;
    border-color: transparent transparent #007bff transparent;
    border-bottom-width: 3px;
}

.nav-tabs .nav-link .badge {
    font-size: 0.7rem;
}

.tab-content .card {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

/* ==========================================================================
   Comments & Avatars
   ========================================================================== */

.comment-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}
li.nav-item {
    max-width: 50%;
}
/* ==========================================================================
   Ranking & Tables
   ========================================================================== */

.rank-number {
    font-weight: bold;
}

.table td {
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

.rank-number .badge {
    position: relative;
    animation: pulse 2s infinite;
}

/* Top 3 special styling */
.table tbody tr:nth-child(1) {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,215,0,0.05) 100%);
}

.table tbody tr:nth-child(2) {
    background: linear-gradient(135deg, rgba(192,192,192,0.1) 0%, rgba(192,192,192,0.05) 100%);
}

.table tbody tr:nth-child(3) {
    background: linear-gradient(135deg, rgba(205,127,50,0.1) 0%, rgba(205,127,50,0.05) 100%);
}

/* ==========================================================================
   History & Progress
   ========================================================================== */

.history-item {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 10px;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.progress {
    background-color: #e9ecef;
}

/* ==========================================================================
   Purchase & Transaction Items
   ========================================================================== */

.purchase-item {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 10px;
}

.purchase-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.transaction-row {
    transition: background-color 0.2s;
}

.transaction-row:hover {
    background-color: rgba(0,123,255,0.05);
}

.balance-display {
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(0,123,255,0.05) 100%);
}

.purchasing {
    opacity: 0.7;
    pointer-events: none;
}

.purchase-success {
    animation: pulse 0.5s;
}

/* ==========================================================================
   Payment & Recharge
   ========================================================================== */

.method-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.method-card:hover {
    background-color: #f8f9fa;
    border-color: #007bff !important;
}

.form-check-input:checked + .form-check-label .method-card {
    background-color: #e3f2fd;
    border-color: #007bff !important;
}

.quick-amount {
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
    transition: all 0.2s ease;
}

.quick-amount.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.quick-amount:hover {
    transform: translateY(-1px);
}

.user-select-all {
    user-select: all;
    cursor: pointer;
    padding: 2px 4px;
    background-color: #e9ecef;
    border-radius: 3px;
}

.user-select-all:hover {
    background-color: #dee2e6;
}

#amount {
    font-size: 1.25rem;
    font-weight: bold;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.credit-balance-large {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

/* ==========================================================================
   Reading Container & Chapter Content
   ========================================================================== */

.reading-container {
    max-width: 800px;
    margin: 0 auto;
}

.user-credit-display {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.reading-settings {
    position: fixed;
    top: 140px;
    right: 20px;
    width: 400px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.chapter-text {
    line-height: 1.8;
    text-align: justify;
    font-size: 16px;
    font-family: 'Times New Roman', serif;
    padding: 2rem 0;
}

.chapter-text p {
    margin-bottom: 1.5rem;
    text-indent: 2em;
}

/* Reading Themes */
.theme-light {
    background-color: #ffffff;
    color: #333333;
}

.theme-dark {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.theme-dark .card {
    background-color: #2d2d2d;
    border-color: #404040;
}

.theme-sepia {
    background-color: #f4f3e8;
    color: #5c4e3a;
}

.theme-sepia .card {
    background-color: #f9f8f1;
    border-color: #e6e0d0;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #007bff, #28a745);
    z-index: 9999;
    transition: width 0.1s;
}

/* ==========================================================================
   Search Results
   ========================================================================== */

.search-highlight {
    background-color: #fff3cd;
    padding: 0 2px;
}

.list-group-item {
    transition: all 0.2s ease;
    border-left: none;
    border-right: none;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item.border {
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    word-break: break-word;
}

.card-title a:hover {
    color: #007bff;
}

/* ==========================================================================
   Error 404 Page Styles
   ========================================================================== */

.error-404 {
    min-height: 60vh;
}

.error-number {
    font-size: 8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #007bff, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    line-height: 1;
    margin-bottom: 1rem;
}

.search-404 {
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   Animations & Effects
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillAnimation {
    from { width: 0%; }
}

@keyframes fillBar {
    from {
        width: 0%;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

.bounce-animation {
    animation: bounce 2s ease-in-out infinite;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.x-small {
    font-size: 0.75rem;
}

.text-monospace {
    font-family: 'Courier New', monospace;
}

.h4 {
    font-weight: 600;
    color: #343a40;
}

.badge {
    font-size: 0.7rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 336px) {
    .col-sm-6, .col-xl-3 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 337px) and (max-width: 575px) {
    .col-sm-6, .col-xl-3 {
        flex: 0 0 auto;
        width: 50%!important;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    /* Novel cards responsive */
    .col-xl-2, .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .novel-item {
        margin-bottom: 1rem;
    }
    
    .novel-card {
        margin-bottom: 1rem;
    }
    
    .novel-card .card-body {
        padding: 0.75rem;
    }
    
    .novel-card img,
    .novel-card .card-img-top {
        height: 180px;
    }
    
    .novel-card .card-title {
        font-size: 0.9rem;
    }
    
    .novel-card .card-text {
        font-size: 0.75rem;
    }
    
    /* Professional rating responsive */
    .professional-rating-section {
        padding: 1rem;
    }
    
    .overall-rating .rating-number {
        font-size: 2.5rem;
    }
    
    .rating-bar-item {
        font-size: 0.8rem;
    }
    
    /* Buttons responsive */
    .d-flex.flex-wrap.gap-2 .btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        margin-bottom: 0.5rem;
    }
    
    /* Chapter responsive */
    .chapter-meta {
        display: none;
    }
    
    /* Sticky elements responsive */
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }
    
    .user-actions .d-grid {
        gap: 0.5rem;
    }
    
    /* Tab responsive */
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding-top: 1rem;
    }
    
    /* History and purchase responsive */
    .history-item .col-md-3,
    .purchase-item .col-md-4 {
        margin-top: 1rem;
    }
    
    /* Table responsive */
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
    }
    
    /* Card responsive */
    .card-body {
        padding: 1.5rem !important;
    }
    
    .card-header {
        padding: 1.5rem !important;
    }
    
    /* Checkmark responsive */
    .checkmark-circle {
        width: 60px;
        height: 60px;
    }
    
    .checkmark-circle .background {
        width: 60px;
        height: 60px;
    }
    
    .checkmark-circle .checkmark:after {
        height: 20px;
        width: 10px;
        left: 20px;
        top: 25px;
    }

    /* Author cards responsive */
    .author-card {
        margin-bottom: 1rem;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Category cards responsive */
    .category-card {
        margin-bottom: 1rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 2rem;
    }

    /* Error page responsive */
    .error-number {
        font-size: 5rem;
    }

    /* Author bio responsive */
    .author-bio .bio-content {
        font-size: 0.9rem;
    }

    /* List group responsive */
    .list-group-item .row .col-md-6 {
        margin-bottom: 0.5rem;
    }
    
    .text-md-end {
        text-align: left !important;
    }

    /* Reading container responsive */
    .user-credit-display {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        margin-bottom: 1rem;
    }
    
    .reading-settings {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        margin-bottom: 1rem;
    }
    
    .chapter-text {
        font-size: 14px;
        padding: 1rem 0;
    }
    
    .reading-container {
        padding: 0 15px;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .bg-light {
        background-color: #2d3748 !important;
        color: #e2e8f0;
    }
    
    .text-muted {
        color: #a0aec0 !important;
    }
    
    .border {
        border-color: #4a5568 !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .novel-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .user-credit-display,
    .reading-settings,
    .scroll-progress {
        display: none;
    }
}