body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
}

#addNewPodButton {
  background-color: #F04438;
  color: white;
  border-radius: 10px;
}

.contact-initials {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #F04438;
}

.contacts::-webkit-scrollbar {
  width: 6px;
}

.contacts::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}
#confirmDeleteButton .loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: inherit;
}

#confirmDeleteButton .loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#confirmDeleteButton .button-text {
  transition: opacity 0.3s ease;
}
.contact-item {
  display: flex;
  flex-wrap: wrap; /* Ensure content wraps on smaller screens */
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 10px;
  background-color: #fff;
}

.contact-initials {
  flex-shrink: 0; /* Prevent initials from shrinking */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid white;
  background-color: #f04438;
  margin-right: 10px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0; /* Prevent overflow */
}

.contact-info h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  word-break: break-word; /* Handle long names */
}

.contact-info small {
  color: #6c757d;
  font-size: 14px;
  word-break: break-word; /* Prevent text overflow */
}

.contact-actions {
  display: flex;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  gap: 10px; /* Add space between buttons */
  margin-top: 10px;
}

.contact-actions button {
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-actions button.btn-outline-success {
  color: #28a745;
  border: 1px solid #28a745;
  background-color: white;
}

.contact-actions button.btn-outline-success:hover {
  background-color: #28a745;
  color: white;
}

.contact-actions button.btn-outline-primary {
  color: #007bff;
  border: 1px solid #007bff;
  background-color: white;
}

.contact-actions button.btn-outline-primary:hover {
  background-color: #007bff;
  color: white;
}

.contact-actions .badge {
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 5px;
  font-weight: 500;
}

.contact-actions i {
  font-size: 18px;
  cursor: pointer;
}

@media only screen and (max-width: 768px) {
  .contact-item {
    flex-direction: column; /* Stack elements vertically */
    align-items: flex-start;
  }

  .contact-info {
    margin-top: 10px; /* Add spacing */
  }

  .contact-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }
}

@media only screen and (max-width: 425px) {
  .contact-item {
    width: 100%; /* Ensure the card spans the full width */
  }

  .contact-info h6,
  .contact-info small {
    font-size: 14px; /* Adjust font size for small screens */
  }

  .contact-actions {
    flex-direction: row;
    justify-content: space-between; /* Align actions evenly */
    gap: 5px; /* Reduce gap for small screens */
  }

  .contact-actions button {
    font-size: 12px; /* Smaller button text for small screens */
    padding: 4px 8px;
  }

  .contact-actions .badge {
    font-size: 10px;
  }
}

/* Align checkbox and label at the top */
.contact-form-group .d-flex {
  align-items: flex-start; /* Aligns items at the top */
}

.contact-form-group input[type="checkbox"] {
  margin-top: 4px; /* Slight adjustment to align with the label text */
  margin-right: 10px; /* Spacing between checkbox and label */
}

.contact-form-group label {
  margin: 0; /* Remove additional margins */
  line-height: 1.5; /* Maintain proper spacing for multi-line text */
}


/* Basic styling for the toggle switch */
.form-check-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

/* Styling for the toggle when checked */
.form-check-input:checked {
  background-color: #4caf50;
}

/* The small circle inside the toggle switch */
/* .form-check-input::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
} */

/* Move the small circle to the right when checked */
.form-check-input:checked::before {
  transform: translateX(20px);
}

/* Optional: Add a hover effect for better interactivity */
.form-check-input:hover {
  background-color: #bfbfbf;
}
