/* ==========================================================================
   Global Property Escape — Dashboard
   Member dashboard shell, stat cards, tables, wizard, uploads, modals.
   ========================================================================== */
.dashboard-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 70vh; }
.dash-nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  background: var(--primary-dark); color: var(--white);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  margin-bottom: 20px;
}
.dash-nav-toggle svg { width: 18px; height: 18px; }
.dashboard-sidebar {
  background: var(--primary-dark); padding: 32px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.dash-user { text-align: center; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 18px; }
.dash-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--gradient-accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
}
.dash-user h3 { color: var(--white); font-size: 1rem; margin-bottom: 3px; word-break: break-word; }
.dash-user p { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin: 0; }
.dash-agent-link {
  display: inline-flex; align-items: center; gap: 10px; text-align: left;
  margin-top: 14px; padding: 10px 12px; width: 100%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); color: var(--white);
  transition: all var(--transition-fast);
}
.dash-agent-link svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.dash-agent-link span { display: flex; flex-direction: column; min-width: 0; }
.dash-agent-link strong { font-size: 0.85rem; line-height: 1.2; }
.dash-agent-link small { color: rgba(255,255,255,0.55); font-size: 0.72rem; }
.dash-agent-link:hover { background: rgba(255,255,255,0.14); color: var(--white); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.72); font-size: 0.93rem;
  padding: 11px 14px; border-radius: var(--radius); transition: all var(--transition-fast);
}
.dash-nav a svg { width: 19px; height: 19px; flex-shrink: 0; }
.dash-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.dash-nav a.active { background: var(--accent); color: var(--white); }
.dash-nav a.logout { color: #ff8a80; margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.dash-nav a.logout:hover { background: rgba(255,138,128,0.1); color: #ff8a80; }
.dash-main { padding: 40px; background: var(--light-grey); min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-head h1 { font-size: 1.6rem; margin-bottom: 4px; }
.dash-head p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs);
  display: flex; align-items: center; gap: 16px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--info-bg); color: var(--secondary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-value { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dash-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}
.dash-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-panel-head h2 { font-size: 1.15rem; }
.dash-panel-head h2 .badge {
  background: var(--info-bg); color: var(--secondary);
  font-size: 0.75rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--radius-full); margin-left: 8px; vertical-align: middle;
}

/* Table */
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  text-align: left; font-family: var(--font-heading); font-size: 0.76rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); padding: 12px 14px; border-bottom: 2px solid var(--border-light);
  background: var(--light-grey);
}
.dash-table td { padding: 14px; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; vertical-align: middle; }
.dash-table tr:hover td { background: rgba(0,166,166,0.03); }
.dash-table .listing-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.dash-table .listing-thumb {
  width: 56px; height: 44px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--light-grey); flex-shrink: 0;
}
.dash-table .listing-name { font-family: var(--font-heading); font-weight: 600; color: var(--primary); }
.dash-table .listing-sub { font-size: 0.78rem; color: var(--text-muted); }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-full);
}
.status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-active { background: var(--success-bg); color: var(--success); }
.status-pending { background: var(--warning-bg); color: #b26a00; }
.status-sold { background: var(--info-bg); color: var(--secondary); }
.status-draft { background: var(--light-grey); color: var(--text-muted); }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--white); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition-fast);
}
.icon-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.icon-btn.danger:hover { border-color: var(--error); color: var(--error); background: var(--error-bg); }
.icon-btn svg { width: 16px; height: 16px; }

/* Wizard */
.wizard-progress { display: flex; gap: 6px; margin-bottom: 32px; }
.wizard-step {
  flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: center;
  text-align: center; position: relative;
}
.wizard-step::after {
  content: ''; position: absolute; top: 17px; left: 50%; width: 100%;
  height: 3px; background: var(--border); z-index: 0;
}
.wizard-step:last-child::after { display: none; }
.wizard-step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--light-grey);
  border: 2.5px solid var(--border); color: var(--text-dim);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; transition: all var(--transition-fast);
}
.wizard-step.done .wizard-step-num { background: var(--accent); border-color: var(--accent); color: var(--white); }
.wizard-step.active .wizard-step-num { background: var(--secondary); border-color: var(--secondary); color: var(--white); }
.wizard-step.done::after { background: var(--accent); }
.wizard-step-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.03em; }
.wizard-step.active .wizard-step-label { color: var(--secondary); }
.wizard-pane { display: none; }
.wizard-pane.active { display: block; animation: fadeInUp 0.35s ease; }
.wizard-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.upload-dropzone {
  border: 2.5px dashed var(--border); border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: all var(--transition-fast); background: var(--light-grey);
}
.upload-dropzone:hover, .upload-dropzone.dragover { border-color: var(--accent); background: var(--info-bg); }
.upload-dropzone svg { width: 44px; height: 44px; color: var(--secondary); margin-bottom: 14px; }
.upload-dropzone p { font-size: 0.95rem; color: var(--text-muted); margin: 0 0 6px; }
.upload-dropzone span { font-size: 0.8rem; color: var(--text-dim); }
.upload-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.upload-preview {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--light-grey); border: 1px solid var(--border);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Supplemental Dashboard Styles — Global Property Escape
   Complements base dashboard styles in styles.css section 25.
   ========================================================================== */

