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

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #555;
    background: #faf8fa;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Nav — Gradient, thick, bold */
.nav {
    background: linear-gradient(135deg, #6a1b9a, #e91e63);
    padding: 0 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.15);
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover { color: #fff; }

.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

/* Main */
.main {
    flex: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    width: 100%;
}

/* Hero (homepage) */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #6a1b9a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1rem;
    color: #999;
    max-width: 420px;
    margin: 0 auto;
    font-weight: 300;
}

/* Cards (homepage) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.card {
    background: #fff;
    border: 1px solid #f0eaf0;
    border-left: 3px solid #e91e63;
    border-radius: 0 14px 14px 0;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s, border-left-color 0.25s;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.07);
    transform: translateY(-3px);
    border-left-color: #6a1b9a;
}

.card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }

.card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #6a1b9a;
    margin-bottom: 0.4rem;
}

.card p {
    font-size: 0.9rem;
    color: #888;
    font-weight: 300;
}

/* Page header — Gradient hero */
.page-header {
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f3e5f5, #fce4ec);
    border-radius: 14px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #6a1b9a;
    letter-spacing: -0.3px;
}

.page-header p {
    color: #888;
    margin-top: 0.3rem;
    font-weight: 300;
    font-size: 0.95rem;
}

.back-link {
    display: inline-block;
    color: #9c27b0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover { color: #e91e63; }

/* Sub-nav / Tabs */
.sub-nav {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid #f3e5f5;
    margin-bottom: 2rem;
}

.sub-nav a {
    text-decoration: none;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.sub-nav a:hover {
    color: #e91e63;
}

.sub-nav a.active {
    color: #e91e63;
    border-bottom-color: #e91e63;
}

/* Content sections */
.section {
    background: #fff;
    border: 1px solid #f0eaf0;
    border-left: 3px solid #e91e63;
    border-radius: 0 14px 14px 0;
    padding: 2rem;
    margin-bottom: 1.25rem;
    transition: border-left-color 0.2s;
}

.section:hover {
    border-left-color: #6a1b9a;
}

.section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #6a1b9a;
    margin-bottom: 0.5rem;
}

.section p, .section ul {
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
    line-height: 1.8;
}

.section ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.section li { margin-bottom: 0.35rem; }

.section a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
}

.section a:hover { text-decoration: underline; }

/* Tags / Badges */
.tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.tag-green { background: #e8f5e9; color: #4caf50; }
.tag-orange { background: #fff3e0; color: #ff9800; }
.tag-pink { background: #fce4ec; color: #e91e63; }
.tag-purple { background: #f3e5f5; color: #9c27b0; }
.tag-blue { background: #e3f2fd; color: #2196f3; }

/* Empty state */
.empty {
    text-align: center;
    padding: 5rem 2rem;
    color: #bbb;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #e0d5e5;
}

.empty p {
    font-size: 1rem;
    font-weight: 300;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem;
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 300;
    background: #fff;
    border-top: 1px solid #f3e5f5;
}

/* Dashboard (Home page) */
.dashboard-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.dashboard-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #6a1b9a;
    margin-bottom: 0.5rem;
}
.dashboard-summary {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.dashboard-hint {
    color: #bbb;
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.dashboard-table-wrap {
    overflow-x: auto;
}
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0eaf0;
}
.dashboard-table th {
    background: linear-gradient(135deg, #6a1b9a, #e91e63);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
}
.dashboard-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f0eaf0;
    font-size: 0.9rem;
    vertical-align: middle;
}
.dashboard-table tr:last-child td { border-bottom: none; }
.dashboard-table tr:hover { background: #fdf8fd; }
.dashboard-table tr.row-done { opacity: 0.5; }
.dashboard-table .task-text-cell { max-width: 300px; }
.dashboard-table .due-overdue { color: #e91e63; font-weight: 600; }

/* Company badge */
.company-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f3e5f5;
    color: #6a1b9a;
}
.company-badge.company-personal { background: #fce4ec; color: #e91e63; }
.company-badge.company-peaceful-pathway { background: #e8f5e9; color: #2e7d32; }
.company-badge.company-creditors-relief { background: #fff3e0; color: #e65100; }
.company-badge.company-peaceful-way { background: #e3f2fd; color: #1565c0; }
.company-badge.company-corporate-financial-relief { background: #f3e5f5; color: #6a1b9a; }
.company-badge.company-premier-pro { background: #fce4ec; color: #c62828; }
.company-badge.company-life-support { background: #e0f2f1; color: #00695c; }

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pending { background: #fff3e0; color: #e65100; }
.status-overdue { background: #fce4ec; color: #c62828; }
.status-done { background: #e8f5e9; color: #2e7d32; }

/* Company tasks section */
.tasks-section {
    margin-bottom: 3rem;
}
.tasks-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #6a1b9a;
    margin-bottom: 1rem;
}
.task-list { list-style: none; }
.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #f0eaf0;
    border-left: 3px solid #e91e63;
    border-radius: 0 10px 10px 0;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}
.task-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #e91e63;
    cursor: pointer;
    flex-shrink: 0;
}
.task-text {
    flex: 1;
    font-size: 0.95rem;
    color: #555;
}
.task-due {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}
.task-due.overdue { color: #e91e63; font-weight: 600; }

/* Completed tasks toggle */
.completed-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: #faf8fa;
    border: 1px solid #f0eaf0;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    font-size: 0.95rem;
    color: #888;
}
.completed-toggle:hover { background: #f5f0f5; }
.completed-toggle .arrow {
    transition: transform 0.2s;
    font-size: 0.7rem;
}
.completed-toggle.open .arrow { transform: rotate(90deg); }
.completed-list { list-style: none; margin-top: 0.5rem; display: none; }
.completed-list.show { display: block; }
.task-item-done {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: #fff;
    border: 1px solid #f0eaf0;
    border-left: 3px solid #ccc;
    border-radius: 0 10px 10px 0;
    margin-bottom: 0.4rem;
    opacity: 0.6;
}
.task-item-done .task-text {
    text-decoration: line-through;
    color: #aaa;
    flex: 1;
    font-size: 0.9rem;
}
.task-done-date {
    font-size: 0.75rem;
    color: #bbb;
    white-space: nowrap;
}

/* Dismiss button */
.task-dismiss,
.task-dismiss-dashboard {
    width: 28px;
    height: 28px;
    border: none;
    background: #fce4ec;
    color: #e91e63;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.task-dismiss:hover,
.task-dismiss-dashboard:hover {
    background: #e91e63;
    color: #fff;
}

/* Undo button (uncomplete / undismiss) */
.task-undo {
    width: 28px;
    height: 28px;
    border: none;
    background: #e8f5e9;
    color: #4caf50;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-right: 8px;
}
.task-undo:hover {
    background: #4caf50;
    color: #fff;
}

/* Task link */
.task-link {
    color: #e91e63;
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.task-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Task notes */
.task-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.task-notes-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff3e0;
    color: #ff9800;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.task-notes-btn:hover {
    background: #ff9800;
    color: #fff;
}
.task-notes {
    margin-top: 0.5rem;
    padding-left: 2rem;
}
.task-notes-input {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    border: 1px solid #f0eaf0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    background: #faf8fa;
    transition: border-color 0.2s;
}
.task-notes-input:focus {
    outline: none;
    border-color: #e91e63;
}
.task-notes-preview {
    font-size: 0.78rem;
    color: #999;
    margin-top: 0.25rem;
    font-style: italic;
    white-space: pre-wrap;
}

/* Dismissed tasks */
.task-item-dismissed {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: #fff;
    border: 1px solid #f0eaf0;
    border-left: 3px solid #ccc;
    border-radius: 0 10px 10px 0;
    margin-bottom: 0.4rem;
    opacity: 0.5;
}
.task-item-dismissed .task-text {
    text-decoration: line-through;
    color: #aaa;
    flex: 1;
    font-size: 0.9rem;
}
.task-dismissed-date {
    font-size: 0.75rem;
    color: #bbb;
    white-space: nowrap;
}

/* Dashboard dismiss button in table */
.task-dismiss-dashboard {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 640px) {
    .nav { padding: 0 2rem; height: 54px; }
    .nav-links { gap: 1.5rem; }
    .nav-links a { font-size: 0.88rem; }
    .hero h1 { font-size: 2rem; }
    .main { padding: 1rem 1rem 3rem; }
    .page-header { padding: 2rem 1.5rem 1.5rem; }
}
