body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    width: 85%;
    max-width: 960px;
    margin: 20px auto;
    padding: 25px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header {
    background-color: #4a90e2; /* A pleasant blue */
    color: #fff;
    padding: 1.2rem 0;
    text-align: center;
    margin-bottom: 25px;
    border-radius: 8px 8px 0 0;
}

header h1 {
    margin: 0;
    font-size: 2.2em;
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    padding: 10px 0;
    border-radius: 5px;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #337ab7; /* Bootstrap link blue */
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #337ab7;
    color: #fff;
}

h2 {
    color: #4a90e2;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

form div {
    margin-bottom: 15px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

form input[type="date"],
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Important for 100% width */
    font-size: 1em;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

form input[type="submit"] {
    background-color: #5cb85c; /* Green for save/submit */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: #4cae4c;
}

.status-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

.status-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.status-error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.summary-list {
    list-style-type: none;
    padding: 0;
}

.summary-list li {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-list li .date {
    font-weight: bold;
    font-size: 1.1em;
}

.summary-list li a.view-button {
    text-decoration: none;
    background-color: #4a90e2;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.summary-list li a.view-button:hover {
    background-color: #357ebd;
}

.entry-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 20px;
}

.entry-content h3 {
    color: #4a90e2;
    margin-top: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}
.entry-content h3:first-child {
    margin-top: 0;
}

.entry-content p {
    margin-bottom: 15px;
    white-space: pre-wrap; /* Respects newlines in textarea */
}

.meta-info {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #337ab7;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}