/* ========== TASK LIST ========== */
.task-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; transition: all 0.2s; }
.task-item:hover { border-color: var(--border-light); }
.task-item.done { opacity: 0.5; }
.task-item.done .task-title-text { text-decoration: line-through; }
.task-check { width: 22px; height: 22px; border: 2px solid var(--border-light); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; margin-top: 2px; background: transparent; color: transparent; font-size: 0.75rem; }
.task-check:hover { border-color: var(--green); }
.task-check.checked { background: var(--green); border-color: var(--green); color: #000; }
.task-body { flex: 1; min-width: 0; }
.task-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-title-text { font-size: 0.95rem; font-weight: 500; }
.task-priority { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.task-priority.high { background: var(--red-soft); color: var(--red); }
.task-priority.medium { background: var(--yellow-soft); color: var(--yellow); }
.task-priority.low { background: var(--green-soft); color: var(--green); }
.task-priority.love { background: var(--pink-soft); color: var(--pink); }
.task-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.task-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 0.75rem; color: var(--text-dim); }
.task-meta span { display: flex; align-items: center; gap: 4px; }
.task-delete { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.9rem; padding: 4px; opacity: 0; transition: all 0.2s; }
.task-item:hover .task-delete { opacity: 1; }
.task-delete:hover { color: var(--red); }

/* ========== FINANCES ========== */
.finance-overview { margin-bottom: 20px; }
.balance-card { background: linear-gradient(135deg, rgba(155,109,255,0.08), rgba(96,165,250,0.08)); border: 1px solid rgba(155,109,255,0.15); border-radius: var(--radius); padding: 24px; }
.balance-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.balance-header h3 { font-size: 1.1rem; font-weight: 500; }
.balance-period { font-size: 0.8rem; color: var(--text-dim); background: var(--bg-input); padding: 4px 12px; border-radius: 12px; }
.balance-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.balance-name { color: var(--text-muted); }
.balance-amount { font-weight: 600; }
.balance-divider { height: 1px; background: var(--border); margin: 8px 0; }
.settlement .balance-name { font-weight: 500; }
.category-bar-item { margin-bottom: 12px; }
.category-bar-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 4px; }
.category-bar-label span:last-child { color: var(--text-muted); }
.category-bar-track { height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.category-bar-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.5s ease; }
.expense-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.expense-item:last-child { border-bottom: none; }
.expense-info { display: flex; align-items: center; gap: 12px; }
.expense-cat-icon { font-size: 1.3rem; }
.expense-title { font-size: 0.9rem; font-weight: 500; }
.expense-detail { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.expense-amount-col { text-align: right; }
.expense-amount { font-size: 1rem; font-weight: 600; }
.expense-payer { font-size: 0.7rem; color: var(--text-dim); margin-top: 2px; }
.expense-delete { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.8rem; margin-left: 8px; opacity: 0; transition: opacity 0.2s; }
.expense-item:hover .expense-delete { opacity: 1; }
.expense-delete:hover { color: var(--red); }

/* ========== TRIPS ========== */
.trip-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; position: relative; transition: all 0.2s; }
.trip-card:hover { border-color: var(--border-light); }
.trip-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.trip-dest { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.trip-status-badge { font-size: 0.75rem; padding: 4px 12px; border-radius: 12px; font-weight: 500; }
.trip-status-badge.dreaming { background: var(--accent-soft); color: var(--accent); }
.trip-status-badge.planning { background: var(--yellow-soft); color: var(--yellow); }
.trip-status-badge.booked { background: var(--green-soft); color: var(--green); }
.trip-details { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.85rem; color: var(--text-muted); }
.trip-details span { display: flex; align-items: center; gap: 4px; }
.trip-notes { font-size: 0.85rem; color: var(--text-muted); background: var(--bg-input); padding: 12px 16px; border-radius: var(--radius-sm); white-space: pre-wrap; }
.trip-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ========== FEELINGS ========== */
.feelings-section { display: none; }
.feelings-section.active { display: block; }
.love-note-compose { margin-bottom: 16px; }
.note-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.note-mood-pick { display: flex; gap: 6px; }
.note-mood-btn { font-size: 1.2rem; cursor: pointer; padding: 4px; border-radius: 6px; transition: all 0.2s; }
.note-mood-btn:hover { transform: scale(1.2); }
.note-mood-btn.selected { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); border-radius: 6px; }
.love-note-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.love-note-from { font-size: 0.8rem; color: var(--accent); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.love-note-text { font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.love-note-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 0.75rem; color: var(--text-dim); }
.journal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.journal-mood-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.journal-moods { display: flex; gap: 4px; }
.jmood { font-size: 1.2rem; cursor: pointer; padding: 4px; border-radius: 6px; transition: all 0.2s; }
.jmood:hover { transform: scale(1.2); }
.jmood.selected { background: var(--accent-soft); }
.journal-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.journal-item-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.journal-item-date { font-size: 0.8rem; color: var(--text-dim); }
.journal-item-mood { font-size: 1.3rem; }
.journal-item-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; white-space: pre-wrap; }
.memory-compose { display: flex; flex-direction: column; gap: 10px; }
.memory-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.memory-item:last-child { border-bottom: none; }
.memory-dot { width: 12px; height: 12px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.memory-date { font-size: 0.75rem; color: var(--accent); margin-bottom: 2px; }
.memory-title { font-weight: 500; font-size: 0.95rem; margin-bottom: 4px; }
.memory-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ========== PHOTOS ========== */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--bg-card); border: 1px solid var(--border); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photo-card:hover img { transform: scale(1.05); }
.photo-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 16px 12px 12px; }
.photo-card-caption { font-size: 0.8rem; color: rgba(255,255,255,0.9); }
.photo-card-date { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.photo-delete { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.5); border: none; color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 0.8rem; opacity: 0; transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; }
.photo-card:hover .photo-delete { opacity: 1; }
.photo-delete:hover { background: var(--red); }
.photo-upload-area { margin-bottom: 16px; }
.upload-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px; background: var(--bg-input); border: 2px dashed var(--border); border-radius: var(--radius); cursor: pointer; color: var(--text-dim); transition: all 0.2s; }
.upload-placeholder:hover { border-color: var(--accent); color: var(--text-muted); }
.upload-placeholder p { font-size: 0.85rem; }
#photoPreview { width: 100%; max-height: 300px; object-fit: contain; border-radius: var(--radius); }
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 300; justify-content: center; align-items: center; }
.lightbox-overlay.show { display: flex; }
.lb-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: rgba(255,255,255,0.7); font-size: 2rem; cursor: pointer; }
.lb-close:hover { color: #fff; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: rgba(255,255,255,0.7); font-size: 1.5rem; padding: 16px 12px; cursor: pointer; border-radius: 6px; }
.lb-nav:hover { background: rgba(255,255,255,0.2); color: #fff; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-content { text-align: center; max-width: 90vw; }
.lb-content img { max-width: 90vw; max-height: 80vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.lb-caption { color: rgba(255,255,255,0.7); margin-top: 12px; font-size: 0.9rem; }

/* ========== PEACE ROOM ========== */
.peace-banner { background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(248,113,113,0.08)); border: 1px solid rgba(251,191,36,0.2); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.peace-banner-content { display: flex; align-items: center; gap: 16px; }
.peace-pulse { font-size: 2rem; animation: pulse 2s ease-in-out infinite; }
.peace-banner h3 { font-size: 1rem; color: var(--yellow); }
.peace-banner p { font-size: 0.85rem; color: var(--text-muted); }
#cooldownTimer { font-weight: 600; color: var(--yellow); font-size: 1.1rem; }
.peace-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.peace-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: all 0.25s; text-align: center; }
.peace-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.peace-card-icon { font-size: 2.5rem; margin-bottom: 12px; }
.peace-card h3 { font-size: 1rem; margin-bottom: 6px; font-weight: 500; }
.peace-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.challenge-body { text-align: center; }
.challenge-display { padding: 20px; }
.challenge-emoji { font-size: 3rem; display: block; margin-bottom: 16px; }
.challenge-text { font-size: 1.1rem; line-height: 1.7; color: var(--text); }
.resolution-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.resolution-item:last-child { border-bottom: none; }
.resolution-icon { font-size: 1.3rem; }
.resolution-text { font-size: 0.85rem; color: var(--text-muted); }
.resolution-time { font-size: 0.7rem; color: var(--text-dim); margin-top: 2px; }
.love-reminder-content { text-align: center; padding: 10px 0; }
.love-reminder-content .reminder-quote { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); line-height: 1.6; font-style: italic; margin-bottom: 16px; }
.love-reminder-content .reminder-memories h4 { color: var(--accent); font-size: 0.85rem; margin-bottom: 10px; }
.love-reminder-content .reminder-memory-item { font-size: 0.9rem; color: var(--text-muted); padding: 6px 0; }
