﻿/**
 * Publication detail page styles (Publications/Details, PublicationDetails/Details).
 * Extracted from inline @section Styles — Phase 4.
 */

.publication-cover-section {
        position: relative;
        z-index: 10;
    }
    
    /* Sticky sidebar only when two-column layout (md and up); prevents cover from overlaying content when stacked */
    @media (min-width: 768px) {
        .col-lg-4.col-md-5 {
            position: sticky;
            top: 20px;
            z-index: 100;
            height: fit-content;
        }
        
        .col-lg-8.col-md-7 {
            position: relative;
            z-index: 0;
        }
    }
    
    @media (max-width: 767px) {
        .col-lg-4.col-md-5 {
            position: static;
            z-index: auto;
        }
    }
    
    .cover-image-container {
        position: relative;
        text-align: center;
    }
    
    .publication-cover-image {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 3/4;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .publication-cover-image:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    }
    
    .status-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.8em;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .draft-badge {
        background: linear-gradient(135deg, #ffc107, #ffb300);
        color: #000;
    }
    
    .published-badge {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: #fff;
    }
    
    .publication-stats {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 24px 20px;
    }
    
    .publication-stats .stat-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 16px;
        font-size: 0.95em;
        color: #212529;
    }
    
    .publication-stats .stat-item:last-child {
        margin-bottom: 0;
    }
    
    .publication-stats .stat-item span {
        color: #212529;
        font-weight: 500;
    }
    
    .publication-stats .stat-item i {
        flex-shrink: 0;
        width: 1.125rem;
        text-align: center;
        font-size: 1.05em;
    }
    
    .author-actions {
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        padding: 20px;
    }
    
    .publication-title {
        color: #2c3e50;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .publication-author {
        color: #6c757d;
        font-size: 1.1em;
    }
    
    .publication-author a {
        color: #007bff;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease, text-decoration 0.3s ease;
    }
    
    .publication-author a:hover {
        color: #0056b3;
        text-decoration: underline;
    }
    
    /* Complete Book Information Section Styles */
    /* Light Mode Styles - Only apply when NOT in dark mode */
    @media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
        .complete-book-info-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            background-image: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            background-color: #f8f9fa;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }
    }
    
    /* Dark Mode Override - Maximum specificity */
    @media (prefers-color-scheme: dark) {
        div.publication-main-content div.complete-book-info-section.mb-4,
        div.publication-main-content div.complete-book-info-section,
        .publication-main-content .complete-book-info-section.mb-4,
        .publication-main-content .complete-book-info-section,
        div.complete-book-info-section.mb-4,
        div.complete-book-info-section,
        .complete-book-info-section.mb-4,
        .complete-book-info-section {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-color: #1e293b !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        }
        
        .complete-book-info-section h3,
        .complete-book-info-section h4,
        .complete-book-info-section h5,
        .complete-book-info-section h6,
        .complete-book-info-section p,
        .complete-book-info-section strong,
        .complete-book-info-section span,
        .complete-book-info-section label {
            color: #f1f5f9 !important;
        }
        
        .complete-book-info-section .section-header {
            background-color: transparent !important;
        }
        
        .complete-book-info-section .section-title {
            color: #f1f5f9 !important;
            background-color: rgba(30, 41, 59, 0.8) !important;
        }
        
        .complete-book-info-section .info-card {
            background-color: #0f172a !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
        }
        
        .complete-book-info-section .info-card:hover {
            background-color: #1e293b !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
        }
        
        .complete-book-info-section .info-content label {
            color: #94a3b8 !important;
        }
        
        .complete-book-info-section .info-content span,
        .complete-book-info-section .info-content strong,
        .complete-book-info-section .info-content a {
            color: #f1f5f9 !important;
        }
    }
    
    .section-header {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .section-title {
        color: #2c3e50;
        font-weight: 700;
        font-size: 1.5rem;
        margin: 0;
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.9);
        padding: 12px 24px;
        border-radius: 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .book-info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .info-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .info-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
    
    .info-card.full-width {
        grid-column: 1 / -1;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .info-content {
        flex: 1;
    }
    
    .info-content label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }
    
    .info-content span,
    .info-content a {
        display: block;
        font-size: 1rem;
        font-weight: 500;
        color: #2c3e50;
        line-height: 1.4;
    }
    
    .info-content a {
        color: #007bff;
        text-decoration: none;
    }
    
    .info-content a:hover {
        color: #0056b3;
        text-decoration: underline;
    }
    
    .publication-details {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 24px;
    }
    
    .publication-details strong {
        color: #495057;
        margin-right: 8px;
    }
    
    .description-content {
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 20px;
        line-height: 1.7;
        font-size: 1.05em;
    }
    
    .content-preview {
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 24px;
        line-height: 1.8;
        font-size: 1.05em;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .reader-actions {
        text-align: right;
    }
    
    /* Enhanced Rating Statistics Styles */
    .rating-statistics-section {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 10px;
        padding: 15px;
        margin-top: 15px;
    }
    
    .rating-type-display {
        background: rgba(255, 255, 255, 0.8);
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .rating-type-label {
        font-size: 0.9em;
        font-weight: 500;
    }
    
    .rating-value .rating-number {
        font-weight: 600;
        color: #495057;
        margin-right: 5px;
    }
    
    .rating-count {
        font-size: 0.85em;
    }
    
    .rating-stars-small {
        margin-top: 5px;
    }
    
    .rating-stars-small i {
        font-size: 0.8em;
        margin-right: 2px;
    }
    
    .overall-rating-display {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        padding: 10px;
    }
    
    .overall-rating-display .rating-number {
        font-size: 1.1em;
        color: #212529;
    }
    
    .no-ratings-display {
        text-align: center;
        padding: 15px;
        font-style: italic;
    }
    
    /* Reviews of My Books Section Styles */
    /* Light Mode Styles - Only apply when NOT in dark mode */
    @media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
        .reviews-of-my-books-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            background-image: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            background-color: #f8f9fa;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(0, 123, 255, 0.1);
        }
    }
    
    /* Dark Mode Override - Maximum specificity */
    @media (prefers-color-scheme: dark) {
        div.publication-main-content div.reviews-of-my-books-section.mb-4,
        div.publication-main-content div.reviews-of-my-books-section,
        .publication-main-content .reviews-of-my-books-section.mb-4,
        .publication-main-content .reviews-of-my-books-section,
        div.reviews-of-my-books-section.mb-4,
        div.reviews-of-my-books-section,
        .reviews-of-my-books-section.mb-4,
        .reviews-of-my-books-section {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-color: #1e293b !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        }
        
        .reviews-of-my-books-section h3,
        .reviews-of-my-books-section h4,
        .reviews-of-my-books-section h5,
        .reviews-of-my-books-section h6,
        .reviews-of-my-books-section p {
            color: #f1f5f9 !important;
        }
        
        .reviews-of-my-books-section .section-header {
            background-color: transparent !important;
        }
        
        .reviews-of-my-books-section .section-title {
            color: #f1f5f9 !important;
        }
        
        .reviews-of-my-books-section .section-action .btn,
        .reviews-of-my-books-section .section-actions .btn {
            border-color: rgba(255, 255, 255, 0.2) !important;
            color: #f1f5f9 !important;
            background-color: transparent !important;
        }
        
        .reviews-of-my-books-section .section-action .btn:hover,
        .reviews-of-my-books-section .section-actions .btn:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
        }
        
        .reviews-of-my-books-section .recent-reviews-list {
            background-color: transparent !important;
        }
        
        .reviews-of-my-books-section .review-summary-card,
        .reviews-of-my-books-section .simple-review-card {
            background-color: #0f172a !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
        }
        
        .reviews-of-my-books-section .review-summary-card:hover,
        .reviews-of-my-books-section .simple-review-card:hover {
            background-color: #1e293b !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
        }
        
        .reviews-of-my-books-section .review-title,
        .reviews-of-my-books-section .reviewer-name {
            color: #f1f5f9 !important;
        }
        
        .reviews-of-my-books-section .review-text,
        .reviews-of-my-books-section .review-date {
            color: #cbd5e1 !important;
        }
    }
    
    .reviews-of-my-books-section .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .reviews-of-my-books-section .section-title {
        color: #2c3e50;
        font-weight: 600;
        font-size: 1.4rem;
        margin: 0;
        display: flex;
        align-items: center;
        flex: 1;
    }
    
    .review-count-badge {
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-left: 10px;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }
    
    .section-actions {
        margin-left: auto;
    }
    
    /* .recent-reviews-list uses Bootstrap .row + .col-* for 3-column grid on lg */
    
    .review-summary-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .review-summary-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }
    
    .review-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .reviewer-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .reviewer-avatar {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #e9ecef;
    }
    
    .reviewer-details {
        display: flex;
        flex-direction: column;
    }
    
    .reviewer-name {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #2c3e50;
    }
    
    .review-date {
        font-size: 0.85rem;
    }
    
    .review-rating .rating-display {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .rating-stars {
        font-size: 1.1rem;
    }
    
    .rating-number {
        font-weight: 600;
        color: #495057;
        font-size: 0.9rem;
    }
    
    .review-content {
        margin-bottom: 15px;
    }
    
    .review-title {
        color: #2c3e50;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 1.05rem;
    }
    
    .review-text {
        color: #6c757d;
        line-height: 1.6;
        margin: 0;
        font-size: 0.95rem;
    }
    
    .review-actions {
        text-align: right;
    }
    
    .review-actions .btn-link {
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
    }
    
    .review-actions .btn-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }
    
    .no-reviews-message {
        border-radius: 12px;
        border: 2px dashed #dee2e6;
    }
    
    @media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
        .no-reviews-message {
            background: rgba(255, 255, 255, 0.8);
        }
        .no-reviews-message .text-muted,
        .no-reviews-message h6,
        .no-reviews-message p {
            color: #6c757d !important;
        }
        .no-reviews-message .fa {
            color: #6c757d !important;
        }
    }
    
    /* Publication Dates Section */
    .publication-dates-section {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 24px;
        margin-top: 30px;
    }
    
    .dates-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .date-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }
    
    .date-label {
        font-weight: 600;
        color: #495057;
        min-width: 120px;
    }
    
    .date-value {
        color: #6c757d;
        font-weight: 500;
    }
    
    /* Star Rating Styles */
    .star-rating .star {
        font-size: 2rem;
        color: #ccc;
        cursor: pointer;
        transition: color 0.2s;
    }
    
    .star-rating .star.selected {
        color: #ffc107;
    }
    
    .star-rating .star:hover {
        color: #ff9800;
    }
    
    /* User Rating Widget */
    .user-rating-widget {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        border: 1px solid #e9ecef;
    }
    
    .user-rating-widget .form-label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 12px;
    }
    
    /* User Rating Widget & Star Rating - Dark mode (system preference) */
    @media (prefers-color-scheme: dark) {
        .user-rating-widget {
            background: #1e293b !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
        }
        .user-rating-widget .form-label {
            color: #e2e8f0 !important;
        }
        .star-rating .star {
            color: #64748b;
        }
        .star-rating .star.selected {
            color: #ffc107;
        }
        .star-rating .star:hover {
            color: #ff9800;
        }
    }
    
    /* Sellers Section Styles */
    .sellers-section {
        /* Light Mode Styles (Default) */
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 16px;
        padding: 25px;
        margin-top: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 123, 255, 0.1);
        position: relative;
        z-index: 200;
        overflow: visible;
        isolation: isolate;
    }
    
    /* Dark Mode Override */
    @media (prefers-color-scheme: dark) {
        .sellers-section {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        }
        
        .sellers-section .section-title {
            color: #f1f5f9 !important;
        }
        
        .sellers-section .seller-card {
            background-color: #0f172a !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
        }
        
        .sellers-section .seller-card:hover {
            background-color: #1e293b !important;
        }
        
        .sellers-section .seller-name,
        .sellers-section h5,
        .sellers-section h6 {
            color: #f1f5f9 !important;
        }
        
        .sellers-section .seller-description,
        .sellers-section .text-muted,
        .sellers-section p {
            color: #cbd5e1 !important;
        }
    }
    
    .sellers-section .section-header {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .sellers-section .section-title {
        color: #2c3e50;
        font-weight: 600;
        font-size: 1.3rem;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .sellers-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .seller-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
        z-index: 201;
    }
    
    .seller-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }
    
    .seller-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
    }
    
    .seller-info {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }
    
    .seller-avatar {
        position: relative;
        flex-shrink: 0;
    }
    
    .seller-image {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #dee2e6;
        background-color: #f8f9fa;
        display: block;
        flex-shrink: 0;
    }
    
    .verified-badge {
        position: absolute;
        bottom: -2px;
        right: -2px;
        background: #28a745;
        color: white;
        border-radius: 50%;
        width: 14px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        border: 1.5px solid white;
    }
    
    .seller-details {
        flex: 1;
    }
    
    .seller-name {
        margin: 0 0 4px 0;
        font-size: 1rem;
        font-weight: 600;
        color: #2c3e50;
    }
    
    .seller-type {
        font-size: 0.8rem;
        color: #6c757d;
        background: #e9ecef;
        padding: 2px 8px;
        border-radius: 12px;
        font-weight: 500;
    }
    
    .seller-description {
        margin: 8px 0 0 0;
        font-size: 0.85rem;
        color: #6c757d;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .seller-rating {
        text-align: right;
        flex-shrink: 0;
    }
    
    .rating-display {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    
    .rating-stars {
        color: #ffc107;
        font-size: 0.9rem;
    }
    
    .rating-stars .fas.fa-star.filled {
        color: #ffc107;
    }
    
    .rating-stars .fas.fa-star:not(.filled) {
        color: #e9ecef;
    }
    
    .rating-text {
        font-size: 0.8rem;
        color: #6c757d;
    }
    
    .no-rating {
        font-size: 0.8rem;
        color: #6c757d;
        font-style: italic;
    }
    
    .seller-offer {
        margin-bottom: 15px;
    }
    
    .price-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .price {
        font-size: 1.1rem;
        font-weight: 600;
        color: #28a745;
    }
    
    .stock-status {
        font-size: 0.8rem;
        padding: 4px 8px;
        border-radius: 12px;
        font-weight: 500;
    }
    
    .stock-status.in-stock {
        background: #d4edda;
        color: #155724;
    }
    
    .stock-status.out-of-stock {
        background: #f8d7da;
        color: #721c24;
    }
    
    .delivery-info {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        color: #6c757d;
    }
    
    .delivery-info i {
        color: #007bff;
    }
    
    .seller-actions {
        display: flex;
        gap: 8px;
    }
    
    .seller-actions .btn {
        flex: 1;
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    /* No Sellers Section Styles */
    /* Light Mode Styles - Only apply when NOT in dark mode */
    @media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
        .no-sellers-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            background-image: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            background-color: #f8f9fa;
            border-radius: 16px;
            padding: 30px;
            margin-top: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 2px dashed #dee2e6;
            text-align: center;
        }
    }
    
    /* Dark Mode Override - Maximum specificity */
    @media (prefers-color-scheme: dark) {
        div#sellers-container div.no-sellers-section.mt-4,
        div#sellers-container div.no-sellers-section,
        #sellers-container .no-sellers-section.mt-4,
        #sellers-container .no-sellers-section,
        div.no-sellers-section.mt-4,
        div.no-sellers-section,
        .no-sellers-section.mt-4,
        .no-sellers-section {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-color: #1e293b !important;
            border: 2px dashed rgba(255, 255, 255, 0.2) !important;
            color: #cbd5e1 !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        }
        
        .no-sellers-section .no-sellers-content {
            background-color: transparent !important;
            color: #cbd5e1 !important;
        }
        
        .no-sellers-section h4,
        .no-sellers-content h4 {
            color: #f1f5f9 !important;
        }
        
        .no-sellers-section p,
        .no-sellers-section .text-muted,
        .no-sellers-content p,
        .no-sellers-content .text-muted {
            color: #cbd5e1 !important;
        }
        
        .no-sellers-section i,
        .no-sellers-content i {
            color: #94a3b8 !important;
        }
    }
    
    .no-sellers-content {
        color: #6c757d;
    }
    
    .no-sellers-content i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #adb5bd;
    }
    
    .no-sellers-content h4 {
        margin-bottom: 10px;
        color: #495057;
    }
    
    .no-sellers-content p {
        margin: 0;
        font-size: 0.95rem;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .publication-cover-section {
            position: static;
            margin-bottom: 30px;
        }
        
        .publication-cover-image {
            max-width: 250px;
        }
        
        .reader-actions {
            text-align: left;
            margin-top: 20px;
        }
        
        .book-info-grid {
            grid-template-columns: 1fr;
        }
        
        .complete-book-info-section {
            padding: 20px;
        }
        
        .section-title {
            font-size: 1.3rem;
            padding: 10px 20px;
        }
        
        .reviews-of-my-books-section {
            padding: 20px;
        }
        
        .sellers-section {
            padding: 20px;
            position: relative;
            z-index: 200;
        }
        
        .seller-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
        
        .seller-rating {
            text-align: left;
        }
        
        .seller-actions {
            flex-direction: column;
        }
        
        .seller-actions .btn {
            width: 100%;
        }
    }

    /* ============================================
       DARK MODE SUPPORT - System & Manual Toggle
       ============================================ */
    
    /* System Preference Dark Mode */
    @media (prefers-color-scheme: dark) {
        /* Publication-specific sections */
        .complete-book-info-section,
        .complete-book-info-section.mb-4,
        div.complete-book-info-section {
            background-color: #1e293b !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        }
        
        .complete-book-info-section h6,
        .complete-book-info-section p,
        .complete-book-info-section strong {
            color: #f1f5f9 !important;
        }
        
        .complete-book-info-section .section-header {
            background-color: transparent !important;
        }
        
        .complete-book-info-section .section-title {
            color: #f1f5f9 !important;
        }
        
        .complete-book-info-section .section-title i,
        .complete-book-info-section .section-title .fas {
            color: #f1f5f9 !important;
        }
        
        .complete-book-info-section .info-card {
            background-color: #0f172a !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
        }
        
        .complete-book-info-section .info-card strong,
        .complete-book-info-section .info-card span,
        .complete-book-info-section .info-card p {
            color: #f1f5f9 !important;
        }
        
        .reviews-of-my-books-section,
        .reviews-of-my-books-section.mb-4,
        div.reviews-of-my-books-section {
            background-color: #1e293b !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        }
        
        .reviews-of-my-books-section h6,
        .reviews-of-my-books-section p,
        .reviews-of-my-books-section a {
            color: #f1f5f9 !important;
        }
        
        .reviews-of-my-books-section .section-header {
            background-color: transparent !important;
        }
        
        .reviews-of-my-books-section .section-title {
            color: #f1f5f9 !important;
        }
        
        .reviews-of-my-books-section h4 {
            color: #f1f5f9 !important;
        }
        
        .reviews-of-my-books-section .recent-reviews-list {
            background-color: transparent !important;
        }
        
        .reviews-of-my-books-section .simple-review-card {
            background-color: #0f172a !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
        }
        
        .reviews-of-my-books-section .simple-review-card h5,
        .reviews-of-my-books-section .simple-review-card h6,
        .reviews-of-my-books-section .simple-review-card p {
            color: #f1f5f9 !important;
        }
        
        .no-sellers-section,
        .no-sellers-section.mt-4,
        div.no-sellers-section {
            background-color: #1e293b !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #cbd5e1 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        }
        
        .no-sellers-section .no-sellers-content {
            background-color: transparent !important;
            color: #cbd5e1 !important;
        }
        
        .no-sellers-section p,
        .no-sellers-section h5 {
            color: #cbd5e1 !important;
        }
        
        .no-reviews-message {
            background-color: #0f172a !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
        }
        .no-reviews-message .text-muted,
        .no-reviews-message h6,
        .no-reviews-message p {
            color: #cbd5e1 !important;
        }
        .no-reviews-message .fa {
            color: #94a3b8 !important;
        }
        
        .publication-stats {
            background-color: #0f172a !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
        }
        
        .publication-stats p,
        .publication-stats div {
            color: #f1f5f9 !important;
        }
        
        .publication-cover-section {
            background-color: #1e293b !important;
        }
        
        .publication-main-content {
            background-color: transparent !important;
        }
        
        /* General card elements */
        .card {
            background-color: #1e293b !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        }
        
        .card-header {
            background-color: #0f172a !important;
            border-bottom-color: rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
        }
        
        .card-body {
            background-color: #1e293b !important;
            color: #f1f5f9 !important;
        }
        
        /* Bootstrap utility class overrides */
        .bg-light {
            background-color: #0f172a !important;
        }
        
        .text-muted {
            color: #cbd5e1 !important;
        }
    }
    
    
    /* Section Headers - General */
    @media (prefers-color-scheme: dark) {
        .section-header,
        div.section-header {
            background-color: transparent !important;
            color: #f1f5f9 !important;
        }
        
        .section-title,
        h3.section-title,
        h4.section-title,
        h5.section-title {
            color: #f1f5f9 !important;
            background-color: rgba(30, 41, 59, 0.8) !important;
        }
        
        .section-action .btn,
        .section-actions .btn {
            border-color: rgba(255, 255, 255, 0.2) !important;
            color: #f1f5f9 !important;
        }
        
        .section-action .btn:hover,
        .section-actions .btn:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
        }
        
        /* No Sellers Section - Nested Elements */
        .no-sellers-section h4,
        .no-sellers-content h4 {
            color: #f1f5f9 !important;
        }
        
        .no-sellers-section .text-muted,
        .no-sellers-content .text-muted,
        .no-sellers-content p {
            color: #cbd5e1 !important;
        }
        
        .no-sellers-content i {
            color: #94a3b8 !important;
        }
        
        /* Review Cards - Additional Elements */
        .recent-reviews-list .col-12,
        .recent-reviews-list > div {
            background-color: transparent !important;
        }
        
        .review-summary-card {
            background-color: #0f172a !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
        }
        
        .review-summary-card h5,
        .review-summary-card h6,
        .review-summary-card p,
        .review-summary-card .review-title {
            color: #f1f5f9 !important;
        }
        
        .review-summary-card .reviewer-name {
            color: #f1f5f9 !important;
        }
        
        .review-summary-card .review-date {
            color: #cbd5e1 !important;
        }
        
        .review-summary-card .review-text {
            color: #cbd5e1 !important;
        }
        
        /* Info Cards - Content Labels and Spans */
        .info-content label {
            color: #94a3b8 !important;
        }
        
        .info-content span,
        .info-content strong {
            color: #f1f5f9 !important;
        }
        
        /* Override general .info-card styles */
        .info-card {
            background: #0f172a !important;
            background-color: #0f172a !important;
            background-image: none !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
        }
        
        .info-card:hover {
            background-color: #1e293b !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
        }
        
        /* Description content */
        .description-content {
            background: #1e293b !important;
            background-color: #1e293b !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
        }
        
        .description-content p {
            color: #f1f5f9 !important;
        }
        
        /* Content preview */
        .content-preview {
            background: #1e293b !important;
            background-color: #1e293b !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
        }
        
        /* ========================================
           FINAL OVERRIDES FOR MAIN SECTIONS
           These MUST be last to ensure precedence
           System-based dark mode ONLY (no html.dark class)
           ======================================== */
        
        /* Complete Book Information Section - FINAL OVERRIDE (Maximum Specificity) */
        div.publication-main-content div.complete-book-info-section.mb-4,
        div.publication-main-content div.complete-book-info-section,
        .publication-main-content .complete-book-info-section.mb-4,
        .publication-main-content .complete-book-info-section,
        div.complete-book-info-section.mb-4,
        div.complete-book-info-section,
        .complete-book-info-section.mb-4,
        .complete-book-info-section {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-color: #1e293b !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        }
        
        /* Reviews Section - FINAL OVERRIDE (Maximum Specificity) */
        div.publication-main-content div.reviews-of-my-books-section.mb-4,
        div.publication-main-content div.reviews-of-my-books-section,
        .publication-main-content .reviews-of-my-books-section.mb-4,
        .publication-main-content .reviews-of-my-books-section,
        div.reviews-of-my-books-section.mb-4,
        div.reviews-of-my-books-section,
        .reviews-of-my-books-section.mb-4,
        .reviews-of-my-books-section {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-color: #1e293b !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #f1f5f9 !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        }
        
        /* No Sellers Section - FINAL OVERRIDE (Maximum Specificity) */
        div#sellers-container div.no-sellers-section.mt-4,
        div#sellers-container div.no-sellers-section,
        #sellers-container .no-sellers-section.mt-4,
        #sellers-container .no-sellers-section,
        div.no-sellers-section.mt-4,
        div.no-sellers-section,
        .no-sellers-section.mt-4,
        .no-sellers-section {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
            background-color: #1e293b !important;
            border: 2px dashed rgba(255, 255, 255, 0.2) !important;
            color: #cbd5e1 !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        }
    }
