/* Enhanced PRIME Database Styles with Modern Design */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Enhanced base styles with blue-green gradient theme */
html, body {
    height: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 50%, #ecfdf5 100%);
    color: #1e3a8a;
    line-height: 1.6;
    padding-top: 70px; /* Account for fixed navbar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content should expand to push footer down */
main {
    flex: 1;
}

/* Footer styling */
footer {
    margin-top: auto;
    background-color: #1f2937 !important;
    color: white;
    flex-shrink: 0;
}

footer h5 {
    color: white;
    font-weight: 600;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a.text-white-50:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
}

/* Fixed navigation with blue-green gradient */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 50%, #059669 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

/* Scrolled navbar with faded background */
.navbar.scrolled {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.7) 0%, rgba(15, 118, 110, 0.7) 50%, rgba(5, 150, 105, 0.7) 100%) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    color: white !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
    color: rgba(255,255,255,0.9) !important;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
    color: white !important;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
    color: white !important;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

/* Enhanced hero section */
.hero-section {
    background: linear-gradient(135deg, #3b82f6 0%, #0f766e 50%, #10b981 100%);
    color: white;
    padding: 6rem 0 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.1)" points="1000,100 1000,0 0,100"/></svg>') no-repeat;
    background-size: 100% 100%;
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Enhanced cards with gradient backgrounds */
.card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

/* Enhanced buttons with blue-green gradient */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    letter-spacing: 0.5px;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #64748b;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    border-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Form styling */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: white;
}

.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

.form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: white;
}

/* Enhanced feature cards */
.feature-card {
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(255,255,255,0.3);
}

.feature-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Typography enhancements */
.display-4 {
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.lead {
    font-weight: 400;
    font-size: 1.1rem;
    opacity: 0.9;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(101, 163, 13, 0.1) 100%);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 127, 0.1) 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Table styling */
