body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #35424a;
    color: #ffffff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

main {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#log-run-section, #runs-history-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

h2 {
    color: #35424a;
    margin-top: 0;
    border-bottom: 2px solid #35424a;
    padding-bottom: 10px;
}

#run-form div {
    margin-bottom: 15px;
}

#run-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#run-form input[type="date"],
#run-form input[type="number"],
#run-form textarea,
#filter-controls select {
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

#run-form textarea {
    resize: vertical;
}

#run-form button[type="submit"] {
    display: inline-block;
    background: #35424a;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

#run-form button[type="submit"]:hover {
    background: #576a75;
}

#filter-controls {
    margin-bottom: 15px;
}

#filter-controls label {
    margin-right: 10px;
    font-weight: bold;
}

.run-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.run-item-details {
    flex-grow: 1;
}

.run-item p {
    margin: 5px 0;
}

.run-item strong {
    color: #35424a;
}

.run-item-actions {
    margin-left: 10px; /* Space between details and button */
    margin-top: 5px; /* Align button better if details wrap */
}

.run-item .delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.run-item .delete-btn:hover {
    background: #c0392b;
}

#runs-list p:first-child {
    text-align: center;
    font-style: italic;
    color: #777;
}

footer {
    text-align: center;
    padding: 20px;
    background: #35424a;
    color: #fff;
    margin-top: 30px;
}