/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

/* Follow-Up Toast Styling */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    border: 1px solid #ffeaa7;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.followup-toast {
    border-left-color: #9c88d4;
    background: linear-gradient(135deg, #f7f5ff 0%, #ffffff 100%);
    border-color: #e5dff7;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.toast-message strong {
    color: #b8540a;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.toast-message span {
    color: #856404;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #b8540a;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-close:hover {
    background-color: rgba(184, 84, 10, 0.1);
    color: #8b3d07;
}

.toast-link {
    color: #b8540a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #b8540a;
    padding-bottom: 1px;
}

.toast-link:hover {
    color: #8b3d07;
    border-bottom-color: #8b3d07;
}

/* Follow-Up Badge Styling */
.followup-badge {
    background-color: #9c88d4;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.has-followups {
    border-left: 3px solid #fd7e14 !important;
}

.has-followups-card {
    border-left: 3px solid #fd7e14 !important;
}

/* Follow-up preview in resolve modal */
.followup-to-resolve {
    background-color: #fff3e6;
    border: 1px solid #ffcc99;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.followup-to-resolve h6 {
    color: #b8540a;
    margin-bottom: 8px;
    font-weight: 600;
}

.followup-preview {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #fd7e14;
}

.followup-preview strong {
    color: #856404;
}

.followup-preview p {
    margin: 4px 0 0 0;
    color: #495057;
    font-size: 14px;
}

html {
  font-size: 14px;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Layout System */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
  width: 100%;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .col-md-4 { width: 33.333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666%; }
  .col-md-12 { width: 100%; }
}

