body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f7;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    color: #1d1d1f;
    margin-bottom: 40px;
}

.harmonica-chart {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

/* Table cell styling */
th, td {
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

th {
    color: #1d1d1f;
}

/* First column styling */
tr td:first-child {
    color: #1d1d1f;
    width: 60px;
}

/* Note box styling */
.note-box {
    width: 40px;
    height: 40px;
    border: 2px solid #007AFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #007AFF;
    transition: all 0.3s ease;
    margin: 0 auto;
    background-color: white;
}

.note-box.active {
    background-color: #34C759;
    border-color: #34C759;
    color: white;
    transform: scale(1.1);
}

/* Recording and upload controls */
.controls {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.control-button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-button:hover {
    background-color: #45a049;
}

.control-button.recording {
    background-color: #f44336;
}

/* Playback controls and status messages */
.status-message {
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
    height: 20px;
}

.playback-controls {
    margin: 20px auto;
    max-width: 400px;
    text-align: center;
}

.progress-container {
    margin: 10px 0;
    padding: 5px 0;
    width: 100%;
    position: relative;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.1s linear;
    position: absolute;
    pointer-events: none;
}

.seek-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 var(--seek-percent, 0%), #ddd var(--seek-percent, 0%));
    outline: none;
    margin: 0;
    padding: 0;
}

/* Slider thumb styles */
.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    transition: all .15s ease-in-out;
    border: none;
    margin-top: -5px; /* Center the thumb */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.seek-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    transition: all .15s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Hover state */
.seek-slider::-webkit-slider-thumb:hover {
    background: #45a049;
    transform: scale(1.1);
}

.seek-slider::-moz-range-thumb:hover {
    background: #45a049;
    transform: scale(1.1);
}

/* Track styles */
.seek-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

.seek-slider::-moz-range-track {
    width: 100%;
    height: 5px;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

/* Focus styles */
.seek-slider:focus {
    outline: none;
}

.seek-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
}

.seek-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
}

.time-display {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    display: inline-block;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .harmonica-chart {
        padding: 10px;
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    th, td {
        padding: 5px;
        font-size: 14px;
    }

    .note-box {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}