/* RxDx Pathology Articles Styles */
/* Based on procedure styles with pathology-specific adaptations */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

/* Base styles and mobile optimization */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content Grid - Single column on mobile */
.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    /* Single column layout on mobile */
    .content-grid {
        display: block;
    }
    
    .toc-sidebar {
        display: none;
    }
    
    /* Mobile TOC button */
    .mobile-toc-button {
        display: block;
        position: fixed;
        bottom: 80px;
        right: 20px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
        z-index: 998;
        transition: all 0.3s ease;
    }
    
    .mobile-toc-button:hover {
        background: #0056b3;
        transform: scale(1.1);
    }
    
    /* Mobile TOC overlay */
    .mobile-toc-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .mobile-toc-overlay.active {
        display: block;
    }
    
    /* Mobile TOC panel */
    .mobile-toc-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 16px 16px 0 0;
        padding: 20px;
        max-height: 70vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-toc-panel.active {
        transform: translateY(0);
    }
    
    .mobile-toc-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #e9ecef;
    }
    
    .mobile-toc-title {
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
    }
    
    .mobile-toc-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #6c757d;
        cursor: pointer;
        padding: 4px;
    }
    
    .mobile-toc-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-toc-list li {
        margin-bottom: 8px;
    }
    
    .mobile-toc-link {
        display: block;
        padding: 12px 16px;
        color: #495057;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-size: 16px;
        border: 1px solid transparent;
    }
    
    .mobile-toc-link:hover,
    .mobile-toc-link.active {
        background: #f8f9fa;
        color: #007bff;
        border-color: #007bff;
    }
    
    .article-content {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .right-sidebar {
        width: 100%;
        position: static;
        order: 2;
    }
    
    /* Move share and connect sections before references */
    .share-card,
    .branding-set {
        margin-bottom: 20px;
    }
}

/* Navigation (matching existing) */
.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #0056b3;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--light-gray);
    padding: 12px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 0;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.quick-info-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Main Content Grid */
.main-content {
    padding: 40px 0;
}

/* Table of Contents */
.toc-sidebar {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 100px;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 24px;
}

/* Hide mobile TOC elements on desktop */
.mobile-toc-button,
.mobile-toc-overlay,
.mobile-toc-panel {
    display: none;
}

.toc-sticky h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
}

.toc-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary-color);
    background: white;
    border-left-color: var(--primary-color);
}

/* Article Content */
.article-content {
    background: white;
}

.content-section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.content-section h3 {
    font-size: 20px;
    margin: 24px 0 16px;
    color: var(--text-primary);
}

.content-section p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Feature List Styles */
.feature-list {
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 8px;
}

