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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

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

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.header h1 {
    color: #333;
    font-size: 24px;
}

.sync-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.sync-status.connecting {
    background: #d6eaff;
    color: #0078d4;
}

.sync-status.authorized {
    background: #d4edda;
    color: #155724;
}

.sync-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.last-sync-time {
    font-size: 11px;
    color: #999;
}

.sync-status.local {
    background: #e9ecef;
    color: #666;
}

.sync-status.offline {
    background: #ffeaa7;
    color: #856404;
}

.sync-status.syncing {
    background: #d6eaff;
    color: #0078d4;
}

.sync-status.synced {
    background: #d4edda;
    color: #155724;
}

.sync-status.error {
    background: #f8d7da;
    color: #721c24;
}

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

.input-section input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.input-section select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.input-section button {
    padding: 10px 20px;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.input-section button:hover {
    background: #106ebe;
}

.task-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.task-stats strong {
    color: #333;
}

.task-list {
    list-style: none;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #999;
}

.task-checkbox {
    width: 18px;
    height: 18px;
}

.task-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.task-priority {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.priority-high {
    background: #fee;
    color: #c00;
}

.priority-medium {
    background: #ffeaa7;
    color: #856404;
}

.priority-low {
    background: #d4edda;
    color: #155724;
}

.task-delete {
    padding: 5px 10px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.task-delete:hover {
    background: #fee;
    border-color: #c00;
    color: #c00;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.actions button {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #666;
}

.actions button:hover {
    background: #f0f0f0;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}