* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

:root {
    /* Dark theme (default) */
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #ffffff;
    --accent-color: #068f99;
    --hover-color: #057a82;
    --border-color: #404040;
    --option-bg: #3d3d3d;
    --option-hover: #4d4d4d;
}

:root[data-theme="light"] {
    --bg-color: #f5f7fa;
    --container-bg: #ffffff;
    --text-color: #333333;
    --accent-color: #068f99;
    --hover-color: #057a82;
    --border-color: #e0e0e0;
    --option-bg: #f8f9fa;
    --option-hover: #e9ecef;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 600px;
    background: var(--container-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.intro-section {
    text-align: center;
    padding: 2rem 0;
}

.logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.intro-section h1 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.intro-section p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.intro-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.intro-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Main action buttons */
.start-btn, .gallery-btn, .table-btn, .workflow-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.start-btn {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.start-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-btn, .table-btn, .workflow-btn {
    background-color: var(--container-bg);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.gallery-btn:hover, .table-btn:hover, .workflow-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--container-bg);
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
    font-size: 1.2rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #0aa8b3);
    width: 0;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.question-container {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.question-container.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.question-content {
    margin-bottom: 2rem;
}

h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.4;
}

.option {
    background: var(--option-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.option:hover {
    background: var(--option-hover);
    transform: translateY(-2px);
}

.option.selected {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
}

.back-btn {
    background: var(--container-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.back-btn:hover {
    background: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-btn:hover:not(:disabled) {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.nav-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.recommendation-card {
    background: var(--option-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.recommendation-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.recommendation-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.recommendation-card.secondary {
    background: var(--option-bg);
    border: 2px solid var(--border-color);
    margin-top: 1rem;
}

.recommendation-card.secondary h3 {
    color: var(--text-color);
    opacity: 0.8;
}

.insights {
    background: var(--option-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.insights h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.insights ul {
    list-style-type: none;
    padding: 0;
}

.insights li {
    color: var(--text-color);
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.insights li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.next-steps {
    background: var(--option-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.next-steps h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.next-steps p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.next-steps ul {
    list-style-type: none;
    padding: 0;
}

.next-steps li {
    color: var(--text-color);
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.next-steps li:before {
    content: "→";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.restart-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.restart-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.match-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.match-details p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.match-details ul {
    list-style-type: none;
    padding: 0;
}

.match-details li {
    color: var(--text-color);
    margin: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.match-details li:before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.pipeline-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.pipeline-link:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

/* Gallery Header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
    position: relative;
}

.gallery-header h2 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.8rem;
}

#close-gallery-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1002;
}

#close-gallery-btn:hover {
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

/* Category Navigation Styles */
.category-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1001;
    background-color: var(--bg-color);
    border-bottom: 2px solid var(--border-color);
    padding: 10px 20px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.category-nav.hidden {
    transform: translateY(-100%);
}

.category-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
}

.category-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
}

.category-menu a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-menu a.active {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Gallery Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Gallery Category Header */
.gallery-category-header {
    grid-column: 1 / -1;
    margin: 2rem 0 1rem;
    padding: 1rem 0 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.gallery-category-header h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.gallery-item {
    background: var(--container-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.gallery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.gallery-card::after {
    content: attr(data-pipeline-name);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.gallery-item:hover .gallery-card::after {
    transform: translateY(0);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
}

/* Paper detail image should keep aspect ratio and not be cropped */
.paper-detail-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.gallery-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-content h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}

.gallery-content p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* Back to Top Button - Global Styles */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1003;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Section-specific styles */
.gallery-section,
.table-section,
.workflow-info-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Signature/Watermark */
.signature {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 100;
    background-color: var(--container-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signature:hover {
    opacity: 1;
}

.developer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.developer-link:hover {
    color: var(--hover-color);
}

.unifr-logo {
    height: 20px;
    width: auto;
    filter: var(--logo-filter, none);
    transition: filter 0.3s ease;
}

/* Dark mode adjustments for the logo */
@media (prefers-color-scheme: dark) {
    .unifr-logo {
        filter: brightness(0) invert(1); /* Makes the logo white in dark mode */
    }
}

@media (max-width: 768px) {
    .signature {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .unifr-logo {
        height: 16px; /* Slightly smaller on mobile */
    }
}

.insufficient-input-message {
    background: var(--option-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
}

.insufficient-input-message h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.insufficient-input-message p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.insufficient-input-message .restart-container {
    margin-top: 2rem;
}

/* Workflow Button */
.workflow-btn {
    background: var(--container-bg);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
    flex: 1;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workflow-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .workflow-btn {
        width: 100%;
        max-width: 250px;
        min-width: 250px;
    }
}

/* Workflow Section */
.workflow-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.workflow-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-to-gallery-btn {
    background: var(--container-bg);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-gallery-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-gallery-btn i {
    font-size: 0.9rem;
}

.workflow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.workflow-selector {
    margin-bottom: 30px;
}

.workflow-selector-content {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.selector-left {
    flex: 1;
    min-width: 250px;
}

.workflow-selector label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.pipeline-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.back-to-gallery-btn {
    background: var(--container-bg);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    padding: 12px 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 45px;
    white-space: nowrap;
}

.back-to-gallery-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-gallery-btn i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .workflow-selector-content {
        flex-direction: column;
        gap: 1rem;
    }

    .selector-left {
        width: 100%;
    }

    .back-to-gallery-btn {
        width: 100%;
        justify-content: center;
    }
}

.workflow-content {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.workflow-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.pipeline-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.workflow-diagram {
    margin: 30px 0;
    text-align: center;
}

.workflow-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-workflow-message {
    padding: 30px;
    background-color: var(--bg-color);
    border-radius: 8px;
    text-align: center;
    color: var(--text-muted);
}

.workflow-details {
    margin: 30px 0;
}

.workflow-details h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.workflow-details ul {
    list-style-type: none;
    padding: 0;
}

.workflow-details li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-color);
}

.workflow-details li:last-child {
    border-bottom: none;
}

.workflow-resources {
    margin-top: 30px;
    text-align: center;
}

.workflow-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.workflow-link:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-2px);
}

.workflow-link i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .workflow-container {
        padding: 10px;
    }

    .workflow-content {
        padding: 20px;
    }

    .workflow-content h3 {
        font-size: 1.5rem;
    }

    .pipeline-description {
        font-size: 1rem;
    }

    .workflow-details h4 {
        font-size: 1.2rem;
    }

    .workflow-details li {
        font-size: 1rem;
    }

    .workflow-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .workflow-header-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .back-to-gallery-btn {
        width: 100%;
        justify-content: center;
    }
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--accent-color);
}

.workflow-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.workflow-header-content h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-color);
}

.workflow-link {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.workflow-link:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.workflow-link i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .workflow-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .workflow-link {
        width: 100%;
        justify-content: center;
    }
}

/* Tools Selector */
.tools-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.tools-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--heading-color);
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tools-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tools-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.tools-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.tools-select:hover {
    border-color: var(--accent-color);
}

.tools-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(6, 143, 153, 0.25);
}

.tools-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.tools-recommendation-card {
    background: var(--container-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}

.tools-recommendation-card h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tools-results-title {
    margin: 2rem 0 1rem 0;
    color: var(--accent-color);
    font-size: 1.6rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.tools-group {
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
}

@media (max-width: 768px) {
    .tools-header h2 {
        font-size: 1.4rem;
    }
    .tools-select {
        font-size: 0.95rem;
        padding: 10px;
    }
}

/* Workflow Info Page Styles */
.workflow-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.workflow-header {
    text-align: center;
    margin-bottom: 3rem;
}

.workflow-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.workflow-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.workflow-image {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.workflow-step {
    background: var(--container-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.workflow-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.workflow-step h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.workflow-step h3 i {
    font-size: 1.1em;
}

.workflow-step p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Dark theme specific adjustments */
:root[data-theme="dark"] .workflow-step {
    background: var(--container-bg);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .workflow-step:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .workflow-page {
        padding: 1rem;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .gallery-btn,
[data-theme="dark"] .table-btn,
[data-theme="dark"] .workflow-btn {
    background: var(--container-bg);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

[data-theme="dark"] .gallery-btn:hover,
[data-theme="dark"] .table-btn:hover,
[data-theme="dark"] .workflow-btn:hover {
    background: var(--accent-color);
    color: white;
}

@media (max-width: 768px) {
    .resource-buttons {
        flex-direction: column;
        align-items: center;
    }

    .resource-btn, .start-btn, .gallery-btn, .table-btn, .workflow-btn {
        width: 100%;
        max-width: 250px;
    }
}

.text-workflow {
    text-align: justify;
}

/* Workflow Video Styles */
.workflow-video {
    margin: 60px 0 30px 0;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.workflow-video h2 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.workflow-video-player {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

@media (max-width: 768px) {
    .workflow-video {
        margin: 40px 0 20px 0;
        padding-top: 20px;
    }

    .workflow-video h2 {
        font-size: 1.3rem;
    }

    .video-container {
        max-width: 400px;
    }
}

/* Resource Buttons */
.resource-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.resource-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 220px;
    max-width: 220px;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-btn i {
    font-size: 1.2rem;
}

/* Specific button colors */
.docs-btn {
    background-color: #2c3e50;
    color: white;
    border: 2px solid #2c3e50;
}

.docs-btn:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.github-btn {
    background-color: #2c3e50;
    color: white;
    border: 2px solid #2c3e50;
}

.github-btn:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.submit-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Keep workflow-info button consistent in both themes */
.workflow-info-btn {
    background-color: #2c3e50 !important;
    color: white !important;
    border: 2px solid #2c3e50 !important;
    transition: all 0.3s ease !important;
}

.workflow-info-btn:hover {
    background-color: #34495e !important;
    border-color: #34495e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .workflow-info-btn {
    background-color: #2c3e50 !important;
    color: white !important;
    border: 2px solid #2c3e50 !important;
}

[data-theme="dark"] .workflow-info-btn:hover {
    background-color: #34495e !important;
    border-color: #34495e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Intro Page Buttons */
.intro-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.start-btn, .gallery-btn, .table-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 220px; /* Fixed width for all buttons */
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.start-btn {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.start-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-btn, .table-btn {
    background-color: var(--container-bg);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.gallery-btn:hover, .table-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .start-btn, .gallery-btn, .table-btn, .workflow-btn {
        width: 100%;
        max-width: 250px;
    }

    .resource-buttons {
        flex-direction: column;
        align-items: center;
    }

    .resource-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Workflow Info Section */
.workflow-info-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.workflow-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: -20px -20px 20px -20px;
}

.workflow-info-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.workflow-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.workflow-info-content {
    background-color: var(--container-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.workflow-info-content h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1rem;
}

.workflow-info-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.workflow-info-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.workflow-info-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .category-nav {
        padding: 5px 10px;
    }

    .category-menu {
        gap: 0.5rem;
        padding: 0.3rem;
    }

    .category-menu a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .gallery-container {
        padding-top: 60px;
    }

    .intro-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .start-btn, .gallery-btn, .table-btn {
        width: 100%;
        max-width: 250px;
    }

    .workflow-info-header {
        padding: 1rem;
        margin: -20px -20px 20px -20px;
    }

    .workflow-info-container {
        padding: 1rem;
    }

    .workflow-info-content {
        padding: 1rem;
    }
}

/* Table Section */
.table-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.table-header h2 {
    color: var(--text-color);
    margin: 0;
}

.table-container {
    padding: 1rem;
    overflow-x: auto;
}

.pipeline-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--container-bg);
    border-radius: 12px;
    overflow: hidden;
}

.pipeline-table th,
.pipeline-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.pipeline-table th {
    background-color: var(--option-bg);
    position: sticky;
    top: 0;
    z-index: 1;
}

.pipeline-table th .filter-input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
}

.pipeline-table th .filter-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.pipeline-table tbody tr:hover {
    background-color: var(--option-bg);
}

.pipeline-table a {
    color: var(--accent-color);
    text-decoration: none;
}

.pipeline-table a:hover {
    text-decoration: underline;
}

.table-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--container-bg);
    border-radius: 8px;
}

.nav-control-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-control-btn:hover:not(:disabled) {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-control-btn:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-info {
    color: var(--text-color);
    font-size: 1.1rem;
    min-width: 120px;
    text-align: center;
}

@media (max-width: 768px) {
    .category-nav {
        padding: 5px 10px;
    }

    .category-menu {
        gap: 0.5rem;
        padding: 0.3rem;
    }

    .category-menu a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .table-section {
        padding: 1rem;
    }

    .pipeline-table th,
    .pipeline-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .pipeline-table th .filter-input {
        padding: 0.3rem;
        font-size: 0.9rem;
    }

    .table-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-control-btn {
        width: 100%;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .page-info {
        font-size: 1rem;
    }
}