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;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Чтобы контент был сверху, если он длинный */
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

h1, h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.add-habit-form {
    display: flex;
    margin-bottom: 25px;
    gap: 10px;
}

#habit-name-input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#habit-name-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#add-habit-btn, .delete-habit-btn {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease-in-out;
}

#add-habit-btn:hover {
    background-color: #0056b3;
}

.delete-habit-btn {
    background-color: #dc3545;
    margin-left: 10px;
}

.delete-habit-btn:hover {
    background-color: #c82333;
}

#habits-list {
    list-style: none;
    padding: 0;
}

.habit-item {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.habit-item.completed-today {
    background-color: #e6ffed; /* Светло-зеленый для выполненных */
    border-left: 5px solid #28a745;
}

.habit-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.habit-name {
    font-size: 1.1rem;
    margin-right: 15px;
}

.habit-streak {
    font-size: 0.9rem;
    color: #555;
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: auto; /* Отодвигает стрик вправо */
    margin-right: 15px; /* Отступ перед кнопками */
}

.habit-item input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #007bff; /* Цвет галочки */
}

/* Для более кастомного чекбокса, если стандартный не нравится */
/*
.habit-item .custom-checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 3px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
}
.habit-item .custom-checkbox.checked::after {
    content: '✔';
    color: #007bff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}
*/