/* ============================================================================
   NEW MULTI-PAGE NAVIGATION STYLES
   ============================================================================ */

/* Site Navigation (Jekyll multi-page) */
.site-navigation {
    background-color: #2c3e50;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-wrapper {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.nav-logo {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: white !important;
    text-decoration: none;
    transition: background 0.3s;
    padding: 20px 16px;
    white-space: nowrap;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    height: 60px;
    background-color: transparent;
}

.nav-links select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white !important;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s, border-color 0.3s;
}

.nav-links select:hover,
.nav-links select:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    outline: none;
}

.nav-links select option {
    background: #2c3e50;
    color: white;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white !important;
}

.nav-links a.active {
    background-color: #3498db !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Content area for Markdown pages */
.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem 4rem 2rem;
    line-height: 1.6;
}

.content h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

.content h2 {
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h3 {
    color: #7f8c8d;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content p {
    margin-bottom: 1rem;
}

.content ul, .content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.content table th,
.content table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Site Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-content a {
    color: #3498db;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Gallery Page Styles */
.gallery-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 4rem 2rem;
}

.gallery-controls {
    margin: 2rem 0;
}

.dropdown-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dropdown-wrapper {
    flex: 1;
    min-width: 250px;
}

.dropdown-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.dropdown-wrapper select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.dropdown-wrapper select:hover,
.dropdown-wrapper select:focus {
    border-color: #3498db;
    outline: none;
}

.viewer-container {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

#contentFrame {
    width: 100%;
    height: 800px;
    border: none;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================================================
   ORIGINAL MAP PAGE STYLES (for index.html)
   ============================================================================ */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body.map-page {
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas:
        "nav nav"
        "sidebar map";
}

body.map-page .site-navigation {
    grid-area: nav;
    position: relative;
}

/* Documentation pages layout fix */
body.doc-page {
    display: block;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    grid-area: navbar;
    background: #1a2a3a;
    color: white;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.nav-brand h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Header */
#header {
    grid-area: header;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

#header h1, #header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 300;
    margin-top: 0.2rem;
}

/* Sidebar */
#sidebar {
    grid-area: sidebar;
    background: #2c3e50;
    color: white;
    border-right: 1px solid #34495e;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-content h2 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.sidebar-content h3 {
    color: #ecf0f1;
    font-size: 1.0rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-text {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Mode Toggle Section */
.mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mode-btn {
    padding: 0.8rem 1rem;
    border: 2px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mode-btn:nth-child(3) {
    grid-column: 1 / -1;
}

.mode-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.mode-btn.active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

/* Filter Section */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.filter-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.filter-checkbox {
    margin-right: 0.8rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-label {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    color: white;
}

.count {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Type-specific colors - Updated to match task specification */
.filter-label.all {
    color: #495057;
}

.filter-label.delta, .definition-item h4.delta, .popup-type.delta {
    color: #9467bd;  /* Purple */
}

.filter-label.fjord, .definition-item h4.fjord, .popup-type.fjord {
    color: #ff7f0e;  /* Orange */
}

.filter-label.lagoon, .definition-item h4.lagoon, .popup-type.lagoon {
    color: #8c564b;  /* Brown */
}

.filter-label.ria, .definition-item h4.ria, .popup-type.ria {
    color: #e377c2;  /* Pink */
}

.filter-label.coastal-plain, .definition-item h4.coastal-plain, .popup-type.coastal-plain {
    color: #1f77b4;  /* Blue */
}

.filter-label.bar-built, .definition-item h4.bar-built, .popup-type.bar-built {
    color: #2ca02c;  /* Green */
}

.filter-label.tectonic, .definition-item h4.tectonic, .popup-type.tectonic {
    color: #d62728;  /* Red */
}

/* Definitions Section */
.definitions-section {
    margin-top: 1.5rem;
}

.definition-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #dee2e6;
}

.definition-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.definition-item p {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.5;
}

/* Reference Section */
.reference-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #dee2e6;
}

.reference-section h4 {
    color: #1e3c72;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.reference {
    font-size: 0.8rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #1e3c72;
}

.reference strong {
    color: #1e3c72;
}

.reference em {
    font-style: italic;
}

/* Map */
#map {
    grid-area: map;
    height: 100%;
    width: 100%;
    background: #aad3df;
    position: relative;
}

/* Legend */
.legend {
    position: absolute;
    bottom: 30px;
    right: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 220px;
    font-size: 0.85rem;
}

.legend h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.legend-color {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    border: 1px solid #333;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-label {
    font-size: 0.8rem;
    color: #495057;
}

/* Pie Chart Stats Overlay */
.stats-overlay {
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 320px;
    transition: all 0.3s ease;
}

.stats-overlay.collapsed .stats-content {
    display: none;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
}

.stats-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.stats-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.stats-overlay.collapsed .stats-toggle {
    transform: rotate(-90deg);
}

.stats-content {
    padding: 16px;
}

#pieChart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.stats-legend {
    margin-top: 12px;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    margin: 4px 0;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid;
}

.legend-item-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.legend-item-value {
    font-weight: 600;
    color: #2c3e50;
}

.legend-item-percent {
    font-size: 0.9em;
    color: #666;
    margin-left: 4px;
}

/* Footer - REMOVED */
#footer {
    grid-area: footer;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 0.6rem 2rem;
    font-size: 0.8rem;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

#footer p {
    margin: 0.3rem 0;
    line-height: 1.4;
}

#footer strong {
    color: white;
    font-weight: 600;
}

#footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

#footer a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.3);
}

.leaflet-popup-content {
    margin: 1rem 1.2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.popup-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.popup-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.8rem;
}

.popup-type.delta { background: #8b4513; }
.popup-type.fjord { background: #4a90e2; }
.popup-type.lagoon { background: #50c878; }
.popup-type.ria { background: #9370db; }
.popup-type.coastal-plain { background: #ff8c00; }
.popup-type.bar-built { background: #20b2aa; }
.popup-type.tectonic { background: #dc143c; }

.popup-info {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
}

.popup-info strong {
    color: #212529;
}

.popup-description {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* Custom marker clusters (if using clustering) */
.marker-cluster-small {
    background-color: rgba(74, 144, 226, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(74, 144, 226, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(74, 144, 226, 0.7);
}

.marker-cluster-medium div {
    background-color: rgba(74, 144, 226, 0.9);
}

.marker-cluster-large {
    background-color: rgba(74, 144, 226, 0.8);
}

.marker-cluster-large div {
    background-color: rgba(74, 144, 226, 1);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        grid-template-areas:
            "header"
            "sidebar"
            "map"
            "footer";
    }
    
    #sidebar {
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    #header h1 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
}

/* Scrollbar Styling */
#sidebar::-webkit-scrollbar {
    width: 8px;
}

#sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================================================
   DOCUMENTATION PAGES STYLES
   ============================================================================ */

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand h1 {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1rem 0;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-link.active {
    color: white;
    border-bottom-color: #4a90e2;
    background: rgba(255,255,255,0.05);
}

/* Documentation Container */
.doc-container {
    min-height: calc(100vh - 140px);
    background: #f8f9fa;
    padding: 3rem 2rem;
}

.doc-content {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.doc-content h1 {
    color: #1e3c72;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #1e3c72;
}

.doc-content h2 {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.doc-content h3 {
    color: #2a5298;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.doc-content h4 {
    color: #495057;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.doc-content p {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.doc-content ul, .doc-content ol {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
}

.doc-content strong {
    color: #212529;
    font-weight: 600;
}

.doc-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #d63384;
}

.doc-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.doc-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.doc-content blockquote {
    border-left: 4px solid #1e3c72;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

.doc-content a {
    color: #4a90e2;
    text-decoration: none;
}

.doc-content a:hover {
    text-decoration: underline;
}

/* Special Boxes */
.disclaimer-box, .ai-disclaimer-box, .credit-box, .citation-box, .reference-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.disclaimer-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
}

.disclaimer-box h3 {
    color: #856404;
    margin-top: 0;
}

.ai-disclaimer-box {
    background: #e7f3ff;
    border-left: 5px solid #4a90e2;
}

.ai-disclaimer-box h3 {
    color: #1e3c72;
    margin-top: 0;
}

.credit-box {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
}

.citation-box {
    background: #f1f8f4;
    border-left: 5px solid #28a745;
}

.reference-box {
    background: #f8f9fa;
    border-left: 3px solid #6c757d;
    padding: 1rem;
    margin: 1rem 0;
}

.ref-note, .citation-note {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

.ai-note {
    font-size: 0.95rem;
    color: #495057;
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.disclaimer-list {
    margin-top: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #1e3c72;
}

.stat-card h3 {
    color: #1e3c72;
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
}

.stat-card p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

/* Flow Diagram */
.flow-diagram {
    margin: 2rem 0;
}

.flow-step {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1e3c72;
    margin-bottom: 1rem;
}

.flow-step h3 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.flow-step p {
    color: #495057;
    margin-bottom: 0.5rem;
}

.flow-step ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.flow-arrow {
    text-align: center;
    color: #1e3c72;
    font-size: 2rem;
    margin: 0.5rem 0;
}

/* Tables */
.comparison-table, .params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.comparison-table th, .comparison-table td,
.params-table th, .params-table td {
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.comparison-table th, .params-table th {
    background: #1e3c72;
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even),
.params-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Tool Lists */
.tool-list {
    list-style: none;
    padding: 0;
}

.tool-list li {
    padding: 0.8rem;
    background: #f8f9fa;
    border-left: 3px solid #4a90e2;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #dee2e6;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.btn-primary {
    background: #1e3c72;
    color: white;
}

.btn-primary:hover {
    background: #2a5298;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer for Documentation Pages */
body:has(.doc-container) #footer {
    position: relative;
    margin-top: 0;
}

.disclaimer {
    font-size: 0.8rem;
    color: #ffc107;
    margin-top: 0.5rem;
}

/* Lead Paragraph */
.lead {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Responsive Design for Documentation Pages */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .doc-container {
        padding: 1.5rem 1rem;
    }
    
    .doc-content {
        padding: 1.5rem;
    }
    
    .doc-content h1 {
        font-size: 2rem;
    }
    
    .doc-content h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
}
/* Dropdown interface styling for new sidebar layout */
.dropdown-wrapper {
    margin-bottom: 1rem;
}

.dropdown-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-wrapper select[multiple] {
    min-height: 80px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-wrapper select[multiple] option {
    padding: 0.25rem 0.5rem;
    background: transparent;
    color: white;
}

.dropdown-wrapper select[multiple] option:checked {
    background: #3498db !important;
    color: white !important;
}

.dropdown-wrapper select[multiple]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}


/* Gallery dropdown styling fixes */
#itemSelect option {
    background: white !important;
    color: black !important;
    padding: 8px;
}

#itemSelect optgroup {
    background: #f8f9fa !important;
    color: #2c3e50 !important;
    font-weight: 600;
}

#itemSelect optgroup option {
    background: white !important;
    color: black !important;
    padding-left: 20px;
}


/* Mermaid diagram styling */
.mermaid {
    text-align: center;
    margin: 2rem 0;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    min-height: 200px;
}

.mermaid svg {
    max-width: 100%;
    height: auto;
}


/* Pie Chart Legend Styling */
.stats-legend {
    color: #2c3e50 !important;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.stats-legend div {
    color: #2c3e50 !important;
    margin: 0.2rem 0;
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    line-height: 1.2;
}

.stats-legend span {
    color: #2c3e50 !important;
}

#stats-sidebar h3 {
    color: #ecf0f1 !important;
}


/* Dropdown styling */
select option {
    padding: 0.5rem;
    cursor: pointer;
    background-color: #34495e !important;
    color: white !important;
}

select option:checked, select option:focus {
    background: linear-gradient(#3498db, #3498db) !important;
    color: white !important;
}

select option:hover {
    background: rgba(52, 152, 219, 0.3) !important;
}