.check-icon {
    color: var(--success-color);
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Bullet List Styles for Simplified Content */
.bullet-list {
    margin-top: 20px;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.bullet-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.bullet-icon {
    color: #007bff;
    font-size: 18px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bullet-content {
    flex: 1;
}

.bullet-content strong {
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 8px;
}

.bullet-content span {
    color: #495057;
    line-height: 1.6;
}

/* Simple Bullet Style */
.bullet-item {
    display: block;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 24px;
}

.bullet-item::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: 8px;
    color: #007bff;
    font-size: 16px;
    font-weight: bold;
}

.bullet-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateX(2px);
}

.bullet-icon {
    display: none;
}

.bullet-content {
    display: block;
}

.bullet-content strong {
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 8px;
}

.bullet-content span {
    color: #495057;
    line-height: 1.6;
}

/* Procedure Links in Sidebar */
.procedure-specialty {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.procedure-specialty a {
    display: block;
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 0;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.procedure-specialty a:hover {
    color: #0056b3;
    border-bottom-color: #007bff;
}

/* Mobile responsive for bullet lists */
@media (max-width: 768px) {
    .bullet-item {
        padding: 10px 12px;
        margin-bottom: 12px;
        padding-left: 20px;
    }
    
    .bullet-item::before {
        left: 6px;
        top: 10px;
        font-size: 14px;
    }
    
    .bullet-content strong {
        display: block;
        margin-bottom: 4px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .bullet-item {
        padding: 8px 10px;
        margin-bottom: 10px;
        padding-left: 18px;
    }
    
    .bullet-item::before {
        left: 4px;
        top: 8px;
        font-size: 12px;
    }
}

/* CTA Section Middle */
.cta-section-middle {
    margin: 40px 0;
}

.cta-box {
    background: linear-gradient(135deg, #c6f6d5 0%, #f2c464 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.cta-box h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta-primary {
    background: white;
    color: #667eea;
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-primary:hover,
.cta-secondary:hover {
    transform: translateY(-2px);
}

/* Right Sidebar */
.right-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Sidebar Section Styles */
.sidebar-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-section h3 {
    color: #1a1a1a;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.related-links,
.trending-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-links li,
.trending-links li {
    margin-bottom: 10px;
}

.related-links a,
.trending-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.related-links a:hover,
.trending-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Share Card Styles */
.share-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.share-card h3 {
    color: #1a1a1a;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

/* Share Button Styles - Apple-like white design */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-btn svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .share-btn {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Branding Set Styles */
.branding-set .app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.branding-set .app-store-link img {
    height: 40px;
    width: auto;
}

.branding-set .social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #1a1a1a;
}

.social-link svg {
    margin-right: 8px;
    flex-shrink: 0;
}

/* Social Icons */
.social-link svg {
    margin-right: 8px;
    vertical-align: middle;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #007bff;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #0056b3;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    padding: 20px 0;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.feedback-widget {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.feedback-btn:hover {
    background: white;
    color: var(--dark-gray);
}

.share-options {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.report-link {
    color: #ff6b6b;
    text-decoration: none;
}

.report-link:hover {
    text-decoration: underline;
}

/* CTA Section Styles - Fully white background */
.cta-section-middle {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    box-shadow: none;
}

.cta-box h3 {
    color: #1a1a1a;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.cta-box p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-store-link img {
    height: 50px;
    transition: transform 0.3s ease;
}

.app-store-link:hover img {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .cta-section-middle {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .cta-box h3 {
        font-size: 18px;
    }
    
    .cta-box p {
        font-size: 13px;
    }
    
    .app-store-link img {
        height: 45px;
    }
}

/* Footer Styling */
.procedure-footer {
    background: #f8f9fa;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-reporting {
    text-align: center;
}

.report-error-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.report-error-btn:hover {
    background: #c82333;
}

/* Main Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

/* Native Social Media Colors */
.social-link.instagram svg {
    fill: #E4405F; /* Instagram brand color */
}

.social-link.youtube svg {
    fill: #FF0000; /* YouTube brand color */
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #495057;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #1a1a1a;
}

.social-link svg {
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Print and PDF Styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    /* PDF Footer Styles */
    .pdf-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #f8f9fa;
        border-top: 2px solid #007bff;
        padding: 20px;
        margin-top: 30px;
        text-align: center;
        font-size: 10pt;
        page-break-inside: avoid;
    }
    
    .pdf-footer .branding-row {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .pdf-footer .branding-item {
        display: flex;
        align-items: center;
        font-size: 9pt;
        color: #666;
    }
    
    .pdf-footer .branding-item svg {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }
    
    .pdf-footer .website-link {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #ddd;
    }
    
    .pdf-footer .website-button {
        background: #007bff;
        color: white;
        padding: 8px 16px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 10pt;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    
    .pdf-footer .rxdx-logo {
        width: 16px;
        height: 16px;
        background: white;
        border-radius: 2px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 8pt;
        color: #007bff;
    }
    
    /* Ensure adequate spacing before footer */
    .content-section:last-of-type {
        margin-bottom: 120px;
    }
    
    /* Page break control */
    .content-section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    h2, h3 {
        page-break-after: avoid;
    }
}

/* Mobile sidebar positioning */
@media (max-width: 768px) {
    .mobile-share-connect {
        order: -1;
        margin-bottom: 30px;
    }
    
    .social-sharing,
    .branding-set {
        margin-bottom: 20px;
    }
    
    /* Move share and connect sections above references on mobile */
    .references-section {
        order: 1;
    }
}

/* Responsive text handling */
@media (max-width: 768px) {
    h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    p, li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    /* Ensure sidebar content appears in proper order on mobile */
    .right-sidebar {
        display: flex;
        flex-direction: column;
    }
    
    .share-card {
        order: 1;
    }
    
    .branding-set {
        order: 2;
    }
    
    .sidebar-section:first-child {
        order: 3;
    }
}

/* Bottom Banner Styles */
.bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #c6f6d5 0%, #f2c464 100%);
    color: #1a1a1a;
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bottom-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.bottom-banner-text {
    font-weight: 600;
    font-size: 16px;
    flex: 1;
    text-align: center;
}

.bottom-banner-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.bottom-banner-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.bottom-banner-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-banner-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

/* Mobile Responsive for Bottom Banner */
@media (max-width: 768px) {
    .bottom-banner {
        padding: 12px 15px;
    }
    
    .bottom-banner-content {
        flex-direction: column;
        gap: 12px;
        padding: 0 40px;
    }
    
    .bottom-banner-text {
        font-size: 14px;
        text-align: center;
        line-height: 1.4;
    }
    
    .bottom-banner-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .bottom-banner-close {
        right: 10px;
        top: 10px;
        transform: none;
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .bottom-banner {
        padding: 10px 12px;
    }
    
    .bottom-banner-content {
        padding: 0 35px;
    }
    
    .bottom-banner-text {
        font-size: 13px;
    }
    
    .bottom-banner-btn {
        padding: 8px 16px;
        font-size: 12px;
        gap: 8px;
    }
    
    .bottom-banner-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Ensure banner doesn't interfere with content */
body {
    padding-bottom: 0;
}

/* Print styles - hide banner */
@media print {
    .bottom-banner {
        display: none !important;
    }
} 

/* Template Format Styles - Enhanced for MD Pathology Residents */
.template-format-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #007bff;
    border-radius: 16px;
    padding: 28px;
    margin: 24px 0;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.1);
}

.template-structure h4 {
    color: #1a1a1a;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 3px solid #007bff;
    padding-bottom: 12px;
    text-align: center;
    position: relative;
}

.template-structure h4::after {
    content: "📋";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
}

.template-description {
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.template-description p {
    margin: 0;
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
}

.final-report {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.report-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.report-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.report-section h5 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.report-text {
    font-size: 15px;
    line-height: 1.7;
    color: #2c3e50;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    margin: 8px 0;
}

.report-subsection {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 2px solid #e9ecef;
}

.report-subsection .report-text {
    font-size: 14px;
    color: #495057;
}

.placeholder {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    border: 2px solid #f39c12;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.2);
    transition: all 0.3s ease;
}

.placeholder:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.template-note {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.template-note p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    font-style: italic;
}

/* Mobile responsive for template format */
@media (max-width: 768px) {
    .template-format-container {
        padding: 20px;
        margin: 20px 0;
        border-radius: 12px;
    }
    
    .final-report {
        padding: 16px;
    }
    
    .report-text {
        font-size: 14px;
    }
    
    .template-structure h4 {
        font-size: 18px;
    }
    
    .report-section h5 {
        font-size: 15px;
    }
    
    .report-subsection {
        margin-left: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 480px) {
    .template-format-container {
        padding: 16px;
    }
    
    .final-report {
        padding: 12px;
    }
    
    .report-text {
        font-size: 13px;
    }
    
    .template-note {
        padding: 12px;
    }
    
    .template-description {
        padding: 12px;
    }
}

/* Print styles for template format */
@media print {
    .template-format-container {
        background: white;
        border: 2px solid #000;
        page-break-inside: avoid;
    }
    
    .final-report {
        background: white;
        box-shadow: none;
    }
    
    .placeholder {
        background: #f0f0f0;
        color: #000;
        border: 1px solid #000;
    }
    
    .template-note {
        background: #f8f9fa;
        border: 1px solid #000;
    }
} 

/* Sub-bullet styles for nested content */
.sub-bullet-list {
    margin-top: 8px;
    margin-left: 20px;
}

.sub-bullet-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
    padding: 4px 0;
    position: relative;
}

.sub-bullet-icon {
    color: #6c757d;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sub-bullet-item span:last-child {
    color: #495057;
    line-height: 1.5;
    font-size: 14px;
}

/* Mobile responsive for sub-bullets */
@media (max-width: 768px) {
    .sub-bullet-list {
        margin-left: 16px;
    }
    
    .sub-bullet-item {
        margin-bottom: 4px;
    }
    
    .sub-bullet-icon {
        font-size: 12px;
        margin-right: 6px;
    }
    
    .sub-bullet-item span:last-child {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sub-bullet-list {
        margin-left: 12px;
    }
    
    .sub-bullet-icon {
        font-size: 11px;
        margin-right: 4px;
    }
    
    .sub-bullet-item span:last-child {
        font-size: 12px;
    }
} 