.table {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* Override for browse table - sticky headers with light blue background */
.browse-table thead th {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 12px 8px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

.table thead th {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #000000;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.browse-table tbody td {
    font-size: 0.85rem !important;
    padding: 10px 8px !important;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

/* Column width adjustments for browse table */
.browse-table th:nth-child(1),
.browse-table td:nth-child(1) {
    width: 120px;
    white-space: nowrap;
}

/* N Control and N Treat columns for RNA data (columns 7 & 8) */
.browse-table th:nth-child(7),
.browse-table td:nth-child(7),
.browse-table th:nth-child(8),
.browse-table td:nth-child(8) {
    width: 40px;
    text-align: center;
    font-size: 0.8rem;
    padding: 8px 4px;
}

/* N Control and N Treat columns for ChIP data (columns 4 & 5) */
.browse-table th:nth-child(4),
.browse-table td:nth-child(4),
.browse-table th:nth-child(5),
.browse-table td:nth-child(5) {
    width: 40px;
    text-align: center;
    font-size: 0.8rem;
    padding: 8px 4px;
}

/* Pagination styling */
.pagination .page-link {
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Make filter input boxes smaller */
.filter-section .form-control {
    height: 32px !important;
    font-size: 0.85rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Badge styling */
.badge {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Loading spinner */
.spinner-border {
    color: #4f46e5;
}

/* Species icon styling */
.species-icon {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 8px;
    margin: 0 8px;
    background: rgba(255,255,255,0.15);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.species-icon:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.species-icon.active {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.species-icon svg {
    width: 100%;
    height: 100%;
}

/* Image zoom modal */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-zoom-overlay.show {
    opacity: 1;
    visibility: visible;
}

.image-zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: pointer;
}

/* Home page specific styles */
.home-title-line1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.home-title-line2 {
    font-size: 2.2rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.home-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.gene-search-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.gene-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    padding: 6px 8px 6px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    min-height: 48px;
    z-index: 10000000;
}

.species-icons-container {
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
}

.species-icon-simple {
    height: 48px;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 4px;
}

.species-icon-simple:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.species-icon-simple.active {
    background: rgba(251, 191, 36, 0.2);
    transform: scale(1.05);
}

.species-icon-simple img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gene-input-wrapper {
    position: relative;
    flex: 1;
    margin: 0 12px;
    display: flex;
    align-items: center;
    z-index: 10000000;
}

.search-icon {
    margin-right: 8px;
    color: #64748b;
    font-size: 1.1rem;
}

.gene-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.0rem;
    padding: 8px 0;
    width: 100%;
    min-width: 300px;
}

.gene-input::placeholder {
    font-size: 0.85rem;
    color: #64748b;
}

.search-btn-wrapper {
    padding: 0;
}

.search-btn-wrapper .btn {
    border-radius: 18px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    background: #9ca3af;
    color: white;
    transition: all 0.3s ease;
}

.search-btn-wrapper .btn.active {
    background: #4ade80;
}

.search-btn-wrapper .btn.active:hover {
    background: #22c55e;
}

.search-btn-wrapper .btn:hover {
    background: #6b7280;
    transform: translateY(-1px);
}

.suggestions-dropdown {
    position: fixed;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    z-index: 99999999;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(241, 245, 249, 0.4);
    color: #1f2937;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 700;
    transition: all 0.2s ease;
    backdrop-filter: inherit;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-weight: 600;
    transform: translateX(2px);
}

/* Stats container for home plots */
.stats-plot-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stats-plot-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.stats-plot-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.plot-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.plot-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Introduction text styling */
.intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.intro-text .highlight-number {
    font-weight: 700;
    color: #3b82f6;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        padding: 4rem 0 3rem 0;
    }
    
    .home-title-line1 {
        font-size: 2.5rem;
    }
    
    .home-title-line2 {
        font-size: 1.8rem;
    }
    
    .home-subtitle {
        font-size: 1.1rem;
    }
    
    .species-icon {
        width: 40px;
        height: 40px;
        margin: 0 4px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .home-title-line1 {
        font-size: 2rem;
    }
    
    .home-title-line2 {
        font-size: 1.5rem;
    }
    
    .gene-input-group {
        flex-direction: column;
        padding: 12px;
    }
    
    .species-icons-container {
        order: 1;
        margin-bottom: 12px;
    }
    
    .gene-input-wrapper {
        order: 2;
        margin: 0 0 12px 0;
        width: 100%;
    }
    
    .search-btn-wrapper {
        order: 3;
        width: 100%;
        padding: 0;
    }
    
    .search-btn-wrapper .btn {
        width: 100%;
    }
}

/* Styled scrollbar for dropdown */
.suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 8px 0;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* For Firefox */
.suggestions-dropdown {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) rgba(255, 255, 255, 0.2);
}

/* Animation classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}
/* Search Results styling */
.gene-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.gene-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-buttons {
    display: flex;
    gap: 8px;
}

.table-container {
    max-height: 600px;
    overflow-y: auto;
}

.column-filter {
    font-size: 0.85rem;
    margin-top: 5px;
    max-width: 120px;
}

.numeric-filter {
    display: flex;
    gap: 5px;
}

.numeric-filter input {
    flex: 1;
    font-size: 0.8rem;
}

/* Make logic condition rows more compact */
.logic-condition .form-select-sm,
.logic-condition .form-control-sm {
    height: 24px !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    padding: 0.125rem 0.375rem !important;
}

/* Search Statistics Cards */
.stats-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0,0,0,0.08);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    border-color: rgba(59, 130, 246, 0.3);
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-icon {
    opacity: 0.9;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence-breakdown {
    font-size: 0.75rem;
    line-height: 1.4;
}

.confidence-breakdown small {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.125rem;
}

.confidence-breakdown .fas.fa-circle {
    font-size: 0.5rem;
}

.pts-breakdown small {
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Statistics Chart Containers */
.stats-chart-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 1rem;
}

.stats-chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced card hover effects */
.stats-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px 12px 0 0;
    padding: 0.75rem 1.25rem;
}

.stats-card .card-title {
    font-weight: 600;
    color: #374151;
    margin: 0;
}

/* Compact card design for statistics */
.compact-card {
    padding: 0.75rem 0.5rem !important;
}

.compact-card .stats-number {
    font-size: 1.25rem !important;
    font-weight: 700;
}

.compact-card .stats-label {
    font-size: 0.75rem !important;
    font-weight: 500;
}

.compact-card .stats-icon {
    margin-bottom: 0.25rem !important;
}

.confidence-breakdown.compact {
    line-height: 1.2;
}

.confidence-breakdown.compact small {
    font-size: 0.7rem;
}

.pts-breakdown.compact {
    line-height: 1.2;
}

.pts-breakdown.compact small {
    font-size: 0.7rem;
}

/* Help page navigation - prevent text wrapping and ensure full display */
.help-nav .nav-link {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
}

/* Ensure navigation container has enough width */
.help-nav {
    width: 100% !important;
    min-width: 250px !important;
}

/* Sub-menu styling for analysis modules */
.help-nav .nav-submenu .nav-link {
    padding-left: 2rem !important;
    font-size: 0.85rem !important;
    color: #6b7280 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


/* 修复help_dynamic.html中的图片显示问题 */
.markdown-content img,
.module-content img,
img[src*="platform_architecture.png"],
img[alt*="Platform Architecture"] {
    max-width: 100% !important;
    height: auto !important;
    margin: 1rem 0 !important;
    display: block !important;
    width: auto !important;
    object-fit: contain !important;
    border: none !important;
}

/* 确保markdown内容容器不限制图片宽度 */
.markdown-content {
    overflow: visible !important;
    width: 100% !important;
}

/* 移除可能的截断样式 */
.markdown-content *,
.module-content * {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
}

/* 强制重置所有图片样式 */
.help-container img,
section img,
div img {
    clip: none !important;
    clip-path: none !important;
    transform: none !important;
}