/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.header .container {
    padding: 20px;
    transition: padding 0.3s ease;
}

.header.scrolled .container {
    padding: 10px 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    transition: margin 0.3s ease;
}

.header.scrolled .header-content {
    margin-bottom: 10px;
}

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

.logo-img {
    height: 40px;
    transition: height 0.3s ease;
}

.header.scrolled .logo-img {
    height: 30px;
}

.logo-text {
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;
}

.header-text {
    flex: 1;
}

.header h1 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 8px;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.header.scrolled h1 {
    font-size: 1.5em;
    margin-bottom: 4px;
}

.header .subtitle {
    color: #7f8c8d;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav a {
    color: #34495e;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: #ecf0f1;
}

/* Section Styles */
section {
    padding: 60px 0;
    background: white;
    margin-bottom: 2px;
}

section h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}

/* Abstract Section */
.abstract {
    background: #f8f9fa;
}

.abstract-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.abstract-text {
    font-size: 1.1em;
    line-height: 1.8;
}

.abstract-text p {
    margin-bottom: 20px;
}

.abstract-visual {
    text-align: center;
}

.abstract-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.image-caption {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Method Section */
.method-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.method-images {
    position: relative;
}

.image-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.slide {
    display: none;
    text-align: center;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
}

.slide-caption {
    padding: 15px;
    background: #f8f9fa;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.slider-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.method-text {
    font-size: 1.1em;
}

.method-text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.method-text li {
    margin-bottom: 10px;
}

.loss-formula {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

.loss-formula code {
    font-size: 1.1em;
    color: #2c3e50;
}

/* Results Section */
.results {
    background: #f8f9fa;
}

.dataset-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.results-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.results-table tr.highlight {
    background: #e8f5e8;
}

/* Video Comparisons */
.video-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.selector-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.selector-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Error Controls */
.error-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.error-controls h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.error-toggles {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.error-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.error-toggle:hover {
    border-color: #3498db;
}

.error-toggle input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s;
}

.checkmark.false-positives {
    background: #e74c3c;
    border: 2px solid #c0392b;
}

.checkmark.false-negatives {
    background: #f39c12;
    border: 2px solid #d68910;
}

.checkmark.identity-switches {
    background: #9b59b6;
    border: 2px solid #8e44ad;
}

.error-toggle input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.error-count {
    background: #34495e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.error-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.false-positives {
    background: #e74c3c;
}

.legend-color.false-negatives {
    background: #f39c12;
}

.legend-color.identity-switches {
    background: #9b59b6;
}

/* Video Container with Overlay */
.video-container {
    text-align: center;
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-container video {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
}

.error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.error-box {
    position: absolute;
    border: 3px solid;
    border-radius: 4px;
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0.9;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.error-box.false-positives {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.4);
}

.error-box.false-negatives {
    border-color: #ff8800;
    background: rgba(255, 136, 0, 0.4);
}

.error-box.identity-switches {
    border-color: #aa00ff;
    background: rgba(170, 0, 255, 0.4);
}

.error-box .error-label {
    position: absolute;
    top: -20px;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* Error Info */
.error-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error-info h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.error-details {
    font-size: 14px;
    line-height: 1.6;
}

.error-details p {
    margin-bottom: 10px;
}

.error-details ul {
    margin-left: 20px;
}

.error-details li {
    margin-bottom: 5px;
}

.video-description {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Downloads Section */
.downloads {
    background: #f8f9fa;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background: #2980b9;
}

.citation {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.citation h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.citation pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 6px;
    text-align: left;
    overflow-x: auto;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 8px 16px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background: #219a52;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .abstract-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .method-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .dataset-tabs,
    .video-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .download-links {
        flex-direction: column;
        align-items: center;
    }
    
    section {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header h1 {
        font-size: 1.3em;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.2em;
    }
    
    section h2 {
        font-size: 1.8em;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px;
        font-size: 0.9em;
    }
} 

/* Responsive Design for Error Controls */
@media (max-width: 768px) {
    .error-toggles {
        flex-direction: column;
        align-items: center;
    }
    
    .error-legend {
        flex-direction: column;
        align-items: center;
    }
    
    .error-toggle {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
} 