/* Faith & Fire Guided Preparedness Journey Dashboard CSS */

.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* 1. HERO OVERVIEW BANNER */
.dashboard-hero-card {
  background: linear-gradient(135deg, #151c24 0%, #0d1217 100%);
  border: 1px solid #374151;
  border-left: 4px solid #f97316;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
}

.dashboard-hero-main {
  flex: 1;
  min-width: 280px;
}

.dashboard-hero-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f3f4f6;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-hero-subtitle {
  font-size: 0.92rem;
  color: #9ca3af;
  line-height: 1.5;
}

.dashboard-score-box {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dashboard-score-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #f97316;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dashboard-score-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.dashboard-score-status {
  font-size: 0.75rem;
  color: #34d399;
  margin-top: 2px;
  font-weight: 600;
}

/* 2. JOURNEY STEPPER BAR */
.journey-stepper-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.journey-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.journey-progress-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.journey-progress-badge {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid #2563eb;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.journey-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #334155;
}

.journey-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #2563eb);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.journey-steps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 860px) {
  .journey-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 540px) {
  .journey-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.journey-step-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.journey-step-item:hover {
  border-color: #60a5fa;
  transform: translateY(-2px);
  background: #283548;
}

.journey-step-item.active {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}

.journey-step-item.completed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.journey-step-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.journey-step-item.active .journey-step-num {
  color: #f97316;
}

.journey-step-item.completed .journey-step-num {
  color: #34d399;
}

.journey-step-icon {
  font-size: 1.3rem;
  margin: 4px 0;
}

.journey-step-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
}

.journey-step-status-tag {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 4px;
}

.journey-step-status-tag.next {
  background: #f97316;
  color: white;
}

.journey-step-status-tag.done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.journey-step-status-tag.upcoming {
  background: #334155;
  color: #94a3b8;
}

/* 3. NEXT RECOMMENDED STEP CARD */
.next-step-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
  position: relative;
  overflow: hidden;
}

.next-step-card.first-visit {
  border-color: #f97316;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
}

.next-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.next-step-badge {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.next-step-card.first-visit .next-step-badge {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.next-step-time {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #334155;
}

.next-step-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #f8fafc;
  margin-bottom: 8px;
}

.next-step-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
}

.next-step-reason {
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid #60a5fa;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 0.86rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.next-step-card.first-visit .next-step-reason {
  border-left-color: #f97316;
  color: #fdba74;
}

.next-step-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-continue-step {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-continue-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.next-step-card.first-visit .btn-continue-step {
  background: linear-gradient(135deg, #f97316, #c25e2e);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.next-step-card.first-visit .btn-continue-step:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.5);
}

/* 4. TWO COLUMN GRID FOR PRIORITIES & ACTIVITY */
.dashboard-middle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .dashboard-middle-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-panel-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e293b;
}

.priority-item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  margin-bottom: 10px;
}

.priority-icon {
  font-size: 1.2rem;
  margin-top: 2px;
}

.priority-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
}

.priority-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.activity-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #1e293b;
  font-size: 0.85rem;
}

.activity-item-row:last-child {
  border-bottom: none;
}

.activity-text {
  color: #cbd5e1;
  font-weight: 600;
}

.activity-time {
  color: #64748b;
  font-size: 0.78rem;
}

/* 5. QUICK ACCESS SECTION */
.quick-access-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 20px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .quick-access-grid {
    grid-template-columns: 1fr;
  }
}

.quick-access-btn {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quick-access-btn:hover {
  border-color: #60a5fa;
  background: #283548;
  transform: translateY(-2px);
}

.quick-btn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}

.quick-btn-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* 6. LIVE PREPARED SECTION */
.live-prepared-card {
  background: linear-gradient(135deg, #0c2027 0%, #001219 100%);
  border: 1px solid #005f73;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.live-prepared-content {
  flex: 1;
  min-width: 280px;
}

.live-prepared-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #00a8e8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-prepared-desc {
  font-size: 0.9rem;
  color: #94d2bd;
  line-height: 1.5;
}

