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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

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

h1 {
    text-align: center;
    color: #f0f6fc;
    margin-bottom: 10px;
    font-size: 2.5em;
}

h2 {
    color: #f0f6fc;
}

h3 {
    color: #f0f6fc;
}

h4 {
    color: #f0f6fc;
}

.subtitle {
    text-align: center;
    color: #8b949e;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.subtitle-highlight {
    text-align: center;
    color: #58a6ff;
    font-weight: 600;
    margin-top: -10px;
}

.controls {
    text-align: center;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #2ea043;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-secondary {
    background-color: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
}

.btn-secondary:hover {
    background-color: #30363d;
    border-color: #8b949e;
}

.back-button {
    margin-bottom: 20px;
}

.stats-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.stats-container-spaced {
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-align: center;
    border: 1px solid #30363d;
}

.stat-card h3 {
    color: #f0f6fc;
    margin-bottom: 15px;
}

.file-info p {
    margin: 8px 0;
    font-size: 1.1em;
}

.file-info strong {
    color: #58a6ff;
}

.file-info ul {
    text-align: left;
    margin: 10px 0;
    padding-left: 20px;
}

.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.result-section {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid #30363d;
}

.result-section h2 {
    color: #f0f6fc;
    margin-bottom: 15px;
    text-align: center;
}

.result-section-subtitle {
    text-align: center;
    color: #8b949e;
    margin-bottom: 10px;
}

.iframe-container {
    width: 100%;
    height: 200px;
    border: 2px solid #30363d;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #0d1117;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.timing-info {
    text-align: center;
    font-size: 1.2em;
}

.time {
    font-weight: bold;
    color: #58a6ff;
    font-size: 1.3em;
}

.comparison-summary {
    background: #0d1117;
    border: 2px solid #238636;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.comparison-summary h3 {
    color: #3fb950;
    margin-bottom: 15px;
}

.comparison-summary p {
    font-size: 1.1em;
    margin: 8px 0;
}

.comparison-summary span {
    font-weight: bold;
    color: #3fb950;
}

.test-results {
    background: #161b22;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid #30363d;
}

.test-results h3 {
    color: #f0f6fc;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #30363d;
    color: #c9d1d9;
}

th {
    background-color: #161b22;
    font-weight: 600;
    color: #f0f6fc;
}

tr:hover {
    background-color: #1c2128;
}

.average-results {
    background: #1c2128;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #30363d;
}

.average-results h4 {
    color: #f0f6fc;
    margin-bottom: 10px;
}

.average-results p {
    margin: 5px 0;
}

.average-results span {
    font-weight: bold;
    color: #58a6ff;
}

/* Warning Banner */
.warning-banner {
    background-color: #f39c12;
    color: #0d1117;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.warning-banner-compact {
    padding: 12px;
}

/* Info Sections */
.info-section {
    margin-top: 40px;
    padding: 30px;
    background: #161b22;
    border-radius: 10px;
    border-left: 4px solid #58a6ff;
    border: 1px solid #30363d;
}

.info-section h2 {
    color: #f0f6fc;
    margin-bottom: 20px;
}

.info-section p {
    text-align: left;
    color: #c9d1d9;
    line-height: 1.8;
    margin-bottom: 15px;
}

.info-section a {
    color: #58a6ff;
    text-decoration: none;
}

.info-section a:hover {
    text-decoration: underline;
}

.info-section ul {
    text-align: left;
    color: #c9d1d9;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 20px;
}

.info-section strong {
    color: #f0f6fc;
}

.info-section-italic {
    font-style: italic;
}

/* Blue Info Box */
.info-box-blue {
    background: #0d1117;
    border-left: 4px solid #2196f3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    border: 1px solid #1565c0;
}

.info-box-blue h3 {
    margin-top: 0;
    color: #58a6ff;
}

.info-box-blue p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-box-blue p:last-child {
    margin: 0;
}

.info-box-blue strong {
    color: #f0f6fc;
}

.info-box-blue em {
    color: #c9d1d9;
}

/* Center Text Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #8b949e;
}

.mt-50 {
    margin-top: 50px;
}

/* Library Grid */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.library-card {
    background: #161b22;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #30363d;
}

.library-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border-color: #58a6ff;
}

.library-card h2 {
    color: #f0f6fc;
    margin-bottom: 15px;
}

.library-card p {
    color: #8b949e;
    margin-bottom: 20px;
}

.library-card a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #238636;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.library-card a:hover {
    background-color: #2ea043;
}

.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
}

.coming-soon a {
    background-color: #30363d;
    pointer-events: none;
}

/* Test Page Styles */
.test-page {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 20px;
}

.test-page h2 {
    color: #f0f6fc;
}

.test-page h3 {
    color: #f0f6fc;
}

.test-page strong {
    color: #58a6ff;
}

.test-page ul {
    list-style-type: none;
    padding-left: 0;
}

.test-page li {
    padding: 5px 0;
}

.status-loaded {
    color: #3fb950;
}

.test-demo {
    margin-top: 20px;
    padding: 10px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
}