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

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    padding: 20px;
}

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

header {
    margin-bottom: 24px;
}

.date-navigation-footer {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 24px;
    border-top: 1px solid #2a2a2a;
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.date-nav-btn {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #4a9eff;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-nav-btn:hover {
    background-color: #2a2a2a;
    border-color: #4a9eff;
}

.date-nav-btn:active {
    background-color: #0a0a0a;
}

.today-btn {
    background-color: #4a9eff;
    border: 1px solid #4a9eff;
    color: #ffffff;
    font-size: 0.875rem;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.today-btn:hover {
    background-color: #3a8eef;
    border-color: #3a8eef;
}

.today-btn:active {
    background-color: #2a7edf;
    border-color: #2a7edf;
}

.progress-container {
    margin-bottom: 32px;
}

.progress-bar-wrapper {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a9eff;
    letter-spacing: 0.5px;
}

.progress-percentage {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.progress-bar-bg {
    background-color: #0a0a0a;
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #4a9eff 0%, #3a8eef 100%);
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 0%;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.date-subtitle {
    color: #888;
    font-size: 1rem;
}

.task-section,
.notes-section,
.additional-tasks-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a9eff;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-count {
    background-color: #1a1a1a;
    color: #888;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 12px;
    transition: all 0.3s ease;
}

.task-card:hover {
    background-color: #222;
}

.task-card.completed {
    background-color: #121212;
    border-color: #1a1a1a;
}

.task-card.completed .task-name {
    color: #666;
    text-decoration: line-through;
}

.task-card.completed .task-details {
    color: #555;
}

.task-card.completed .task-checkbox {
    border-color: #333;
}

.task-card.na {
    background-color: #1a1508;
    border-color: #2a2010;
}

.task-card.na .task-name {
    color: #9a8456;
    font-style: italic;
}

.task-card.na .task-details {
    color: #6a6440;
}

.task-card.na .task-checkbox {
    border-color: #4a4020;
}

.na-badge {
    background-color: #f59e0b;
    color: #000;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #444;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.task-checkbox:checked {
    background-color: #4a9eff;
    border-color: #4a9eff;
}

.task-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: -2px;
    left: 3px;
}

.task-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.btn-na {
    background-color: transparent;
    border: 1px solid #4a4020;
    color: #9a8456;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
}

.btn-na:hover {
    background-color: #2a2010;
    border-color: #6a6040;
    color: #f59e0b;
}

.btn-na.active {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #000;
    font-weight: 600;
}

.task-content {
    flex: 1;
    cursor: pointer;
    user-select: none;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-name {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.3s ease;
    flex: 1;
}

.expand-arrow {
    color: #666;
    font-size: 0.875rem;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.task-content:hover .expand-arrow {
    color: #4a9eff;
}

.task-content.expanded .expand-arrow {
    transform: rotate(90deg);
}

.task-details {
    font-size: 0.875rem;
    color: #888;
    line-height: 1.5;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.task-details.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
}

.notes-container,
.additional-tasks-container {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
}

.input-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

textarea,
input[type="text"] {
    flex: 1;
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 12px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
}

textarea::placeholder,
input[type="text"]::placeholder {
    color: #555;
}

textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #4a9eff;
}

.btn-primary {
    background-color: #4a9eff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #3a8eef;
}

.btn-primary:active {
    background-color: #2a7edf;
}

.note-item,
.additional-task-item {
    padding: 12px;
    margin-bottom: 12px;
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.note-item:last-of-type,
.additional-task-item:last-of-type {
    margin-bottom: 12px;
}

.note-text {
    flex: 1;
    word-wrap: break-word;
}

.btn-delete {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    transition: color 0.2s;
}

.btn-delete:hover {
    color: #ff4a4a;
}

.additional-task-item {
    display: flex;
    gap: 12px;
    transition: all 0.3s ease;
}

.additional-task-item.completed {
    background-color: #050505;
    border-color: #1a1a1a;
}

.additional-task-item.completed .task-name {
    color: #666;
    text-decoration: line-through;
}

.additional-task-item.completed .task-checkbox {
    border-color: #333;
}

.additional-task-content {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: center;
}

#weeklySection:empty,
#monthlySection:empty {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}
