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

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --success: #10b981;
    --warning: #f59e0b;
    --muted: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --dark: #1f2937;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light);
    min-height: 100vh;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.move-info {
    text-align: right;
}

.move-date {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.days-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

/* Progress Section */
.progress-section {
    background: var(--white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

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

.progress-header h2 {
    font-size: 16px;
    color: var(--dark);
}

.progress-text {
    font-size: 14px;
    color: var(--muted);
}

.progress-bar {
    height: 10px;
    background: var(--light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #34d399);
    border-radius: 5px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

/* Content */
.content {
    padding: 20px;
    padding-bottom: 80px;
}

.hidden {
    display: none;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.pill:hover {
    border-color: var(--primary);
}

.pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Categories */
.category {
    margin-bottom: 24px;
}

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

.category-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-count {
    font-size: 12px;
    color: var(--muted);
    background: var(--light);
    padding: 2px 8px;
    border-radius: 10px;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Service Item */
.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: 10px;
    transition: all 0.2s;
}

.service-item:hover {
    background: #e5e7eb;
}

.service-item.done {
    opacity: 0.6;
}

.service-item.done .service-name {
    text-decoration: line-through;
}

.service-item.skipped {
    opacity: 0.5;
}

.service-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.service-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.service-checkbox.skipped {
    background: var(--muted);
    border-color: var(--muted);
    color: var(--white);
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.service-status {
    font-size: 11px;
    color: var(--muted);
}

.service-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--white);
}

.action-btn.link-btn:hover {
    background: var(--primary);
}

.action-btn.skip-btn:hover {
    background: var(--muted);
}

/* Add Custom Button */
.add-custom-btn {
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--border);
    border-radius: 10px;
    background: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-custom-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.add-custom-btn span {
    font-size: 20px;
    font-weight: 700;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--light);
    border: 3px solid var(--border);
}

.timeline-item.completed .timeline-marker {
    background: var(--success);
    border-color: var(--success);
}

.timeline-item.current .timeline-marker {
    background: var(--primary);
    border-color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
}

.timeline-item.upcoming .timeline-marker {
    background: var(--white);
    border-color: var(--border);
}

.timeline-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
}

.timeline-item.current .timeline-date {
    color: var(--primary);
}

.timeline-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.timeline-tasks {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
}

.modal h3 {
    margin-bottom: 16px;
    color: var(--dark);
}

.modal input,
.modal select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.modal input:focus,
.modal select:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

.empty-state .emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .app {
        box-shadow: none;
    }
}
