body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #2c3e50;
}

.container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.user-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

h2 {
    color: #3498db;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 0;
}

.stats {
    margin-bottom: 20px;
}

.stats p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.stats span {
    font-weight: bold;
}

.input-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="number"], input[type="date"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px 15px;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.chart-container {
    flex-grow: 1;
    position: relative;
    width: 100%;
}

.history-container {
    margin-top: 20px;
}

.history-list {
    list-style-type: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.history-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #ecf0f1;
}

.history-list li:last-child {
    border-bottom: none;
}

.history-list .entry-details {
    flex-grow: 1;
}

.history-list .actions button {
    margin-left: 5px;
    padding: 3px 8px;
    font-size: 0.8em;
}

.history-list .actions .edit-btn {
    background-color: #f39c12;
}

.history-list .actions .edit-btn:hover {
    background-color: #e67e22;
}

.history-list .actions .delete-btn {
    background-color: #e74c3c;
}

.history-list .actions .delete-btn:hover {
    background-color: #c0392b;
}

.history-list li .edit-date, .history-list li .edit-weight {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 120px;
}

.history-list li .edit-weight {
    width: 80px;
}

.history-list li button {
    margin-left: 5px;
}