/**
 * SplitAja — Buku Hutang Styles
 * Phase 2A+B: Supports both Light & Dark mode
 */

/* ============================================
   CSS VARIABLES — Light Mode (default)
   ============================================ */
:root {
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============================================
   CSS VARIABLES — Dark Mode
   ============================================ */
.dark {
  --indigo: #818cf8;
  --purple: #a78bfa;
  --glass-bg: rgba(25, 25, 40, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #edeef3;
  --text-secondary: #9a9ab0;
  --text-muted: #636380;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   LAYOUT
   ============================================ */
.hutang-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 16px 40px;
  min-height: 100vh;
}

/* ============================================
   HERO
   ============================================ */
.hutang-hero {
  text-align: center;
  margin-bottom: 24px;
}
.hutang-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.hutang-title svg {
  stroke: var(--indigo);
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
}
.hutang-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Back button */
.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.btn-back:hover {
  background: var(--glass-bg);
  color: var(--indigo);
}

/* ============================================
   SUMMARY CARDS
   ============================================ */
.hutang-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.summary-card {
  position: relative;
  overflow: visible;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  transition: transform 0.2s, box-shadow 0.2s;
}
.summary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}
.summary-owed::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.summary-you-owe::before {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.summary-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.summary-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}
.summary-owed .summary-amount {
  color: #10b981;
}
.summary-you-owe .summary-amount {
  color: #ef4444;
}

/* Person icon badge (top-right) */
.summary-person-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}
.summary-person-badge svg {
  opacity: 0.25;
  stroke: var(--text-secondary);
}
.summary-owed .summary-person-badge svg {
  stroke: #10b981;
  opacity: 0.35;
}
.summary-you-owe .summary-person-badge svg {
  stroke: #ef4444;
  opacity: 0.35;
}
.badge-count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  color: #fff;
}
.badge-count:empty {
  display: none;
}
.summary-owed .badge-count {
  background: #10b981;
}
.summary-you-owe .badge-count {
  background: #ef4444;
}

/* Person badge tooltip */
.summary-person-badge .badge-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  right: -4px;
  background: #1e293b;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.summary-person-badge .badge-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 10px;
  border: 4px solid transparent;
  border-top-color: #1e293b;
}
.summary-person-badge:hover .badge-tooltip,
.summary-person-badge.show-tip .badge-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.dark .summary-person-badge .badge-tooltip {
  background: #334155;
}
.dark .summary-person-badge .badge-tooltip::after {
  border-top-color: #334155;
}

/* ============================================
   SEARCH & SORT TOOLBAR
   ============================================ */
.hutang-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}
.search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s;
}
.search-box:focus-within .search-icon {
  color: var(--indigo);
}
.search-input {
  width: 100%;
  padding: 10px 34px 10px 36px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.search-input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: left;
}
.search-clear {
  position: absolute;
  right: 6px;
  width: 26px;
  height: 26px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  padding: 0;
}
.search-clear:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}
.sort-box {
  flex: 1;
}
.sort-select {
  width: 100%;
  padding: 10px 30px 10px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  text-align-last: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}
.sort-select:focus {
  outline: none;
  border-color: var(--indigo);
}
.sort-select option {
  background: #fff;
  color: #1a1a2e;
}
.dark .sort-select option {
  background: #1e293b;
  color: #edeef3;
}

/* Search empty state */
.search-empty {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}
.search-empty svg {
  margin-bottom: 12px;
  opacity: 0.5;
}
.search-empty p {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.search-empty strong {
  color: var(--text-secondary);
}

/* ============================================
   FILTER TABS
   ============================================ */
.hutang-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}
.filter-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.filter-tab:hover {
  color: var(--text-primary);
}
.filter-tab.active {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Loading Skeleton */
.hutang-loading {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================
   PERSON LIST
   ============================================ */
.hutang-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.person-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.35s ease both;
}
.person-card:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
}
.person-card:active {
  transform: translateY(0);
}
.person-card.settled {
  opacity: 0.55;
}
.person-card.settled:hover {
  opacity: 0.85;
}

