* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Time Section */
.time-section {
    text-align: center;
    margin-bottom: 1rem;
}

.time {
    font-size: 5rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    color: #171717;
}

.date {
    color: #737373;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e5e5;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #737373;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.icon {
    width: 0.75rem;
    height: 0.75rem;
    stroke-width: 2;
}

.stat-value {
    font-size: 2rem;
    font-weight: 200;
    color: #171717;
}

.stat-subtitle {
    font-size: 0.75rem;
    color: #737373;
    margin-top: 0.25rem;
}

/* Chart Card */
.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e5e5;
}

.chart-label {
    font-size: 0.75rem;
    color: #737373;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    height: 8rem;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bar-wrapper {
    width: 100%;
    height: 100px;
    background: #f5f5f5;
    border-radius: 0.125rem;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.bar-fill {
    width: 100%;
    background: #171717;
    transition: height 0.3s ease;
}

.bar-day {
    font-size: 0.75rem;
    color: #737373;
}

.bar-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #171717;
}

/* Tasks Card */
.tasks-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e5e5;
}

.tasks-label {
    font-size: 0.75rem;
    color: #737373;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.task-input-container {
    margin-bottom: 1.5rem;
}

.task-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.task-input:focus {
    border-color: #a3a3a3;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #a3a3a3;
    font-size: 0.875rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.task-item:hover {
    background-color: #fafafa;
}

.task-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d4d4d4;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.task-checkbox:hover {
    border-color: #a3a3a3;
}

.task-checkbox.checked {
    background: #171717;
    border-color: #171717;
}

.task-checkbox svg {
    width: 0.75rem;
    height: 0.75rem;
    stroke: white;
    stroke-width: 3;
    display: none;
}

.task-checkbox.checked svg {
    display: block;
}

.task-text {
    flex: 1;
    font-size: 0.875rem;
    color: #171717;
}

.task-text.completed {
    text-decoration: line-through;
    color: #a3a3a3;
}

.task-delete {
    color: #a3a3a3;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}

.task-item:hover .task-delete {
    opacity: 1;
}

.task-delete:hover {
    color: #737373;
}

.task-delete svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.75rem;
    color: #a3a3a3;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .time {
        font-size: 3rem;
    }

    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 1.5rem;
    }
}