/* ============================================
   DASHBOARD LAYOUT & STRUCTURE
   ============================================ */

/* Page wrapper */
.ds-dashboard-wrapper {
  min-height: 100vh;
  background-color: #F9FAFB;
}

/* Main content */
.ds-dashboard-main {
  padding: 3rem 0 6rem 0;
}

/* Section wrapper */
.ds-dashboard-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.ds-dashboard-section + .ds-dashboard-section {
  margin-top: 2rem;
}

/* Container */
.ds-dashboard-container {
  display: flex;
  max-width: 1280px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.ds-dashboard-container-row {
  display: flex;
  max-width: 1280px;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.ds-hero-content {
  display: flex;
  min-width: 320px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
}

/* ============================================
   METRIC CARDS GRID
   ============================================ */

.ds-metric-cards-grid {
  display: flex;
  width: 100%;
  align-items: flex-start;
  align-content: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */

.ds-dashboard-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
}

.ds-dashboard-col-right {
  display: flex;
  width: 400px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

/* Responsive: Stack columns on mobile/tablet */
@media (max-width: 1024px) {
  .ds-dashboard-container-row {
    flex-direction: column;
  }
  
  .ds-dashboard-col-right {
    width: 100%;
  }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.ds-section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.ds-section-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.ds-section-header-row .ds-section-title {
  flex: 1;
}

/* ============================================
   MISSION CARDS
   ============================================ */

/* Note: .ds-mission-cards-list is now defined in cards.css as a shared component */

.ds-mission-card {
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
}

.ds-mission-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

.ds-mission-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.ds-mission-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ds-mission-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ds-mission-card-logo {
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ds-mission-card-company {
  color: #374151;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5rem;
}

.ds-mission-card-title {
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.875rem;
  letter-spacing: -0.15px;
}

.ds-mission-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ds-mission-card-meta-text {
  color: #6B7280;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.375rem;
  letter-spacing: -0.18px;
}

.ds-mission-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ds-mission-card-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.ds-mission-stat-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  background-color: #F9FAFB;
  padding: 1.25rem;
  border-radius: 1rem;
}

.ds-mission-stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.ds-mission-stat-value {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5rem;
}

.ds-mission-stat-label {
  color: #6B7280;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.375rem;
  letter-spacing: -0.18px;
}

.ds-mission-stat-icon {
  display: flex;
  padding: 0.75rem;
  background: white;
  border-radius: 0.75rem;
}

/* ============================================
   PERFORMANCE SECTION
   ============================================ */

.ds-performance-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.ds-performance-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

/* ============================================
   AI ANALYSES SECTION
   ============================================ */

.ds-ai-analyses-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.ds-ai-analyses-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

.ds-ai-analysis-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.ds-ai-analysis-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.ds-ai-analysis-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.ds-ai-analysis-company {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ds-ai-analysis-company-logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ds-ai-analysis-company-name {
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375rem;
  letter-spacing: -0.18px;
}

.ds-ai-analysis-contact-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  background: white;
  padding: 0.125rem 0.625rem 0.125rem 0.5rem;
  border-radius: 0.5rem;
}

.ds-ai-analysis-contact-name {
  color: #6B7280;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.ds-ai-analysis-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.ds-ai-analysis-time {
  color: #6B7280;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.375rem;
  letter-spacing: -0.18px;
}

.ds-ai-analysis-arrow-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.ds-ai-analysis-arrow-btn:hover {
  background-color: #F3F4F6;
}

/* ============================================
   RECOMMENDATIONS SECTION
   ============================================ */

.ds-recommendations-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.ds-recommendations-grid {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  flex-wrap: wrap;
}

.ds-recommendation-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 0 0 100%;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .ds-recommendation-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

.ds-recommendation-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  align-self: stretch;
}

.ds-recommendation-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
}

.ds-recommendation-icon-yellow {
  background-color: #FEF3C7;
}

.ds-recommendation-icon-blue {
  background-color: #DBEAFE;
}

.ds-recommendation-icon-gray {
  background-color: #F3F4F6;
}

.ds-recommendation-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  flex: 1 0 0;
}

.ds-recommendation-title {
  align-self: stretch;
  color: #111827;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.ds-recommendation-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

.ds-recommendation-scores {
  display: flex;
  align-items: center;
  gap: 1rem;
  align-self: stretch;
}

.ds-recommendation-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  flex: 1 0 0;
}

.ds-recommendation-score-value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.ds-recommendation-score-value-orange {
  color: #F59E0B;
  background-color: #FFEDD5;
}

.ds-recommendation-score-value-green {
  color: #22C55E;
  background-color: #DCFCE7;
}

.ds-recommendation-score-value-gray {
  color: #111827;
  background-color: #F3F4F6;
}

.ds-recommendation-score-label {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
}

.ds-recommendation-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
  background-color: #F9FAFB;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #E5E7EB;
}

.ds-recommendation-content-title {
  align-self: stretch;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.ds-recommendation-content-text {
  align-self: stretch;
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
}

.ds-recommendation-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: stretch;
  padding: 0.625rem 1.125rem;
  border-radius: 0.5rem;
  border: 1px solid #3B82F6;
  background-color: #ffffff;
  cursor: pointer;
  color: #3B82F6;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.ds-recommendation-btn:hover {
  background-color: #EFF6FF;
}

/* ============================================
   CRM SECTION
   ============================================ */

.ds-crm-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.ds-crm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ds-crm-mission-selector {
  position: relative;
  align-self: stretch;
}

.ds-crm-mission-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #E5E7EB;
  background-color: #ffffff;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
}

.ds-crm-mission-btn:hover {
  background-color: #F9FAFB;
}

/* ============================================
   KANBAN BOARD
   ============================================ */

.ds-kanban-board {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  overflow-x: auto;
}

.ds-kanban-column {
  display: flex;
  min-width: 280px;
  width: 25%;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
  background-color: #F3F4F6;
  padding: 1rem;
  border-radius: 1rem;
}

.ds-kanban-column-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
}

.ds-kanban-column-title {
  flex: 1 0 0;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
}

.ds-kanban-column-count {
  display: flex;
  padding: 0.125rem 0.5rem;
  justify-content: center;
  align-items: center;
  border-radius: 9999px;
  background-color: #FFFFFF;
  color: #6B7280;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.125rem;
}

.ds-kanban-lead-card {
  padding: 1rem;
  width: 100%;
}

.ds-kanban-lead-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.ds-kanban-lead-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  align-self: stretch;
}

.ds-kanban-lead-title {
  align-self: stretch;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.ds-kanban-lead-subtitle {
  align-self: stretch;
  color: #6B7280;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.125rem;
}

.ds-kanban-lead-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
}

.ds-kanban-lead-avatar {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  justify-content: center;
  align-items: center;
  border-radius: 9999px;
  background-color: #F3F4F6;
}

.ds-kanban-lead-assignee {
  color: #6B7280;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.125rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid #6B7280;
  border-radius: 0.375rem;
}

.ds-kanban-lead-time {
  color: #6B7280;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.125rem;
}