/* Avatar */
.person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.person-avatar.green { background: linear-gradient(135deg, #10b981, #059669); }
.person-avatar.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.person-avatar.blue { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.person-avatar.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.person-avatar.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.person-avatar.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }

/* Info */
.person-info {
  flex: 1;
  min-width: 0;
}
.person-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.person-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  gap: 4px;
  align-items: center;
}
.person-meta .count {
  display: flex;
  align-items: center;
  gap: 3px;
}
.meta-dot {
  opacity: 0.4;
}

/* Balance */
.person-balance {
  text-align: right;
  flex-shrink: 0;
}
.balance-amount {
  font-weight: 800;
  font-size: clamp(0.78rem, 3vw, 1rem);
  margin-bottom: 4px;
  white-space: nowrap;
}
.balance-amount.outstanding { color: #ef4444; }
.balance-amount.settled { color: #10b981; }

.balance-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.balance-status {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}
.balance-status.outstanding {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.balance-status.settled {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

/* ============================================
   AGE BADGES
   ============================================ */
.age-badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.age-badge.new {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}
.age-badge.recent {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}
.age-badge.overdue-3 {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.age-badge.overdue-7 {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.age-badge.overdue-30 {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Chevron */
.person-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.4;
  transition: transform 0.2s;
}
.person-card:hover .person-chevron {
  opacity: 0.7;
  transform: translateX(2px);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.hutang-empty {
  text-align: center;
  padding: 60px 20px;
}
.hutang-empty .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}
.hutang-empty h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.hutang-empty p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* ============================================
   SKELETON SHIMMER
   ============================================ */
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-shimmer {
  background: linear-gradient(90deg,
    rgba(200,200,220,0.15) 25%,
    rgba(200,200,220,0.3) 50%,
    rgba(200,200,220,0.15) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease infinite;
  border-radius: 6px;
}
.dark .skeleton-shimmer {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
}
.skeleton-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}
.skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-line-name {
  width: 60%;
  height: 14px;
}
.skeleton-line-meta {
  width: 40%;
  height: 10px;
}
.skeleton-balance {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.skeleton-line-amount {
  width: 80px;
  height: 16px;
}
.skeleton-line-status {
  width: 54px;
  height: 10px;
  border-radius: 5px;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.hutang-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.hutang-toast.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.hutang-toast-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  backdrop-filter: blur(16px);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.hutang-toast-inner.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.hutang-toast-inner.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.hutang-toast-inner.warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
.hutang-toast-inner.info {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--glass-border);
}
.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--glass-bg);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Detail Modal */
.modal-summary {
  padding: 16px 20px;
  display: flex;
  gap: 12px;
}
.modal-summary .stat-box {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: var(--glass-bg);
  text-align: center;
}
.stat-box .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.stat-box .stat-value {
  font-weight: 800;
  font-size: 0.95rem;
}
.stat-box.total .stat-value { color: var(--indigo); }
.stat-box.paid .stat-value { color: #10b981; }
.stat-box.remaining .stat-value { color: #ef4444; }
.stat-box.settled-stat .stat-value { color: #10b981; }
.stat-box.overpaid .stat-value { color: #f59e0b; }
.stat-box.overpaid .stat-label { color: #f59e0b; }

/* All settled banner */
.all-settled-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 0.82rem;
  font-weight: 700;
  animation: fadeIn 0.3s ease;
}
.dark .all-settled-banner {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

/* Transaction List */
.modal-transactions {
  padding: 0 20px 16px;
}
.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  transition: opacity 0.2s;
}
.transaction-item:last-child {
  border-bottom: none;
}
.transaction-item.tx-settled {
  opacity: 0.55;
}
.tx-left {
  flex: 1;
  min-width: 0;
}
.tx-merchant {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tx-relative-time {
  color: var(--text-muted);
  opacity: 0.7;
  font-weight: 500;
}
.tx-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 2px;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.tx-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}
.tx-amount {
  font-weight: 700;
  font-size: 0.85rem;
}
.tx-amount.outstanding { color: #ef4444; }
.tx-amount.settled { color: #10b981; }

/* Transaction status badge */
.tx-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
}
.tx-status-badge.settled {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

/* Transaction action buttons */
.tx-action-btns {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  justify-content: flex-end;
}

/* Modal Actions */
.modal-actions {
  padding: 12px 20px 20px;
  display: flex;
  gap: 10px;
}
.modal-actions button {
  flex: 1;
}

/* Payment Modal */
.modal-body {
  padding: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.payment-info {
  padding: 10px 14px;
  background: var(--glass-bg);
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
}
.modal-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.btn-secondary {
  flex: 1;
  padding: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.08);
}
.modal-btn-row .btn-primary {
  flex: 1;
  justify-content: center;
}

/* ============================================
   SETTLE ALL BUTTON
   ============================================ */
.btn-settle-all {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-settle-all:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}
.btn-settle-all:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Delete All Debts Button */
.btn-delete-all-debts {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 10px;
  color: #ef4444;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
.btn-delete-all-debts:hover {
  background: rgba(239,68,68,0.06);
  border-color: #ef4444;
}
.btn-delete-all-debts:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   WHATSAPP NAGIH BUTTON
   ============================================ */
.btn-wa-nagih {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-wa-nagih:hover {
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}
.btn-wa-nagih svg {
  width: 16px;
  height: 16px;
}

/* Reminder Schedule Button */
.btn-reminder-schedule {
  padding: 10px 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-reminder-schedule:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

/* Reminder Overlay */
.reminder-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

.reminder-modal {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } }

.reminder-modal h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin-bottom: 4px;
}
.reminder-desc {
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
  margin-bottom: 16px;
  line-height: 1.5;
}

.reminder-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-secondary, #64748b);
  margin-bottom: 6px;
  margin-top: 12px;
}
.reminder-form label:first-child { margin-top: 0; }

.reminder-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color, rgba(0,0,0,0.1));
  border-radius: 10px;
  background: var(--bg-surface-2, #f5f5f7);
  color: var(--text-primary, #0f172a);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.reminder-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Day Picker Pills */
.reminder-day-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.day-pill {
  padding: 7px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--bg-surface-2, #f0f0f3);
  color: var(--text-primary, #0f172a);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.day-pill:hover {
  border-color: rgba(245, 158, 11, 0.3);
}
.day-pill.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

/* Preview */
.reminder-preview {
  margin-top: 16px;
  padding: 12px;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 12px;
}
.reminder-preview strong {
  font-size: 0.72rem;
  text-transform: none;
  color: var(--text-secondary, #64748b);
  letter-spacing: 0.02em;
}
.reminder-preview-msg {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-primary, #0f172a);
  line-height: 1.6;
  white-space: pre-line;
}

/* Actions */
.reminder-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.reminder-btn-cancel {
  padding: 10px 20px;
  border: 1px solid var(--border-color, rgba(0,0,0,0.1));
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary, #64748b);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.reminder-btn-save {
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: 0.2s;
}
.reminder-btn-save:hover { transform: translateY(-1px); }
.reminder-btn-save:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Dark Mode */
.dark .reminder-modal { background: #1e293b; border-color: rgba(255,255,255,0.08); }
.dark .reminder-input { background: rgba(30,41,59,0.8); border-color: rgba(255,255,255,0.08); }
.dark .day-pill { background: rgba(30,41,59,0.8); color: #e2e8f0; }
.dark .reminder-preview { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }

/* ============================================
   PAY & DELETE BUTTONS
   ============================================ */
.btn-pay-individual {
  padding: 6px 14px;
  background: var(--indigo);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-pay-individual:hover {
  background: var(--purple);
  transform: translateY(-1px);
}

.btn-delete-individual {
  padding: 5px 8px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-delete-individual:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* ============================================
   DELETE MODAL
   ============================================ */
.modal-delete {
  max-width: 380px;
}
.delete-warning {
  text-align: center;
  padding: 20px 10px;
}
.delete-warning svg {
  margin-bottom: 12px;
  opacity: 0.8;
}
.delete-warning p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.btn-danger {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-danger:hover {
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}
.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   BUTTON SPINNER
   ============================================ */
.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hidden utility */
.hidden { display: none !important; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .hutang-main {
    padding: 72px 12px 32px;
  }
  .summary-amount {
    font-size: 1.1rem;
  }
  .hutang-toolbar {
    flex-direction: row;
    gap: 12px;
  }
  .sort-select {
    width: 100%;
    font-size: 0.78rem;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions button {
    width: 100%;
  }
  .tx-note {
    max-width: 130px;
  }
  .balance-badges {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }
  .hutang-action-bar {
    flex-direction: row;
  }
  .action-btn {
    padding: 8px 10px;
    font-size: 0.78rem;
    gap: 5px;
    white-space: nowrap;
  }
  .search-input {
    padding: 8px 30px 8px 34px;
    font-size: 0.82rem;
  }
  .sort-select {
    padding: 8px 26px 8px 10px;
    font-size: 0.78rem;
  }
  .settlement-person-header {
    flex-wrap: wrap;
  }
}

/* ============================================
   ACTION BAR
   ============================================ */
.hutang-action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}
.action-btn:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.action-btn svg {
  flex-shrink: 0;
}
.action-settlement:hover {
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}
.action-export:hover {
  border-color: var(--indigo);
}

/* ============================================
   SMART SETTLEMENT MODAL
   ============================================ */
.modal-settlement {
  max-width: 480px;
}
.settlement-body {
  padding: 20px;
}
.settlement-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}
.settlement-empty p {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Progress bar */
.settlement-progress {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--glass-bg);
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}
.settlement-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.settlement-percent {
  color: #10b981;
  font-size: 1.1rem;
  font-weight: 800;
}
.settlement-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.settlement-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.settlement-progress-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Micro-breakdown (Lunas vs Cicilan) */
.settlement-progress-breakdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--glass-border);
  animation: fadeIn 0.4s ease both;
  animation-delay: 0.3s;
}
.breakdown-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}
.breakdown-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.breakdown-dot-lunas {
  background: #10b981;
}
.breakdown-dot-cicilan {
  background: var(--indigo, #6366f1);
}
.breakdown-sep {
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.4;
}

/* Label */
.settlement-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

/* Settlement list */
.settlement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.settlement-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: slideUp 0.3s ease both;
}
.settlement-item:nth-child(2) { animation-delay: 0.05s; }
.settlement-item:nth-child(3) { animation-delay: 0.1s; }
.settlement-item:nth-child(4) { animation-delay: 0.15s; }
.settlement-item:nth-child(5) { animation-delay: 0.2s; }

.settlement-rank {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.settlement-item:first-child .settlement-rank {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #fff;
  border-color: transparent;
}

.settlement-person {
  flex: 1;
  min-width: 0;
}
.settlement-person-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.settlement-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.person-avatar.sm {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 0.65rem;
}

/* Debt bar */
.settlement-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settlement-bar {
  height: 10px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  min-width: 20px;
  position: relative;
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.settlement-bar-paid {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 6px;
  transition: width 0.5s ease 0.2s;
}
.settlement-amount {
  font-weight: 700;
  font-size: 0.82rem;
  color: #ef4444;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Settlement total */
.settlement-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}
.settlement-total span:first-child {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.settlement-total-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ef4444;
}

/* ============================================
   SETTLED (SUDAH LUNAS) SECTION
   ============================================ */
.settled-section {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 14px;
  animation: fadeIn 0.4s ease both;
  animation-delay: 0.15s;
}

.settled-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.settled-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settled-header-left span:first-of-type {
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b981;
}
.settled-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(16, 185, 129, 0.7);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
}
.settled-total-amount {
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b981;
}

/* Person list */
.settled-persons-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settled-person-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(16, 185, 129, 0.04);
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: settledItemIn 0.3s ease both;
}
@keyframes settledItemIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.settled-person-item:hover {
  background: rgba(16, 185, 129, 0.08);
}
.settled-person-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.settled-person-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.settled-person-amount {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Collapse/expand */
.settled-person-collapsed {
  display: none !important;
}

/* Toggle button */
.settled-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  background: transparent;
  border: 1px dashed rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
}
.settled-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.4);
}
.settled-toggle-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.settled-toggle-btn.expanded .settled-toggle-chevron {
  transform: rotate(180deg);
}

/* Dark mode */
.dark .settled-section {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.12);
}
.dark .settled-person-item {
  background: rgba(16, 185, 129, 0.05);
}
.dark .settled-person-item:hover {
  background: rgba(16, 185, 129, 0.1);
}
.dark .settled-count {
  background: rgba(16, 185, 129, 0.12);
  color: rgba(16, 185, 129, 0.8);
}
.dark .settled-toggle-btn {
  border-color: rgba(16, 185, 129, 0.2);
}
.dark .settled-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.08);
}

/* Settlement footer */
.settlement-footer {
  padding: 0 20px 20px;
}

/* ============================================
   PAYMENT TIMELINE
   ============================================ */
.modal-timeline {
  padding: 0 20px;
  margin-bottom: 8px;
}
.timeline-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.timeline-header svg {
  color: var(--indigo);
}
.timeline-body {
  position: relative;
  padding-left: 20px;
}
.timeline-body::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--glass-border);
  border-radius: 2px;
}
.timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  animation: fadeIn 0.3s ease both;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-left: -20px;
}
.timeline-icon-payment {
  background: rgba(99, 102, 241, 0.15);
  color: var(--indigo);
  border: 2px solid rgba(99, 102, 241, 0.3);
}
.timeline-icon-settle {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 2px solid rgba(16, 185, 129, 0.3);
}
.timeline-content {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.timeline-detail {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.timeline-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.timeline-note {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 2px 0;
  padding-left: 8px;
  border-left: 2px solid rgba(99,102,241,0.2);
}

/* Timeline delete button */
.timeline-delete-btn {
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  cursor: pointer;
  padding: 5px;
  border-radius: 7px;
  opacity: 0.85;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
}
.timeline-delete-btn:hover {
  opacity: 1;
  color: #fff;
  background: #ef4444;
  border-color: #ef4444;
}
.timeline-delete-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(239, 68, 68, 0.15);
}
.dark .timeline-delete-btn {
  border-color: rgba(251, 113, 133, 0.35);
  color: #fb7185;
}
.dark .timeline-delete-btn:hover {
  color: #fff;
  background: #fb7185;
  border-color: #fb7185;
}

/* ============================================
   EXPORT MODAL
   ============================================ */
.modal-export {
  max-width: 440px;
}
.export-body {
  padding: 20px;
}
.export-preview {
  margin-bottom: 16px;
  max-height: 300px;
  overflow-y: auto;
}
.export-text {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  font-family: 'Inter', monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.export-actions {
  display: flex;
  gap: 10px;
}
.action-copy-text {
  flex: 1;
  background: var(--glass-bg) !important;
  border-color: var(--indigo) !important;
  color: var(--indigo) !important;
}
.action-copy-text:hover {
  background: rgba(99, 102, 241, 0.1) !important;
}
.action-wa-blast {
  flex: 1;
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.action-wa-blast:hover {
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

