﻿/* =========================================================
   Business Support Buddy
   Dashboard Styles
   File: dashboard.css
   Page-specific stylesheet for dashboard.php
   ========================================================= */

.dashboard-page {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 30%),
    #0b1220;
}

.dash-hero,
.snapshot-section {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.03);
  border-radius: 1.25rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.dashboard-pill {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  white-space: normal;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dash-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.dash-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.05), transparent 34%),
    rgba(255, 255, 255, 0.02);
  border-radius: 1.1rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.dash-card:hover,
.dash-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.20);
}

.dash-icon,
.snapshot-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  flex: 0 0 auto;
  color: #dbeafe;
}

.dash-icon i,
.snapshot-icon i {
  font-size: 1.25rem;
  opacity: 0.95;
  line-height: 1;
}

.dash-title {
  font-weight: 800;
  letter-spacing: 0.1px;
  margin: 0;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dash-sub {
  color: rgba(255, 255, 255, 0.70);
  margin: 0.35rem 0 0;
  line-height: 1.45;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dash-actions .btn {
  border-radius: 0.9rem;
  white-space: normal;
  font-weight: 750;
}

.snapshot-toggle-btn {
  min-width: 170px;
}

.pending-email-banner {
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(13, 202, 240, 0.35);
  background: rgba(13, 202, 240, 0.12);
  color: #d1ecf1;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pending-action-link {
  color: #9ec5fe;
  font-weight: 800;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  display: inline;
}

.pending-action-link:hover,
.pending-action-link:focus {
  color: #cfe2ff;
}

.pending-meta-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.snapshot-card,
.snapshot-meta-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.snapshot-card:hover,
.snapshot-meta-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.snapshot-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
  margin: 0 0 0.25rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.snapshot-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.1px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.snapshot-note {
  color: rgba(255, 255, 255, 0.70);
  margin: 0.45rem 0 0;
  line-height: 1.35;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.snapshot-note a {
  color: #9ec5fe;
}

.snapshot-note a:hover,
.snapshot-note a:focus {
  color: #cfe2ff;
}

.snapshot-meta-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.4rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.snapshot-meta-copy {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.45;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.snapshot-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.snapshot-filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.snapshot-filter-chip:hover,
.snapshot-filter-chip:focus {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.snapshot-filter-chip.is-active {
  background: rgba(13, 110, 253, 0.18);
  border-color: rgba(13, 110, 253, 0.55);
  color: #dbeafe;
}

.snapshot-range-pill {
  border-color: rgba(13, 110, 253, 0.28);
  background: rgba(13, 110, 253, 0.12);
  color: #dbeafe;
}

.modal-content.modal-glass {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 34%),
    #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  color: #f8fafc;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.cancel-choice-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  .dash-hero,
  .snapshot-section,
  .dash-card,
  .snapshot-card,
  .snapshot-meta-card {
    border-radius: 1rem;
  }

  .dash-actions {
    width: 100%;
  }

  .dash-actions .btn {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .snapshot-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .snapshot-filter-chip {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .dash-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .snapshot-filter-bar {
    grid-template-columns: 1fr;
  }

  .snapshot-value {
    font-size: 1.42rem;
  }

  .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-card,
  .snapshot-filter-chip {
    transition: none !important;
  }

  .dash-card:hover,
  .dash-card:focus-within,
  .snapshot-filter-chip:hover,
  .snapshot-filter-chip:focus {
    transform: none !important;
  }
}
/* Connected email setup modal */
.cold-email-setup-grid {
  display: grid;
  gap: .85rem;
}
.cold-email-setup-card {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .72);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.cold-email-setup-card:hover,
.cold-email-setup-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, .6);
  background: rgba(30, 41, 59, .9);
  color: inherit;
}
.cold-email-setup-card .setup-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, .16);
  color: #bfdbfe;
  flex: 0 0 auto;
}
.cold-email-setup-card .setup-copy {
  display: grid;
  gap: .2rem;
}
.cold-email-setup-card small {
  color: rgba(226, 232, 240, .72);
}
@media (max-width: 575.98px) {
  .cold-email-setup-card { flex-direction: column; }
}


/* AI-powered B2B cold calling modal */
.ai-calling-modal-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 36%),
    rgba(15, 23, 42, 0.78);
}

.ai-calling-icon-stack {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.ai-calling-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.ai-calling-icon-ai {
  inset: 0 auto auto 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.82));
  color: #fff;
  font-size: 1.45rem;
}

.ai-calling-icon-phone {
  right: 0;
  bottom: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.78));
  color: #f0fdf4;
  font-size: 1.12rem;
}

.ai-calling-hero-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
}

.ai-calling-hero-copy {
  color: rgba(226, 232, 240, 0.78);
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .ai-calling-modal-hero {
    flex-direction: column;
  }
}

.cold-email-setup-card.is-disabled {
  cursor: not-allowed;
  opacity: .72;
}

.cold-email-setup-card.is-disabled:hover,
.cold-email-setup-card.is-disabled:focus-visible {
  border-color: rgba(148, 163, 184, .22);
  transform: none;
}
