body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

h1 {
    color: #0056b3;
}

h2 {
    color: #007bff;
    text-align: center;
}

h3 {
    color: #343a40;
}

.view {
    display: block;
}

form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#project-list {
    list-style-type: none;
    padding: 0;
}

#project-list li {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#project-list a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.back-button {
    background: none;
    color: #007bff;
    padding: 5px;
    font-size: 24px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background-color: #28a745;
    transition: width 0.3s;
}

#progress-text {
    text-align: center;
    font-size: 0.9em;
    color: #555;
}

.card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

#text-to-read {
    font-size: 1.3em;
    line-height: 1.6;
    min-height: 80px;
}

#filename-display {
    text-align: right;
    color: #6c757d;
    margin-top: 15px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.controls button {
    min-width: 150px;
}

#audio-player {
    width: 100%;
    margin-top: 20px;
}

#status-message {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    min-height: 25px;
}

#complete-view {
    text-align: center;
}

#complete-view h2 {
    color: #28a745;
}