* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

#monthInput {
    font-size: 1.5em;
    padding: 5px 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.file-controls {
    display: flex;
    gap: 10px;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

main {
    display: flex;
    gap: 40px;
    flex-direction: row-reverse;
}

.habits-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.habit-wheel-container {
    flex: 1.2;
    position: sticky;
    top: 20px;
    height: fit-content;
}

#habitWheel {
    width: 100%;
    height: auto;
}

.habit-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.habit-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.habit-input input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.habit-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.week-boxes {
    display: flex;
    gap: 5px;
}

.week-box {
    width: 35px;
    height: 35px;
    border: 1px solid #ccc;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: white;
}

.week-box:hover {
    background-color: #e9ecef;
}

.week-box.checked {
    background-color: #007bff;
    color: white;
}

.week-box.checked .week-number {
    color: white;
}

.wheel-segment {
    cursor: pointer;
    fill: #f0f0f0;
    stroke: #ccc;
    stroke-width: 1;
    transition: fill 0.2s ease;
    opacity: 1;
}

.wheel-segment:hover {
    opacity: 1;
    fill: #f8f8f8;
}

.wheel-segment.completed {
    opacity: 1;
    fill-opacity: 1;
}

.habit-label {
    margin: 5px 0;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

.habit-item {
    padding: 12px;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease;
}

.habit-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.habit-checkbox {
    flex: 1;
}

.date-label {
    font-size: 12px;
    fill: #666;
    pointer-events: none;
    font-family: Arial, sans-serif;
}

.week-number {
    font-size: 14px;
    color: #495057;
    pointer-events: none;
}

.delete-habit {
    background-color: transparent;
    color: #dc3545;
    padding: 0 8px;
    font-size: 20px;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.delete-habit:hover {
    background-color: transparent;
    color: #bd2130;
}

.habit-wheel-label {
    font-size: 14px;
    font-weight: 500;
    font-family: Arial, sans-serif;
}

.habit-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-text {
    font-size: 14px;
    color: #333;
}

.connecting-line {
    opacity: 0.7;
}

.habit-ring {
    isolation: isolate;
}

.monthly-summary {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.monthly-summary h3 {
    margin-bottom: 10px;
    color: #333;
}

.summary-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.summary-label {
    flex: 1;
    font-weight: 500;
}

.summary-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
}

.progress-bar {
    width: 120px;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    min-width: 80px;
    text-align: right;
    font-size: 14px;
    color: #666;
}

.summary-item .delete-habit {
    padding: 0 8px;
    font-size: 18px;
    color: #dc3545;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.summary-item .delete-habit:hover {
    color: #bd2130;
}

.add-habit {
    padding: 8px 20px;
    font-size: 1.2rem;
    line-height: 1;
}

h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.5rem;
} 