body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #37352f;
    background-color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 20px 20px; /* Updated padding to account for fixed nav */
}

.date-header {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.date-tooltip {
    visibility: hidden;
    background-color: #37352f;
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 16px;
}

.date-header:hover .date-tooltip {
    visibility: visible;
    opacity: 1;
}

.habit-form {
    max-width: 500px;
    width: 100%; /* Ensure it doesn't overflow parent */
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-sizing: border-box; /* Add this */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    width: 100%; /* Add this */
    box-sizing: border-box; /* Add this */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #37352f;
}

.habit-input {
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    padding: 12px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Add this */
}

.habit-input:focus {
    outline: none;
    border-color: #2eaadc;
}

.habit-input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.habit-button {
    width: 100%;
    padding: 12px;
    background-color: #2eaadc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.habit-button:hover {
    background-color: #2699c7;
}

.habit-button:active {
    transform: translateY(1px);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}