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

:root {
    --primary-pink: #FFB7C5;
    /* --primary-pink: #fed0d9e8; */
    --light-pink: #FFF0F5;
    --accent-pink: #ea68a9bc;
    --dark-pink: rgba(212, 40, 149, 0.594);
    --text-dark: #555;
    --text-light: #666;
    --white: #FFFFFF;
    --sidebar-width: 220px;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Varela Round, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: #fefefe;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #fbf9fa 0%, #fdf3f5 100%);
    box-shadow: 2px 0 20px rgba(255, 183, 197, 0.2);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Make images clickable */
.figure-card img {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.figure-card img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Hide scrollbars for sidebar only */
.sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.logo-section {
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #fbf9fa 0%, #fdf3f5 100%);
    color: var(--text-light);
    text-align: center;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.logo-section p {
    font-size: 0.9rem;
    opacity: 0.95;
}

.nav-menu {
    padding: 1.5rem 0;
}

.nav-item {
    display: block;
    padding: 1rem 1.5rem 1rem 4rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-item:hover {
    color: var(--accent-pink);
}

.nav-item.active {
    color: var(--dark-pink);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 3px;
    background: var(--dark-pink);
    border-radius: 0 2px 2px 0;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-right: 15%;
    padding: 2rem 3rem;
    min-height: 100vh;
    max-width: calc(85vw - var(--sidebar-width));
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

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

.page-header {
    background: transparent;
    padding-top: 2rem;
    /* padding: 2rem 0; */
    /* margin-bottom: 1rem; */
}

.paper-info-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 4px solid rgb(207, 211, 214);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header h2 {
    font-size: 1.5rem;
    /* color: var(--dark-pink); */
    /* color: var(--text-light); */
    color: var(--text-dark);
    /* color: rgba(99, 76, 246, 0.64); */
    margin-bottom: 1rem;
    text-align: center;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.authors-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.authors-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 120px;
    max-width: 160px;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    /* color: var(--accent-pink); */
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.author-name.first-author {
    color: var(--dark-pink);
}

.author-name.first-author {
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name.first-author:hover {
    color: var(--dark-pink);
    text-decoration: underline;
}

.author-institution {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.author-footnote {
    margin-top: 0.5rem;
    text-align: center;
}

.author-footnote span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.header-logos {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-link:hover {
    transform: translateY(-3px);
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
    font-size: 2rem;
}

.hf-logo {
    background: transparent;
    color: #1F1F1F;
}

.paper-logo {
    background: transparent;
    color: gray;
}

.code-logo {
    background: transparent;
    color: #333;
}

.logo-link:hover .hf-logo {
    background: #fae9b4;
    box-shadow: 0 6px 20px rgba(255, 210, 30, 0.4);
}

.logo-link:hover .code-logo {
    background: #e8f5e8;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.logo-link:hover .paper-logo {
    background: var(--primary-pink);
    box-shadow: 0 6px 20px rgba(199, 21, 133, 0.4);
}

.logo-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-email {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-email a {
    color: var(--dark-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: var(--accent-pink);
    text-decoration: underline;
}

.quote-section {
    margin-top: 3rem;
    text-align: right;
}

.quote-section blockquote {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    padding: 0 1rem;
    line-height: 1.5;
    position: relative;
}

.quote-section cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-pink);
    font-weight: 500;
}

.content-card {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 1rem;
    overflow: visible;
}

.content-card h3 {
    color: var(--dark-pink);
    /* color: var(--text-dark); */
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.content-card p {
    text-align: justify;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Audio Demo Card */
.audio-demo {
    /* background: rgba(255, 240, 245, 0.3); */
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.audio-demo h4 {
    color: var(--text-light);
    margin-bottom: 0rem;
}

.audio-caption {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin: 1rem 0;
}

.waveform-container {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.audio-filename-caption {
    text-align: center;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.audio-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    background: var(--accent-pink);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--dark-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(199, 21, 133, 0.3);
}

/* Grid for figures */
.figure-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* margin: 3rem 0; */
}

/* Team grid - side by side layout using flexbox */
.team-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 3rem;
    margin: 3rem 0;
    width: 100%;
    align-items: stretch;
}

.team-grid .figure-card {
    flex: 1;
    margin: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .team-grid {
        flex-direction: column !important;
        gap: 2rem;
    }
}

.figure-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.figure-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.figure-content img {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.figure-content img:hover {
    transform: scale(1.02);
}

.figure-content p {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 0;
    text-align: justify;
    width: 100%;
    line-height: 1.5;
}

/* Audio Demo Interface */
.task-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
    justify-content: center;
}

.task-btn {
    padding: 0.6rem 0.8rem;
    background: var(--light-pink);
    color: var(--dark-pink);
    border: 2px solid var(--primary-pink);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.6rem;
    width: 120px;
    font-weight: 500;
    text-align: center;
}

.task-btn:hover {
    background: var(--primary-pink);
    transform: translateY(-2px);
}

.task-btn.active {
    background: var(--accent-pink);
    color: white;
    border-color: var(--dark-pink);
}

/* Two-level task selection layout */
.task-selection-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.basic-tasks, .advanced-tasks {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.basic-tasks h4, .advanced-tasks h4 {
    color: var(--dark-pink);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-pink);
    padding-bottom: 0.5rem;
}

/* Constraint buttons with different styling */
.constraint-btn {
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    color: #2563eb;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    width: 130px;
    font-weight: 500;
    text-align: center;
}

.constraint-btn:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.constraint-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Disabled constraint buttons */
.constraint-btn.disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6;
    position: relative;
}

.constraint-btn.disabled:hover {
    background: #f1f5f9 !important;
    transform: none !important;
    box-shadow: none !important;
}

.constraint-btn.disabled:hover:after {
    opacity: 1;
}

/* Responsive layout */
@media (max-width: 768px) {
    .task-selection-container {
        gap: 1rem;
    }

    .basic-tasks, .advanced-tasks {
        padding: 0.75rem;
    }
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.model-card {
    background: rgba(255, 240, 245, 0.3);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 183, 197, 0.3);
}

.model-card.selected {
    background: linear-gradient(135deg, var(--accent-pink), var(--primary-pink));
    color: white;
}

.model-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--dark-pink);
}

.model-description {
    opacity: 0;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-pink);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.model-card:hover .model-description {
    opacity: 1;
}

.model-type {
    background: var(--accent-pink);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.model-card.selected .model-type {
    background: var(--dark-pink);
}

.play-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-card:hover .play-indicator,
.model-card.selected .play-indicator {
    opacity: 1;
}

.current-selection-caption {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}

.selector-label {
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.separator {
    color: var(--text-light);
    font-weight: 300;
}

.selector-dropdown {
    position: relative;
    display: inline-block;
}

.selector-btn {
    /* background: linear-gradient(135deg, var(--light-pink) 0%, var(--primary-pink) 100%); */
    background: var(--light-pink);
    color: var(--text-dark);
    border: 0px solid var(--primary-pink);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 120px;
    justify-content: space-between;
}

.selector-btn:hover {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--accent-pink) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 183, 197, 0.3);
}

.selector-btn:after {
    content: '▼';
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.selector-dropdown.active .selector-btn:after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--primary-pink);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(255, 183, 197, 0.2);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    animation: dropdownSlide 0.2s ease-out;
    min-width: 200px;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content.show {
    display: block;
}

.dropdown-section {
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--light-pink);
    color: var(--dark-pink);
}

.dropdown-item.active {
    background: var(--primary-pink);
    color: var(--dark-pink);
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background: var(--primary-pink);
    margin: 0.3rem 0;
    opacity: 0.5;
}

/* Code Block Styling */
.code-block {
    background: #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 1rem 0;
}

.code-header {
    background: #b9b2b25d;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #b0b0b0;
}

.code-title {
    color: #333333;
    font-weight: 600;
    font-size: 0.9rem;
}

.code-language {
    color: #555555;
    font-size: 0.8rem;
    background: #b8b8b8;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.code-block pre {
    margin: 0;
    padding: 1.2rem;
    background: #fefefe;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
}

.code-block code {
    color: #333333;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* JSON Syntax Highlighting */
.json-key {
    color: #0969da;
    font-weight: 500;
}

.json-string {
    color: #0a3069;
}

.json-number {
    color: #0969da;
}

.code-explanation {
    background: var(--light-pink);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 4px solid var(--primary-pink);
}

.code-explanation p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-explanation code {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.audio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    background: var(--light-pink);
    border-radius: 8px;
    color: var(--text-light);
    font-style: italic;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: auto;
}

#performance-insights {
    background: rgba(255, 240, 245, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 100px;
    backdrop-filter: blur(10px);
}

/* Channel Legend */
.channel-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    padding: 1rem;
    /* background: rgba(255, 183, 197, 0.15); */
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.channel-color {
    width: 20px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-channel {
    background: #4A90E2;
}

.model-channel {
    background: #FFB7C5;
}

/* Cherry Blossom Decoration */
.cherry-blossom {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, var(--primary-pink), var(--accent-pink));
  border-radius: 0 100% 0 100%;
  transform: rotate(45deg);       /* 只定形狀，不會跟著路徑旋轉 */
  opacity: 0.35;

  /* 公轉路徑：半徑 80px 的圓（可改） */
  offset-path: path("M 0,0 m -80,0 a 80,80 0 1,0 160,0 a 80,80 0 1,0 -160,0");
  offset-rotate: 0deg;            /* 不讓物件沿切線旋轉 */
  animation: orbit 8s linear infinite;
}

/* Results Table Styling */
.table-container {
    margin: 2rem 0;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.results-table {
    width: auto;
    max-width: 600px;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
}

.results-table th,
.results-table td {
    padding: 0.64rem 1.04rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.results-table thead {
    background: #f8f9fa;
}

.results-table th {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    border-right: 1px solid #dee2e6;
}

.results-table th:last-child {
    border-right: none;
}

.model-header {
    background: #6c757d !important;
    color: white !important;
    font-weight: 700;
}

.category-header {
    font-size: 0.72rem;
    font-weight: 700;
}

.metric-header {
    font-size: 0.64rem;
    font-weight: 500;
    opacity: 0.9;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.model-name {
    text-align: left !important;
    font-weight: 600;
    color: var(--text-dark);
    background: #f8f9fa;
}

.highlight-row {
    background: #e9ecef;
}

.highlight-row td {
    font-weight: 500;
}

.table-caption {
    margin-top: 1rem;
    font-size: 0.72rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    max-width: 600px;
}

.table-caption strong {
    color: var(--text-dark);
    font-style: normal;
}

/* Section Divider */
.section-divider {
    border: none;
    height: 1.5px;
    background: #ddd;
    margin: 1rem auto;
    width: 60%;
}

/* Evaluation Section Styles */
.task-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.task-category {
    /* background: #f8f9fa; */
    padding: 1.5rem;
    border-radius: 12px;
}

.task-category h4 {
    color: var(--dark-pink);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    /* border-bottom: 2px solid var(--primary-pink); */
    padding-bottom: 0.5rem;
}

.task-category ul {
    list-style: none;
    padding: 0;
}

.task-category li {
    padding: 0.5rem 0;
    color: #666;
    /* border-bottom: 1px solid rgba(255, 183, 197, 0.2) */
    font-size: 0.9rem;
}

.task-category li:last-child {
    border-bottom: none;
}

.task-category li:before {
    content: "▸";
    color: #999;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Task Families Specific Styles */
.section-description {
    margin-bottom: 1.5rem;
    color: #666;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 15rem;
    margin-bottom: -14rem;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82em;
    background: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(255, 183, 197, 0.15);
}

.task-table thead tr {
    background: #a0a0a0;
}

.task-table.advanced thead tr {
    background: #a0a0a0;
}

.task-table-header {
    padding: 1rem 0.75rem;
    text-align: left;
    color: white;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.task-table-header.center {
    text-align: center;
}

.task-table-header:last-child {
    border-right: none;
}

.task-table-header.col-33 {
    width: 33%;
}

.task-table-header.col-13 {
    width: 13%;
}

.task-table-header.col-15 {
    width: 15%;
}

.task-table-header.col-20 {
    width: 20%;
}

.task-table-header.col-19 {
    width: 19%;
}

.task-table tbody tr {
    transition: background 0.2s ease;
    position: relative;
}

.task-table tbody tr:hover {
    background-color: rgba(255, 183, 197, 0.12) !important;
}

.task-table tbody tr.alt-row {
    background-color: #f8f9fa;
}

.task-table tbody {
    overflow: visible;
}

.task-table-cell {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 183, 197, 0.15);
    color: #666;
}

.task-table-cell.instruction {
    color: #555;
}

.task-table-cell.center {
    text-align: center;
    font-weight: 500;
}

.task-table-cell.mono {
    font-family: monospace;
    font-size: 0.9em;
}

.task-table-cell.small {
    font-size: 0.9em;
}

.task-table-cell.smaller {
    font-size: 0.85em;
}

/* Subtask Dropdown Styles */
.subtask-selector {
    padding: 0.5rem !important;
    position: relative;
    overflow: visible;
}

.subtask-dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.subtask-dropdown-btn {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    width: 100%;
    cursor: pointer;
    font-size: 0.88em;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.subtask-dropdown-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border-color: var(--accent-pink);
    box-shadow: 0 2px 8px rgba(234, 104, 169, 0.15);
    transform: translateY(-1px);
}

.subtask-dropdown-container.open .subtask-dropdown-btn {
    border-color: var(--accent-pink);
    box-shadow: 0 4px 12px rgba(234, 104, 169, 0.2);
}

.subtask-current {
    flex: 1;
    text-align: left;
    color: #444;
}

.dropdown-arrow {
    font-size: 0.65em;
    margin-left: 0.6rem;
    color: #888;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.subtask-dropdown-container.open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent-pink);
}

.subtask-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid var(--primary-pink);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(234, 104, 169, 0.08);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.35rem;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.subtask-dropdown-menu.advanced {
    max-height: 250px;
}

/* Custom scrollbar for dropdown */
.subtask-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.subtask-dropdown-menu::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.subtask-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border-radius: 10px;
}

.subtask-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--accent-pink);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.subtask-dropdown-container.open .subtask-dropdown-menu {
    display: block;
}

.subtask-option {
    padding: 0.7rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
    font-size: 0.86em;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    position: relative;
}

.subtask-option:first-child {
    border-radius: 8px 8px 0 0;
}

.subtask-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.subtask-option:hover {
    background: linear-gradient(90deg, var(--light-pink) 0%, rgba(255, 240, 245, 0.4) 100%);
    color: var(--dark-pink);
    padding-left: 1.3rem;
}

.subtask-option.selected {
    background: linear-gradient(90deg, var(--accent-pink) 0%, var(--primary-pink) 100%);
    color: white;
    font-weight: 600;
}

.subtask-option.selected::before {
    content: '✓';
    position: absolute;
    left: 0.6rem;
    font-weight: bold;
    color: white;
}

.table-subtitle {
    color: #d4289596;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.advanced-table-subtitle {
    color: #d4289596;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.constraint-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.pipeline-step {
    margin-bottom: 1.25rem;
}

.pipeline-example {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.pipeline-example p {
    margin: 0;
    font-family: monospace;
    font-size: 0.85em;
}

.pipeline-example ul {
    margin: 0;
    font-size: 0.85em;
}

.stats-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.stats-intro p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.constraint-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.constraint-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.constraint-card.time-limits {
    border-left: 4px solid #FFB7C5;
}

.constraint-card.tempo {
    border-left: 4px solid #ea68a9bc;
}

.constraint-card.simul-speak {
    border-left: 4px solid #d4289596;
}

.constraint-card h4 {
    margin: 0 0 0.75rem 0;
    color: #d4289596;
    font-size: 1rem;
}

.constraint-card p {
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.95em;
}

.families-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
}

.families-box p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #d4289596;
    font-size: 0.85rem;
}

.families-box ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #666;
    font-size: 0.88em;
    line-height: 1.6;
}

.dataset-stats {
    margin-top: 2.5rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 4px solid #e0e0e0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.stat-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4289596;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

.stat-detail {
    color: #888;
    font-size: 0.8em;
    font-family: monospace;
}

.task-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.task-list-section h4 {
    color: #d4289596;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.task-list-section h5 {
    color: #888;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.basic-task-list {
    list-style: none;
    padding: 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.8;
}

.basic-task-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 183, 197, 0.15);
}

.basic-task-list li:last-child {
    border-bottom: none;
}

.advanced-task-group {
    margin-bottom: 1.25rem;
}

.advanced-task-list {
    list-style: none;
    padding: 0 0 0 1rem;
    color: #666;
    font-size: 0.85em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .task-categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .task-category {
        padding: 1rem;
    }

    .task-list-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding: 0.5rem;
        max-width: 100%;
    }

    .page-header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .page-header h2 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .authors-section {
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .authors-row {
        gap: 1rem;
        justify-content: center;
    }

    .author {
        min-width: 100px;
        max-width: 120px;
    }

    .author-name {
        font-size: 0.85rem;
    }

    .author-institution {
        font-size: 0.7rem;
    }

    .header-logos {
        gap: 2rem;
        margin-top: 2rem;
        flex-wrap: wrap;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .quote-section blockquote {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    .content-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .content-card p {
        font-size: 1rem;
    }

    .figure-card {
        padding: 1rem;
    }

    .figure-content img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .audio-demo {
        padding: 1rem;
        margin: 1rem 0;
    }

    .channel-legend {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .model-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .model-card {
        padding: 0.75rem;
        min-height: 70px;
    }

    .model-card h4 {
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--accent-pink);
        color: white;
        border: none;
        padding: 0.5rem;
        border-radius: 5px;
        cursor: pointer;
    }
}

.mobile-menu-toggle {
    display: none;
}