body {
    font-family: "Segoe UI", sans-serif;
    background-color: #f2f2f2;
    color: #333;
    padding: 30px;
    max-width: 900px;
    margin: auto;
}

h1, h2 {
    color: #2c3e50;
    text-align: center;
}

label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

.input-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.input-row label {
    margin-top: 0;
    white-space: nowrap;
}

.input-row input {
    flex: 1;
    min-width: 100px;
    padding: 8px;
    box-sizing: border-box;
}

button {
    margin: 10px 5px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

.update-button {
    background-color: #2ecc71;
}

.update-button:hover {
    background-color: #27ae60;
}

.reset-button {
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
}

.reset-button:hover {
    background-color: darkred;
}

#submitMessage {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.result-box {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.result-box.missing {
    background-color: #ddd;
    color: #999;
}

.bar-container {
    background-color: #ddd;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.bar {
    height: 100%;
    transition: width 0.3s;
}

.average-display {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.message-list div {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 5px;
}

.toggle-row {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
