/* TinyEXR V3 WASM Benchmark - Styles */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
    color: #333;
}

.container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.8em;
}

h2 {
    color: #34495e;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

#controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-weight: 500;
    color: #555;
}

.control-group select,
.control-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.control-group input[type="number"] {
    width: 80px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#runBtn, #runAllBtn {
    background: #3498db;
    color: white;
}

#runBtn:hover:not(:disabled), #runAllBtn:hover:not(:disabled) {
    background: #2980b9;
}

#clearBtn {
    background: #e74c3c;
    color: white;
}

#clearBtn:hover {
    background: #c0392b;
}

#exportBtn, #exportCSVBtn {
    background: #27ae60;
    color: white;
}

#exportBtn:hover:not(:disabled), #exportCSVBtn:hover:not(:disabled) {
    background: #219a52;
}

#status {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #e8f4fd;
    color: #2980b9;
    font-weight: 500;
}

#status.error {
    background: #fdeaea;
    color: #c0392b;
}

#status.success {
    background: #eafaf1;
    color: #27ae60;
}

#memory-info {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

#progress-container {
    margin-bottom: 20px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

#progress-bar {
    height: 20px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s;
}

#progress-text {
    text-align: center;
    font-size: 12px;
    padding: 5px;
    color: #555;
}

#results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

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

#results-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #ddd;
}

#results-table tbody tr:hover {
    background: #f8f9fa;
}

#results-table td.no-results {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
}

.export-controls {
    display: flex;
    gap: 10px;
}

/* Compression type colors */
.comp-none { color: #7f8c8d; }
.comp-rle { color: #9b59b6; }
.comp-zips, .comp-zip { color: #3498db; }
.comp-piz { color: #1abc9c; }
.comp-pxr24 { color: #e67e22; }
.comp-b44, .comp-b44a { color: #e74c3c; }

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    #controls {
        flex-direction: column;
        gap: 15px;
    }

    .button-group {
        margin-left: 0;
        width: 100%;
        justify-content: stretch;
    }

    .button-group button {
        flex: 1;
    }

    #results-table {
        font-size: 12px;
    }

    #results-table th,
    #results-table td {
        padding: 8px 5px;
    }
}
