/* ===================
#20c997 // Primary
#37BF39 // Success
#3D4DFF // Info
#FFBF00 // Warning
#FF353C // Danger
====================== */

.debug {
  border: solid 1px red !important;
}

.avatar-header {
  background: #fff;
  border-radius: 50px;
  height: 36px;
  line-height: 36px;
  margin-left: 12px;
  padding: 1px;
  transition: all .5s ease-in-out;
  width: 36px;
}

form .help-block {
  color: #f36868;
  font-size: 15px;
}

.position-relative {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 46px;
  right: 10px;
  cursor: pointer;
  color: #555;
}

.toggle-password i {
  font-size: 20px;
}

.captcha {
  width: 149px;
  border: solid 1px #c19b76;
}

.captcha-input {
  width: 50%;
}

.alert-success {
  color: #FFF;
  background-color: #37BF39;
  border-color: #37BF39;
}

.alert-danger {
  color: #FFF;
  background-color: #FF353C;
  border-color: #FF353C;
}

.avatar-user img {
  width: 80px;
  height: 80px;
  border: 2px dashed #20c997;
  border-radius: 50px;
  padding: 3px;
  margin-right: 17px;
}

.badge {
  align-items: center;
  background: linear-gradient(90deg, #20c997, #00A2B2);
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: initial;
  margin-left: 4px;
  position: relative;
  text-transform: uppercase;
}

.badge-text {
  position: relative;
  z-index: 1;
}

.plus {
  color: #FFD700;
  margin-left: 5px;
}

.contacto-index {
  padding: 2rem;
  background-color: #f8f9fa;
}

.page-title {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.search-container {
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: white;
  padding: 0.5rem;
  max-width: 100%;
}

.input-group {
  flex: 1;
  margin-left: 10px;
}

.type-selector {
  flex: 1;
  margin-bottom: 2.3rem;
  max-width: 400px;
  margin-left: 10px;
}

.section {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.section h3 {
  color: #34495e;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.grid-view {
  overflow-x: auto;
}

.grid-view table {
  border-collapse: collapse;
  width: 100%;
}

.grid-view th {
  background-color: #f4f6f8;
  color: #2c3e50;
  font-weight: 600;
  padding: 1rem;
}

.grid-view td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.sortable {
  cursor: pointer;
}

.sortable i {
  margin-left: 5px;
}

th[data-sort] {
  user-select: none;
}

th[data-sort]:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.fa-sort,
.fa-sort-up,
.fa-sort-down {
  margin-left: 5px;
}

#contacts-grid {
  position: relative;
  margin-bottom: 2rem;
}

#contacts-grid table {
  width: 100%;
  border-collapse: collapse;
}

#contacts-grid thead {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.table-striped td,
.table-striped th {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.loading-indicator {
  text-align: center;
  padding: 2rem;
}

@media (max-width: 768px) {
  #contacts-grid {
    max-height: 400px;
  }
}

#mensaje-historial {
  max-height: 200px;
  overflow-y: auto;
}

.list-group-item {
  padding: 0.5rem 1rem;
}

.modal-lg {
  max-width: 800px;
}

.badge {
  padding: 0.5rem 0.75rem;
}

.timeline-container {
  position: relative;
  padding: 20px 0;
}

.timeline-item {
  position: relative;
  padding: 10px 0 10px 30px;
  border-left: 2px solid #007bff;
  margin-left: 15px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 15px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #007bff;
}

.timeline-date {
  font-weight: bold;
  color: #495057;
}

.timeline-user {
  color: #6c757d;
  margin-left: 5px;
}

.timeline-container {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

#modal-historial {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f8f9fa;
  margin: 10px 0;
}

.timeline-item {
  padding: 10px;
  margin-bottom: 10px;
  border-left: 3px solid #0d6efd;
  background-color: white;
  position: relative;
}

.timeline-item:nth-child(n+6) {
  margin-top: 5px;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -1px;
  bottom: -10px;
  width: 1px;
  height: 10px;
  background-color: #0d6efd;
}

/* Estilo para la barra de scroll */
.timeline-container::-webkit-scrollbar {
  width: 8px;
}

.timeline-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.page-item.disabled .page-link {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
}

.page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* PAGINATION */

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 2rem;
}

.pagination {
  position: absolute;
}

.page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.page-link {
  min-width: 40px;
  text-align: center;
  border-radius: 4px !important;
}

.table-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* NOTIFICACION NO LEIDO */

.unread-dot {
  color: orange;
  font-size: 0.8rem;
  vertical-align: middle;
  margin-left: 5px;
}