/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
.chart-placeholder {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-body);
  border-radius: var(--radius-md);
}

/* Lead Detail */
.lead-detail-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.lead-detail-header .lead-avatar {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}
.lead-detail-header .lead-info h2 {
  margin-bottom: 0.25rem;
}
.lead-detail-header .lead-info .lead-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item .timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.timeline-item .timeline-content {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.timeline-item .timeline-user {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Call History */
.call-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}
.call-item:last-child {
  border-bottom: none;
}
.call-item .call-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.call-item .call-icon.answered {
  background: #d1fae5;
}
.call-item .call-icon.missed {
  background: #fee2e2;
}
.call-item .call-info {
  flex: 1;
}
.call-item .call-number {
  font-weight: 500;
  font-size: 0.9rem;
}
.call-item .call-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sale Form */
.sale-form-section {
  margin-bottom: 1.5rem;
}
.sale-form-section h4 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

/* BackOffice */
.backoffice-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.audio-player audio {
  width: 100%;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.open {
    transform: translateX(0);
  }
  #topbar {
    left: 0;
  }
  #main-content {
    margin-left: 0;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-secondary);
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
}
