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;
    margin: 0;
    padding: 80px 20px 20px 20px; /* Updated padding to account for fixed nav */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.table-header {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-range {
    font-size: 16px;
    color: #666;
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.habit-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.habit-table th,
.habit-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.habit-table th {
    background-color: #f9f9f9;
    font-weight: 500;
    position: sticky;
    top: 0;
}

.date-column {
    text-align: left;
    min-width: 120px;
}

.date-cell {
    text-align: left;
    color: #666;
}

.habit-cell {
    position: relative;
}

.habit-cell input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.habit-cell input[type="checkbox"]:checked {
    background-color: #2eaadc;
    border-color: #2eaadc;
}

.habit-cell input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Enhanced styling for inactive habits */
.habit-cell input[type="checkbox"].inactive-habit {
    background-color: #e0e0e0;
    border-color: #bbb;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Inactive habits should always appear filled/grayed out, regardless of checked state */
.habit-cell input[type="checkbox"].inactive-habit:checked {
    background-color: #e0e0e0;
    border-color: #bbb;
}

/* Remove any content for inactive habits to avoid confusion */
.habit-cell input[type="checkbox"].inactive-habit:checked::after {
    content: '';
}

tr:hover {
    background-color: #f9f9f9;
}

.date-picker-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-picker-container label {
    font-size: 14px;
    font-weight: 500;
}

.date-picker-container input,
.date-picker-container button {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.date-picker-container button {
    background-color: #2eaadc;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.date-picker-container button:hover {
    background-color: #1d8bb8;
}