body {
    background: #1e1e1e;
    color: #eee;
    font-family: sans-serif;
    padding: 20px 20px 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    box-sizing: border-box;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
    border: 1px solid #444;
}

.progress-bar-fill {
    height: 100%;
    background: #4caf50;
    width: 0%;
}

.status-bar-label {
    font-size: 13px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

.status-group {
    margin-bottom: 20px;
    padding: 12px;
    background: #252526;
    border-radius: 6px;
    border: 1px solid #333;
}

.error-status {
    border-color: #bc4747;
    color: #c9c9c9;
    background: #2d1a1a;
    font-size: 13px;
}

button {
    padding: 8px 12px;
    cursor: pointer;
    background: #2d2d2d;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
}

button:hover {
    background: #3c3c3c;
    border-color: #555;
}

.controls-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    background: #252526;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #333;
}

#midi-file {
    display: none;
}

.file-label {
    padding: 8px 16px;
    background: #007acc;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: inline-block;
    transition: background 0.2s;
    user-select: none;
}

.file-label:hover {
    background: #0062a3;
}

.file-info {
    font-size: 13px;
    color: #aaa;
    margin-right: auto;
}

.main-app-container {
    flex: 1;
}

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

.app-header h1 {
    margin: 0;
    font-size: 24px;
    color: #007acc;
}

.app-header p {
    color: #888;
    font-size: 14px;
    margin-top: 5px;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.info-card {
    background: #252526;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #333;
}

.info-card h3 {
    margin-top: 0;
    font-size: 14px;
    color: #4caf50;
}

.info-card p {
    font-size: 12px;
    color: #888;
}

.status-bar {
    margin-top: 20px;
    min-height: 40px;
    font-family: sans-serif;
}

.conversion-timer {
    margin-top: 10px;
    font-size: 12px;
    color: #4caf50;
    text-align: right;
}

.language-switcher {
    text-align: center;
    margin-bottom: 20px;
}

.language-switcher a {
    font-size: 13px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    padding-bottom: 2px;
}

.language-switcher a:hover {
    color: #fff;
}

.language-switcher a:not(:last-child) {
    margin-right: 15px;
}

.language-switcher a.active {
    font-weight: bold;
    color: #007acc;
    border-bottom: 2px solid #007acc;
}

footer {
    margin-top: auto;
    text-align: center;
    font-size: 11px;
    color: #555;
    border-top: 1px solid #333;
    padding: 20px 0;
}