/* Saved properties grid (saved-properties page) */
.saved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.saved-empty { text-align: center; padding: 72px 24px; color: var(--text-muted); }
.saved-empty-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--light-grey); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
}
.saved-empty-icon svg { width: 40px; height: 40px; }
.saved-empty h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 8px; }
.saved-empty p { margin-bottom: 22px; }

/* Quick actions (dashboard overview) */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-action {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast); text-decoration: none;
}
.quick-action:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-action-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--info-bg); color: var(--secondary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.quick-action-icon svg { width: 21px; height: 21px; }
.quick-action h3 { font-size: 0.95rem; color: var(--primary); margin-bottom: 2px; }
.quick-action p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* Activity feed */
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
  background: var(--secondary);
}
.activity-dot.is-success { background: var(--success); }
.activity-dot.is-warning { background: var(--warning); }
.activity-dot.is-error { background: var(--error); }
.activity-text { flex: 1; font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.activity-text strong { color: var(--primary); }
.activity-time { font-size: 0.76rem; color: var(--text-dim); white-space: nowrap; }

/* Notifications dropdown in header */
.notif-btn { position: relative; }
.notif-badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px;
  border-radius: var(--radius-full); background: var(--error); color: var(--white);
  font-size: 0.68rem; font-weight: 700; display: flex; align-items: center;
  justify-content: center; padding: 0 5px; border: 2px solid var(--white);
}
.notif-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0; width: 320px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 100;
  display: none; animation: fadeInDown 0.25s ease;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border-light);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; color: var(--primary);
}
.notif-dropdown-head button {
  background: none; border: none; color: var(--secondary);
  font-size: 0.8rem; cursor: pointer;
}
.notif-dropdown-head button:hover { text-decoration: underline; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-light); transition: background 0.15s ease; }
.notif-item:hover { background: var(--light-grey); }
.notif-item.unread { background: var(--info-bg); }
.notif-item.unread:hover { background: #e6f2f7; }
.notif-item-icon { flex-shrink: 0; margin-top: 2px; }
.notif-item-icon svg { width: 18px; height: 18px; color: var(--secondary); }
.notif-item-text { flex: 1; font-size: 0.84rem; color: var(--text); line-height: 1.45; }
.notif-item-time { font-size: 0.72rem; color: var(--text-dim); }
.notif-empty { padding: 40px 20px; text-align: center; color: var(--text-dim); font-size: 0.88rem; }

/* Profile avatar upload */
.avatar-upload { display: flex; align-items: center; gap: 20px; }
.avatar-preview {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--gradient-primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
  overflow: hidden; flex-shrink: 0;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.avatar-upload-actions .hint { font-size: 0.76rem; color: var(--text-muted); margin: 0; }

/* Verification badges */
.verify-list { display: flex; flex-direction: column; gap: 10px; }
.verify-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--white);
}
.verify-item-left { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--primary); font-family: var(--font-heading); font-weight: 600; }
.verify-item-left svg { width: 20px; height: 20px; }
.verify-item.done { border-color: rgba(46,125,50,0.35); background: var(--success-bg); }
.verify-item.done .verify-item-left svg { color: var(--success); }

/* Analytics placeholder bars */
.analytics-bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 10px 0; }
.analytics-bar {
  flex: 1; background: linear-gradient(to top, var(--secondary), var(--accent));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0; min-width: 16px;
  position: relative; transition: opacity 0.2s ease; animation: fadeInUp 0.6s ease both;
}
.analytics-bar:hover { opacity: 0.85; }
.analytics-bar::after {
  content: attr(data-label); position: absolute; bottom: -24px; left: 50%;
  transform: translateX(-50%); font-size: 0.72rem; color: var(--text-muted); white-space: nowrap;
}
.analytics-bar::before {
  content: attr(data-value); position: absolute; top: -24px; left: 50%;
  transform: translateX(-50%); font-size: 0.78rem; font-weight: 700;
  font-family: var(--font-heading); color: var(--primary); white-space: nowrap;
}

/* Confirm dialog */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(16,42,67,0.55);
  z-index: 1400; display: none; overflow-y: auto;
  padding: 20px; backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; align-items: center; justify-content: center; animation: fadeIn 0.25s ease; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-lg); text-align: center; animation: zoomIn 0.3s ease;
  margin: auto;
}
.modal-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--error-bg); color: var(--error);
  display: flex; align-items: center; justify-content: center;
}
.modal-icon svg { width: 30px; height: 30px; }
.modal-box h3 { font-size: 1.2rem; margin-bottom: 10px; }
.modal-box p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; justify-content: center; }

/* Inline empty-table state */
.empty-table-row td { text-align: center; padding: 48px 16px; color: var(--text-muted); font-size: 0.92rem; }
