/* Dashboard Specific Styles */

/* Header Actions */
.header-actions {
  display: flex;
  gap: 12px;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.quick-action-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-action-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--primary-light);
  color: var(--primary);
}

.quick-action-text {
  flex: 1;
}

.quick-action-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.quick-action-desc {
  font-size: 13px;
  color: var(--gray-500);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-left,
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Card Title with Icon */
.card-title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-with-icon i {
  font-size: 18px;
}

/* Priority Card */
.priority-card {
  border-left: 4px solid #f59e0b;
}

/* Hot Leads */
.hot-lead-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
}

.hot-lead-item:hover {
  background: var(--gray-50);
}

.hot-lead-item:last-child {
  border-bottom: none;
}

.hot-lead-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.hot-lead-info {
  flex: 1;
}

.hot-lead-name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.hot-lead-meta {
  font-size: 13px;
  color: var(--gray-500);
}

.hot-lead-value {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 15px;
}

.hot-lead-actions {
  display: flex;
  gap: 8px;
}

.hot-lead-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all 0.2s;
}

.hot-lead-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Activity Card */
.activity-card {
  flex: 1;
}

.activity-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.activity-icon.email { background: #dbeafe; color: #2563eb; }
.activity-icon.call { background: #d1fae5; color: #059669; }
.activity-icon.task { background: #fef3c7; color: #d97706; }
.activity-icon.note { background: #f3e8ff; color: #7c3aed; }
.activity-icon.lead { background: var(--primary-light); color: var(--primary); }

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 14px;
  color: var(--gray-800);
  line-height: 1.5;
  margin-bottom: 4px;
}

.activity-text strong {
  color: var(--gray-900);
}

.activity-time {
  font-size: 12px;
  color: var(--gray-400);
}

/* Goal Card */
.goal-card {
  border-left: 4px solid var(--success);
}

.goal-progress {
  margin-bottom: 24px;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.goal-label {
  color: var(--gray-600);
}

.goal-value {
  font-weight: 600;
  color: var(--gray-900);
}

.progress-bar {
  height: 10px;
  background: var(--gray-200);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), #34d399);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.goal-footer {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.goal-percentage {
  color: var(--success);
  font-weight: 600;
}

.goal-remaining {
  color: var(--gray-500);
}

.goal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

.goal-stat {
  text-align: center;
}

.goal-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.goal-stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Pipeline Overview */
.pipeline-overview {
  margin-top: 0;
}

.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pipeline-stage {
  text-align: center;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.stage-name {
  font-weight: 600;
  color: var(--gray-700);
}

.stage-count {
  background: var(--gray-200);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

.stage-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.stage-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.stage-fill.new { background: #3b82f6; }
.stage-fill.contacted { background: #f59e0b; }
.stage-fill.qualified { background: #10b981; }
.stage-fill.negotiation { background: #8b5cf6; }

.stage-value {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 15px;
}

/* Follow-ups Section */
.followup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.followup-urgent {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
}

.followup-content {
  flex: 1;
}

.followup-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.followup-due {
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
}

.followup-btn {
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.followup-btn:hover {
  background: var(--primary-dark);
}

/* Task Items in Dashboard */
.dashboard-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all 0.2s;
}

.dashboard-task-item:last-child {
  border-bottom: none;
}

.dashboard-task-item:hover {
  background: var(--gray-50);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.dashboard-task-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.dashboard-task-content {
  flex: 1;
}

.dashboard-task-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.dashboard-task-title.completed {
  text-decoration: line-through;
  color: var(--gray-400);
}

.dashboard-task-meta {
  font-size: 12px;
  color: var(--gray-500);
}

.dashboard-task-priority {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.dashboard-task-priority.high { background: #fee2e2; color: #991b1b; }
.dashboard-task-priority.medium { background: #fef3c7; color: #92400e; }
.dashboard-task-priority.low { background: #d1fae5; color: #065f46; }

/* Empty States */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state i {
  font-size: 48px;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.empty-state h4 {
  color: var(--gray-600);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--gray-400);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .pipeline-stages {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .header-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .pipeline-stages {
    grid-template-columns: 1fr;
  }
  
  .goal-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