.btn-live-prepared {
  background: linear-gradient(135deg, #0077b6, #03045e);
  border: 1px solid #00b4d8;
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-live-prepared:hover {
  background: linear-gradient(135deg, #0096c7, #023e8a);
  transform: translateY(-2px);
}

/* ==========================================================================
   COMMAND DASHBOARD: 12 DOMAIN WIDGETS GRID
   ========================================================================== */
.domain-widgets-section {
  background: #0d1217;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.domain-widgets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.domain-widgets-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-widgets-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 2px;
}

.domain-widgets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .domain-widgets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .domain-widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .domain-widgets-grid {
    grid-template-columns: 1fr;
  }
}

.domain-widget-card {
  background: #151c24;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.domain-widget-card:hover,
.domain-widget-card:focus {
  border-color: #f97316;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2);
  outline: none;
}

.domain-widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.domain-widget-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-widget-icon {
  font-size: 1.35rem;
}

.domain-widget-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
}

.domain-widget-priority {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.domain-widget-priority.p-high {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.domain-widget-priority.p-med {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.domain-widget-priority.p-low {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.domain-widget-middle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 6px 0 10px 0;
}

.domain-widget-score {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.domain-widget-score.c-green { color: #34d399; }
.domain-widget-score.c-yellow { color: #facc15; }
.domain-widget-score.c-red { color: #f87171; }
.domain-widget-score.c-slate { color: #94a3b8; }

.domain-widget-trend {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.8);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #334155;
}

.domain-widget-bar-bg {
  width: 100%;
  height: 5px;
  background: #1e293b;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.domain-widget-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.domain-widget-bar-fill.c-green { background: #10b981; }
.domain-widget-bar-fill.c-yellow { background: #eab308; }
.domain-widget-bar-fill.c-red { background: #ef4444; }
.domain-widget-bar-fill.c-slate { background: #64748b; }

/* ==========================================================================
   LIVE DATA SUB-PANELS GRID (6 PANELS)
   ========================================================================== */
.live-data-panels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .live-data-panels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .live-data-panels-grid {
    grid-template-columns: 1fr;
  }
}

.live-data-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

details.live-data-card summary::-webkit-details-marker,
details.dashboard-panel-card summary::-webkit-details-marker {
  display: none;
}

details.live-data-card summary,
details.dashboard-panel-card summary {
  list-style: none;
  outline: none;
}

details.live-data-card[open] summary .live-data-header {
  border-bottom: 1px solid #1e293b;
}

details.live-data-card:not([open]) summary .live-data-header {
  margin-bottom: 0;
  border-bottom: none;
}

.live-data-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e293b;
}

.live-data-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-data-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid #2563eb;
}

.live-data-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-bottom: 14px;
}

.live-data-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  gap: 10px;
}

.live-data-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-data-item-name {
  font-weight: 700;
  color: #f1f5f9;
}

.live-data-item-sub {
  font-size: 0.74rem;
  color: #94a3b8;
}

.live-data-action-btn {
  background: #334155;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.live-data-action-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: white;
}

.live-data-empty {
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 16px;
  text-align: center;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 8px;
  border: 1px dashed #334155;
}

/* ==========================================================================
   JOURNEY ENGINE EXPANDABLE ACCORDION / MILESTONE CARDS
   ========================================================================== */
.milestones-accordion-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 20px;
}

.milestone-item-row {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.milestone-item-row.completed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.06);
}

.milestone-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

.milestone-item-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
}

.milestone-item-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
}

.milestone-item-reward {
  font-size: 0.78rem;
  color: #34d399;
  margin-top: 2px;
  font-style: italic;
}

.milestone-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.milestone-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.milestone-status-badge.done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
}

.milestone-status-badge.pending {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid #f97316;
}

/* TOOLTIP STYLES */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-wrapper .tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: #0f172a;
  color: #f8fafc;
  text-align: left;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  font-size: 0.76rem;
  font-weight: 500;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  pointer-events: none;
}

.tooltip-wrapper:hover .tooltip-text,
.tooltip-wrapper:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}
