* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

header h1 {
    color: #333;
    margin-bottom: 10px;
}

.habit-form {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.habit-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.habit-form button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.habit-form button:hover {
    background-color: #45a049;
}

h2 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.habit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid #4CAF50;
}

.habit-name {
    flex: 1;
    font-size: 16px;
}

.habit-actions {
    display: flex;
    gap: 10px;
}

.habit-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: color 0.3s;
}

.habit-actions .delete-btn:hover {
    color: #f44336;
}

.habit-actions .edit-btn:hover {
    color: #2196F3;
}

.habit-actions .check-btn {
    color: #ccc;
}

.habit-actions .check-btn.completed {
    color: #4CAF50;
}

.week-view {
    margin-top: 30px;
}

#week-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.week-habit {
    display: flex;
    align-items: center;
}

.habit-label {
    width: 150px;
    font-weight: bold;
}

.day-checks {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.day-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.day-check.completed {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.stats {
    margin-top: 30px;
}

#stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 15px 0;
}

.stat-item p:first-child {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-item p:last-child {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}