* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.header {
    background: linear-gradient(135deg, #1A4D3E 0%, #0F3A2E 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-email {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-email-icon {
    font-size: 1rem;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.header-btn.logout-btn {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.3);
    color: #ffcdd2;
}

.header-btn.logout-btn:hover {
    background: rgba(244, 67, 54, 0.25);
    border-color: rgba(244, 67, 54, 0.5);
}

.header-btn span:first-child {
    font-size: 1.1rem;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.user-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

.countdown-section {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.verification-banner {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    display: none;
}

.verification-banner.show {
    display: block;
}

.verification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.verification-icon {
    font-size: 1.5rem;
}

.verification-text {
    font-size: 1rem;
    font-weight: 600;
}

.verification-btn {
    padding: 8px 20px;
    background: white;
    color: #F57C00;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.verification-btn:hover {
    background: #FFF3E0;
    transform: translateX(4px);
}

.verification-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.countdown-container {
    max-width: 1200px;
    margin: 0 auto;
}

.overdue-banner {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overdue-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.overdue-icon {
    font-size: 1.5rem;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.overdue-text {
    font-size: 1rem;
    font-weight: 600;
}

.overdue-btn {
    padding: 8px 20px;
    background: white;
    color: #d32f2f;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.overdue-btn:hover {
    background: #ffebee;
    transform: translateX(4px);
}

.countdown-number {
    font-size: 4rem;
    font-weight: 900;
    color: #1A4D3E;
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-label {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.separation-date {
    font-size: 0.95rem;
    color: #888;
}

.progress-section {
    background: white;
    padding: 25px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.progress-container {
    max-width: 1200px;
    margin: 0 auto;
}

.progress-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.progress-bar-container {
    background: #e0e0e0;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    flex: 1;
}

.filter-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-tab.active {
    background: #1A4D3E;
    color: white;
    border-color: #1A4D3E;
}

.filter-tab:hover {
    border-color: #1A4D3E;
}

.btn-add-task {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-add-task:hover {
    background: #66BB6A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.add-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
    cursor: pointer;
    border-left: 4px solid #e0e0e0;
}

.task-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.task-card.urgent {
    border-left-color: #f44336;
}

.task-card.coming-up {
    border-left-color: #FF9800;
}

.task-card.on-track {
    border-left-color: #4CAF50;
}

.task-card.completed {
    opacity: 0.6;
}

.task-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
}

.task-checkbox:hover {
    border-color: #4CAF50;
}

.task-checkbox.checked {
    background: #4CAF50;
    border-color: #4CAF50;
    position: relative;
}

.task-checkbox.checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-indicator {
    font-size: 0.9rem;
    opacity: 0.7;
}

.task-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #666;
}

.task-category {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
}

.task-note-preview {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f8f8;
    border-left: 3px solid #4CAF50;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

.urgency-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

.urgency-badge.urgent {
    background: #ffebee;
    color: #c62828;
}

.urgency-badge.coming-up {
    background: #fff3e0;
    color: #e65100;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.modal-section-content {
    color: #333;
    line-height: 1.6;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.notes-textarea {
    width: 100%;
    min-height: 250px;
    padding: 14px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.2s;
}

.notes-textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.notes-textarea::placeholder {
    color: #aaa;
}

.resource-link {
    display: block;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #1A4D3E;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.2s;
    font-weight: 500;
}

.resource-link:hover {
    background: #e8f5e9;
    transform: translateX(4px);
}

.modal-actions {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #66BB6A;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-warning {
    background: #FF9800;
    color: white;
}

.btn-warning:hover {
    background: #FFA726;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #e53935;
}

/* Form styles for add/edit modal */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .countdown-number {
        font-size: 3rem;
    }

    .controls-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        gap: 8px;
        padding-bottom: 0;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .btn-add-task {
        width: 100%;
        justify-content: center;
    }

    .task-card {
        padding: 15px;
    }
    
    .notes-textarea {
        min-height: 200px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .user-email {
        width: 100%;
        order: -1;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .header-btn .btn-text {
        display: none;
    }
    
    .header-btn {
        padding: 8px 12px;
    }
    
    .milestone-content {
        padding: 40px 30px;
    }
    
    .milestone-icon {
        font-size: 4rem;
    }
    
    .milestone-title {
        font-size: 1.8rem;
    }
    
    .overdue-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .overdue-text {
        font-size: 0.95rem;
    }
    
    .overdue-btn {
        width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Milestone Modal Styles */
.milestone-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.milestone-modal.active {
    opacity: 1;
}

.milestone-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.milestone-modal.active .milestone-content {
    transform: scale(1);
    animation: celebrate 0.6s ease;
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.milestone-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.milestone-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 15px;
}

.milestone-message {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.milestone-btn {
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.milestone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}