/* static/css/salespeople.css */

/* Timeline component */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e9ecef;
}

.timeline-item {
  position: relative;
  padding-bottom: 1rem;
}

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #6c757d;
  margin-top: 0.25rem;
}

.timeline-content {
  padding-left: 0.5rem;
}

/* Card stats */
.card .display-4 {
  font-size: 2.5rem;
  margin-bottom: 0;
}

/* Table styling */
.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* Modern data list styling */
.data-list-item {
  transition: background-color 0.15s ease;
}

.data-list-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Icon box for card headers */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* Next actions panel: let list fill card height */
.next-actions-body {
  min-height: 0;
}

.next-actions-list {
  min-height: 0;
  overflow-y: auto;
}

/* Card shadow hover effect */
.card.shadow-sm {
  transition: box-shadow 0.2s ease;
}

.card.shadow-sm:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
}

/* Clean scrollbar for data lists */
.data-list::-webkit-scrollbar {
  width: 4px;
}

.data-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.data-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.data-list::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Email timeline styles */
.email-timeline {
  max-height: 250px;
  overflow-y: auto;
}

.email-timeline-item {
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  padding: 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 4px;
}

.email-timeline-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.email-timeline-item.active {
  background-color: rgba(13, 110, 253, 0.1);
}

.graph-email-meta {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.graph-email-body {
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.5;
}

/* Responsive design tweaks */
@media (max-width: 767.98px) {
  .text-md-end {
    text-align: left !important;
    margin-top: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .table td, .table th {
    padding: 0.5rem;
  }

  .email-timeline {
    max-height: 200px;
  }
}