/* Utility Classes */
.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-grow-1 { flex-grow: 1; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-danger { color: #dc3545; }
.bg-light { background-color: #f8f9fa; }
.bg-white { background-color: #ffffff; }
.border-bottom { border-bottom: 1px solid #dee2e6; }
.border-top { border-top: 1px solid #dee2e6; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.gap-3 { gap: 1rem; }
.sticky-top { position: sticky; top: 0; z-index: 1000; }

/* Admin Content Styles */
.admin-content {
  padding: 2em;
}

/* Responsive Display Utilities */
@media (min-width: 768px) {
  .d-sm-inline-flex { display: inline-flex; }
}

/* Buttons - Simplified */
.btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: normal;
  text-align: center;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 2px;
  cursor: pointer;
  background-color: #f8f9fa;
  color: #333;
  min-height: 38px;
  line-height: 1.4;
}

.btn:hover {
  background-color: #e9ecef;
  border-color: #ccc;
  text-decoration: none;
  color: #333;
}

.btn:focus, .btn:active:focus {
  outline: 2px solid #007bff;
  outline-offset: 1px;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  color: #fff;
}

/* Semantic button classes for UI elements */
.btn-add-note {
  background-color: var(--color-add-note);
  border-color: var(--color-add-note);
  color: var(--color-white);
}

.btn-add-note:hover {
  background-color: var(--color-add-note-hover);
  border-color: var(--color-add-note-hover);
  color: var(--color-white);
}

/* Keep btn-secondary for backwards compatibility */
.btn-secondary {
  background-color: var(--color-add-note);
  border-color: var(--color-add-note);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-add-note-hover);
  border-color: var(--color-add-note-hover);
  color: var(--color-white);
}

/* Context-specific button classes */
.btn-mark-attended {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: var(--color-white);
}

.btn-mark-attended:hover {
  background-color: var(--color-success-hover);
  border-color: var(--color-success-hover);
  color: var(--color-white);
}

.btn-resolve-followup {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: var(--color-white);
}

.btn-resolve-followup:hover {
  background-color: var(--color-success-hover);
  border-color: var(--color-success-hover);
  color: var(--color-white);
}

.btn-sponsor-note {
  background-color: var(--color-warning);
  border-color: var(--color-warning);
  color: var(--color-dark);
}

.btn-sponsor-note:hover {
  background-color: var(--color-warning-hover);
  border-color: var(--color-warning-hover);
  color: var(--color-dark);
}

.btn-admin-note {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

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

/* Keep legacy classes for backwards compatibility */
.btn-success {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
  color: #fff;
}

.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #212529;
}

.btn.blue {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.btn.blue:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  color: #fff;
}

/* CSS Custom Properties for consistent theming */
:root {
  --color-primary: #007bff;
  --color-primary-hover: #0056b3;
  --color-add-note: #17a2b8;
  --color-add-note-hover: #138496;
  --color-success: #28a745;
  --color-success-hover: #218838;
  --color-warning: #ffc107;
  --color-warning-hover: #e0a800;
  --color-white: #fff;
  --color-dark: #212529;
}

/* Additional button variants to replace Bootstrap */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  color: #fff;
}

.btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
  color: #fff;
}

.btn-info:hover {
  background-color: #138496;
  border-color: #117a8b;
  color: #fff;
}

.btn-link {
  background-color: transparent;
  border-color: transparent;
  color: #007bff;
  text-decoration: underline;
}

.btn-link:hover {
  background-color: transparent;
  border-color: transparent;
  color: #0056b3;
  text-decoration: underline;
}

/* Outline button variants */
.btn-outline-primary {
  background-color: transparent;
  border-color: #007bff;
  color: #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.btn-outline-secondary {
  background-color: transparent;
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

.btn-outline-success {
  background-color: transparent;
  border-color: #28a745;
  color: #28a745;
}

.btn-outline-success:hover {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
}

.btn-outline-warning {
  background-color: transparent;
  border-color: #ffc107;
  color: #ffc107;
}

.btn-outline-warning:hover {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

.btn-outline-danger {
  background-color: transparent;
  border-color: #dc3545;
  color: #dc3545;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.btn-outline-info {
  background-color: transparent;
  border-color: #17a2b8;
  color: #17a2b8;
}

.btn-outline-info:hover {
  background-color: #17a2b8;
  border-color: #17a2b8;
  color: #fff;
}

/* Button sizes */
.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
  min-height: 30px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 18px;
  min-height: 48px;
}

/* Button close */
.btn-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #000;
  opacity: 0.5;
  cursor: pointer;
}

.btn-close:hover {
  opacity: 0.75;
}

/* Width utilities */
.w-100 {
  width: 100%;
}

@media (max-width: 767px) {
  .btn {
    min-height: 44px;
    font-size: 16px;
    padding: 12px 16px;
  }
  
  .btn-sm {
    min-height: 38px;
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .btn-lg {
    min-height: 52px;
    font-size: 20px;
    padding: 16px 28px;
  }
}

/* Form Styles - Simplified */
.form-group {
  margin-bottom: 1rem;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.form-check-input {
  margin-right: 0.5rem;
  margin-top: 0;
}

.form-check-label {
  display: flex;
  align-items: center;
  font-weight: normal;
  margin-bottom: 0;
}

.control-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: normal;
  color: #333;
}

.form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  min-height: 38px;
}

@media (max-width: 767px) {
  .form-control {
    min-height: 44px;
    font-size: 16px;
    padding: 12px;
  }
}

.form-control:focus {
  border-color: #007bff;
  outline: 0;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  height: 38px;
}

@media (max-width: 767px) {
  select.form-control {
    height: 44px;
  }
}

/* Navigation Styles - Simplified */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  min-height: 60px;
}

.navbar-expand-sm .navbar-collapse {
  display: flex;
  flex-basis: auto;
}

.navbar-collapse {
  flex-grow: 1;
  align-items: center;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
}

.nav-link:hover {
  color: #007bff;
  text-decoration: underline;
}

.navbar-light .navbar-nav .nav-link {
  color: #333;
}

.navbar-toggleable-sm {
  flex-wrap: nowrap;
}

/* Mobile Navigation */
.sidenav-trigger {
  display: none;
  padding: 8px;
  color: #333;
  font-size: 24px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}

.sidenav {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  z-index: 1001;
  padding: 1rem;
  overflow-y: auto;
}

.sidenav.show {
  left: 0;
}

.sidenav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
}

.sidenav-overlay.show {
  display: block;
}

.sidenav li {
  list-style: none;
  margin: 0.5rem 0;
}

.sidenav .nav-link {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.sidenav .divider {
  height: 1px;
  background-color: #ddd;
  margin: 1rem 0;
}

.sidenav .admin-section {
  padding: 0.5rem 0;
}

.sidenav .admin-header {
  font-weight: bold;
  color: #007bff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile-specific navigation rules */
@media (max-width: 767px) {
  .sidenav-trigger {
    display: block !important;
  }
  
  .navbar-collapse {
    display: none !important;
  }
  
  .hide-on-med-and-up {
    display: block !important;
  }
  
  .navbar {
    min-height: 50px;
    padding: 0.25rem 1rem;
  }
}

/* Desktop-specific navigation rules */
@media (min-width: 768px) {
  .sidenav-trigger {
    display: none !important;
  }
  
  .navbar-collapse {
    display: flex !important;
  }
  
  .hide-on-med-and-up {
    display: none !important;
  }
}

/* Contact Cards - Independent styling */
.contact-cards-container {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.contact-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
  transform: translateY(-1px);
}

.contact-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.contact-link:hover {
  text-decoration: none;
  color: inherit;
}

.contact-header {
  margin-bottom: 0.5rem;
}

.contact-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.3;
}

.contact-info {
  margin: 0;
}

.sponsor-info {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.sponsor-info .label {
  color: #868e96;
}

.sponsor-info .sponsor-name {
  color: #495057;
  font-weight: 500;
}

/* Inactive contact styling updates */
.contact-card.inactive-contact {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  opacity: 0.8;
}

.contact-card.inactive-contact .contact-name {
  color: #6c757d;
}

.contact-card.inactive-contact .sponsor-info {
  color: #adb5bd;
}

.contact-card.inactive-contact .sponsor-info .label {
  color: #adb5bd;
}

.contact-card.inactive-contact .sponsor-info .sponsor-name {
  color: #868e96;
  font-weight: 400;
}

.contact-card.inactive-contact:hover {
  border-color: #6c757d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Simple icon styles */
.icon {
  display: inline-block;
  font-size: 16px;
}

.icon.left {
  margin-right: 8px;
}

/* Modal Styles - Constrained to viewport */
.modal {
  display: none;
  position: fixed;
  z-index: 1100; /* Higher than other elements */
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px;
  padding-bottom: 50px; /* Reduced padding */
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 2px;
  width: 90%;
  max-width: 500px;
  min-height: 200px;
  max-height: 80vh; /* Constrain to viewport height */
  box-sizing: border-box;
  overflow-y: auto; /* Allow internal scrolling */
  margin-bottom: 20px; /* Reduced margin */
}

.modal-content h4 {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: normal;
}

.modal-footer {
  margin-top: 20px;
  text-align: right;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.modal-close {
  color: #666;
  text-decoration: none;
  padding: 8px 16px;
  cursor: pointer;
}

.modal-close:hover {
  color: #333;
  text-decoration: underline;
}

/* Simple hover effect */
.waves-effect {
  cursor: pointer;
}

.waves-effect:hover {
  opacity: 0.9;
}

.waves-light {
  /* Remove specific waves styling */
}

/* Chips */
.chip {
  display: inline-block;
  padding: 4px 12px;
  margin: 2px;
  border-radius: 16px;
  background-color: #e4e4e4;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.chip.blue {
  background-color: #2196F3;
}

.chip.text-white {
  color: #fff;
}


/* Mobile-specific improvements */
@media (max-width: 767px) {
  .collection-item {
    padding: 16px 0;
  }
  
  .collection-item h6 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  
  .collection-item p {
    font-size: 16px;
  }
  
  .modal {
    padding: 10px;
  }
  
  .modal.show {
    padding-top: 20px;
    padding-bottom: 20px; /* Standard padding */
  }
  
  .modal-content {
    width: 95%;
    padding: 16px;
    max-height: 85vh; /* More space on mobile */
    margin-bottom: 10px; /* Minimal margin */
  }
  
  .contacts-menu {
    padding: 8px 0;
    margin-bottom: 0.5rem;
  }
  
  .contacts-menu .container {
    padding: 0 12px;
  }
  
  .gap-3 {
    gap: 0.75rem;
  }
}

/* Additional mobile touch targets */
@media (max-width: 767px) {
  a, button, .btn, .collection-item a {
    min-height: 44px;
    padding: 12px;
  }
  
  .form-check-input {
    width: 18px;
    height: 18px;
  }
  
  .slide-toggle-container {
    gap: 10px;
  }
  
  .switch {
    width: 65px;
    height: 38px;
  }
  
  .slider:before {
    height: 30px;
    width: 30px;
  }
  
  input:checked + .slider:before {
    transform: translateX(27px);
  }
}

/* Card Styles - Simple */
.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  margin: 1rem 0;
}

.card-content {
  padding: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}

.card-content p {
  margin: 8px 0;
  line-height: 1.5;
}

.card-action {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

.card-action a {
  color: #007bff;
  text-decoration: none;
  margin-right: 12px;
}

.card-action a:hover {
  text-decoration: underline;
}

.card-action span {
  color: #ccc;
  margin: 0 8px;
}

/* Inactive Contact Page Styling */
.inactive-contact-page {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  opacity: 0.9;
}

.inactive-contact-page .contact-header h4 {
  color: #6c757d;
}

.inactive-contact-page .contact-notes h5 {
  color: #6c757d;
}

.inactive-contact-page hr {
  border-color: #dee2e6;
}

/* Inactive Contact Card Styling */
.inactive-contact-card {
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
  opacity: 0.8;
}

.inactive-contact-card .card-title {
  color: #6c757d !important;
}

.inactive-contact-card .card-title strong {
  color: #6c757d !important;
}

.inactive-contact-card .contact-address {
  color: #868e96 !important;
}

.inactive-contact-card .contact-sponsor {
  color: #868e96 !important;
}

.inactive-contact-card .contact-sponsor strong {
  color: #6c757d !important;
  font-weight: 400;
}

.inactive-contact-card .card-action {
  background-color: #f1f3f4 !important;
  border-color: #dee2e6 !important;
}

.inactive-contact-card .card-action a {
  color: #6c757d !important;
}

/* Inactive Contact Notes */
.inactive-contact-page .collection-item {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  color: #6c757d;
}

.inactive-contact-page .collection-item strong {
  color: #6c757d;
  font-weight: 500;
}

.inactive-contact-page .collection-item p {
  color: #868e96;
}

body {
  margin: 0;
  height: 100%;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.app-header {
  flex-shrink: 0;
  position: relative;
  z-index: 1000;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.app-footer {
  flex-shrink: 0;
  background-color: #f8f9fa;
  padding: 1rem 0 1.5rem 0;
}

/* Content area that accounts for sticky contacts menu */
.content-with-menu {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.content-scrollable {
  height: 100%;
  overflow-y: auto;
  padding-bottom: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }
  
  #footer-shoe-icon {
    font-size: 1.8rem !important;
    margin-right: 12px !important;
  }
  
  #shoe-beauty-text {
    font-size: 1.1rem !important;
  }
  
  .shoe-line {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-only {
    display: block;
  }
}

.mobile-only {
  display: none;
}

/* Toggle Switch */
.slide-toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-toggle-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #198754;
}

input:focus + .slider {
  box-shadow: 0 0 1px #198754;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Inactive Contact Styling */
.inactive-contact {
  opacity: 0.6;
  background-color: #f8f9fa !important;
  border-left: 4px solid #6c757d;
}

.inactive-contact a {
  color: #6c757d !important;
}

.inactive-contact:hover {
  background-color: #e9ecef !important;
}

.inactive-badge {
  display: inline-block;
  background-color: #6c757d;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: top;
}

.inactive-contact .material-icons.circle.grey {
  background-color: #6c757d !important;
}

/* Override Materialize styles for inactive items */
.collection .collection-item.inactive-contact {
  border-bottom: 1px solid #e0e0e0;
}

/* Contacts Menu - Fixed positioning within content area */
.contacts-menu {
  position: sticky;
  top: 0;
  z-index: 998;
  background-color: #f8f9fa;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Mobile-friendly Create Contact button */
.contacts-menu .btn {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  font-size: 14px !important;
}

@media (max-width: 767px) {
  .contacts-menu .btn {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
}

/* Contact Urgency Pill System */
.last-note-date, .last-note-info {
  font-size: 0.85rem;
  margin: 0.5rem 0 0 0;
}

.urgency-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid;
  white-space: nowrap;
}

/* Urgency levels with increasing intensity */
.urgency-pill.recent {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.urgency-pill.week-old {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.urgency-pill.month-old {
  background-color: #ffeaa7;
  color: #b8540a;
  border-color: #fd7e14;
}

.urgency-pill.stale {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #dc3545;
  animation: pulse-stale 3s infinite;
}

.urgency-pill.very-stale {
  background-color: #dc3545;
  color: white;
  border-color: #b02a37;
  animation: pulse-urgent 2s infinite;
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
}

.urgency-pill.no-contact {
  background-color: #6c757d;
  color: white;
  border-color: #495057;
  animation: pulse-critical 1.5s infinite;
  box-shadow: 0 0 12px rgba(108, 117, 125, 0.6);
}

/* Pulse animations for high urgency contacts */
@keyframes pulse-stale {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse-urgent {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes pulse-critical {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 12px rgba(108, 117, 125, 0.6);
  }
  50% { 
    opacity: 0.9;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(108, 117, 125, 0.8);
  }
}

/* Table specific sizing */
.table .urgency-pill {
  font-size: 0.7rem;
  padding: 2px 6px;
}

/* Legacy support for existing classes */
.stale-indicator {
  color: #dc3545;
  font-weight: 500;
  padding: 2px 6px;
  background-color: rgba(220, 53, 69, 0.1);
  border-radius: 3px;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.recent-indicator {
  color: #28a745;
  font-weight: 500;
  padding: 2px 6px;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 3px;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Contact card styling for stale contacts */
.contact-card.stale-contact {
  border-left: 3px solid #dc3545;
  background-color: #fdf2f2;
}

.contact-card.stale-contact:hover {
  border-color: #dc3545;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.15);
}

/* Enhance existing card styling */
.contact-card.has-followups {
  border-left: 3px solid #fd7e14;
}

.contact-card.inactive-contact {
  border-left: 3px solid #6c757d;
}

/* Priority order for border colors (most important to least) */
.contact-card.inactive-contact {
  border-left: 3px solid #6c757d !important;
}

.contact-card.has-followups {
  border-left: 3px solid #fd7e14 !important;
}

.contact-card.stale-contact:not(.inactive-contact):not(.has-followups) {
  border-left: 3px solid #dc3545 !important;
}

/* Stale contact card styling (for the card component) */
.card.stale-contact-card {
  border-left: 3px solid #dc3545;
  background-color: #fdf2f2;
}

.card.stale-contact-card:hover {
  border-color: #dc3545;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.15);
}

/* Card component priority order */
.card.inactive-contact-card {
  border-left: 3px solid #6c757d !important;
}

.card.has-followups-card {
  border-left: 3px solid #fd7e14 !important;
}

.card.stale-contact-card:not(.inactive-contact-card):not(.has-followups-card) {
  border-left: 3px solid #dc3545 !important;
}

/* Table row stale indicators */
.table-stale {
  background-color: rgba(220, 53, 69, 0.05) !important;
  border-left: 3px solid #dc3545 !important;
}

.table-stale:hover {
  background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Ensure stale rows are visible even with other styling */
.table-secondary.table-stale {
  background-color: rgba(220, 53, 69, 0.08) !important;
}

.orphaned-row.table-stale {
  background-color: rgba(220, 53, 69, 0.1) !important;
}

.orphaned-row.table-stale:hover {
  background-color: rgba(220, 53, 69, 0.15) !important;
}

/* Table cell styling for stale/recent indicators in tables */
.table .stale-indicator,
.table .recent-indicator {
  font-size: 0.8rem;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 500;
}

/* Adjust followup badge for table use */
.table .followup-badge {
  font-size: 0.6rem;
  padding: 1px 4px;
  margin-left: 4px;
}

