/* Admin Dashboard - Clean Bootstrap Enhancement */

/* Toast Notifications */
.toast-notification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 400px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  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;
}

.toast-notification.success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.toast-notification.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.toast-notification.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.toast-content i {
  font-size: 1.2rem;
}

.toast-close {
  background: none;
  border: none;
  padding: 0;
  margin-left: 10px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  font-size: 1.2rem;
  line-height: 1;
}

.toast-close:hover {
  opacity: 1;
}

/* Match main dashboard layout */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f7;
  min-height: 100vh;
}

/* ==========================================================================
   Dashboard Header - Match main dashboard
   ========================================================================== */

/* Dashboard Header */
.dashboard-header {
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
}

.dashboard-header .header-content h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: #1d1d1f;
}

.dashboard-header .welcome-message {
  font-size: 1.1rem;
  margin: 0 0 25px 0;
  color: #6e6e73;
}

/* ==========================================================================
   Dashboard Stats - Exact match with main dashboard
   ========================================================================== */

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: #f5f5f7;
  border-radius: 12px;
  border: 1px solid #e8e8ed;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #6e6e73;
  margin-top: 5px;
}

/* ==========================================================================
   Dashboard Controls - Exact match with main dashboard
   ========================================================================== */

/* Dashboard Controls */
.dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 18px;
  border: 1px solid #e8e8ed;
}

.filters-form {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-group .form-select {
  min-width: 200px;
  padding: 11px 15px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: white;
  font-size: 17px;
  color: #1d1d1f;
}

.view-controls {
  display: flex;
  gap: 10px;
}

.view-toggle {
  padding: 8px 16px;
  text-decoration: none;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.view-toggle:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.view-toggle.active {
  background: #ff0056;
  color: white !important;
  border-color: #ff0056;
}

.view-toggle.active:hover {
  background: #ff0056;
  color: white !important;
}

/* ==========================================================================
   Dashboard Chart - Match dashboard styling
   ========================================================================== */

.dashboard-chart {
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-chart h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1d1d1f;
}

.chart-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chart-filters .form-select {
  min-width: 140px;
  padding: 6px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #1d1d1f;
  transition: all 0.2s ease;
}

.chart-filters .form-select:focus {
  border-color: #ff0056;
  box-shadow: 0 0 0 3px rgba(255, 0, 86, 0.1);
  outline: none;
}

.chart-container {
  height: 400px;
  position: relative;
}

/* ==========================================================================
   Dashboard Users - Match dashboard styling
   ========================================================================== */

.dashboard-users {
  background: white;
  border: 1px solid #e8e8ed;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
}

#users-content {
  width: 100%;
}

#users-content .table-responsive {
  width: 100%;
  margin: 0;
}

#users-content .table {
  width: 100%;
  margin-bottom: 0;
}

.users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.users-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1d1d1f;
}

.search-form {
  flex-shrink: 0;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  min-width: 250px;
  padding: 8px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: white;
  font-size: 14px;
  color: #1d1d1f;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: #ff0056;
  box-shadow: 0 0 0 3px rgba(255, 0, 86, 0.1);
  outline: none;
}


.clear-search-btn {
  padding: 8px 12px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.clear-search-btn:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  text-decoration: none;
}

/* ==========================================================================
   Sortable Headers Styling
   ========================================================================== */

.sortable-header {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.sortable-header:hover {
  background-color: #f8f9fa !important;
}

.sortable-header a,
.sortable-header button {
  padding: 12px 8px;
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: 100%;
  transition: all 0.2s ease;
  background: none !important;
  border: none !important;
  text-decoration: none !important;
  color: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
  text-align: left !important;
}

.sortable-header a:hover,
.sortable-header button:hover {
  color: #ff0056 !important;
  text-decoration: none !important;
  background: none !important;
}

.sortable-header button:focus {
  outline: 2px solid #ff0056;
  outline-offset: 2px;
  color: #ff0056 !important;
  background: none !important;
}

.sortable-header button:active {
  background: none !important;
  border: none !important;
  color: #ff0056 !important;
}

.sort-icon {
  font-size: 12px;
  color: #ff0056;
  transition: all 0.2s ease;
}

.sort-icon-inactive {
  font-size: 10px;
  color: #6e6e73;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.sortable-header:hover .sort-icon-inactive {
  opacity: 0.8;
  color: #ff0056;
}

/* ==========================================================================
   User Name and Admin Badge Styling
   ========================================================================== */

.user-name-container {
  position: relative;
  display: inline-block;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 50%;
  color: white;
  font-size: 9px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease;
  z-index: 1;
}

.admin-badge:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
}

.admin-badge i {
  font-size: 11px;
}

/* Admin badge for navigation items */
.admin-badge-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 50%;
  color: white;
  font-size: 8px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(255, 107, 53, 0.3);
  transition: all 0.2s ease;
  vertical-align: super;
  position: relative;
  top: -2px;
}

.admin-badge-small:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

.admin-badge-small i {
  font-size: 9px;
}

/* ==========================================================================
   Pagination - Match main dashboard styling
   ========================================================================== */

.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 18px;
  border: 1px solid #e8e8ed;
}

.pagination-info {
  color: #6e6e73;
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pagination-btn {
  padding: 8px 16px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-btn:hover {
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.pagination-pages {
  display: flex;
  gap: 5px;
}

.pagination-number {
  padding: 8px 12px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.pagination-number:hover {
  background-color: #007bff;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.pagination-number.active {
  background: #ff0056;
  color: white !important;
  border-color: #ff0056;
}



/* ==========================================================================
   Responsive Design - Match main dashboard
   ========================================================================== */

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .dashboard {
    padding: 15px;
  }
  
  .dashboard-header {
    padding: 30px 20px;
  }
  
  .dashboard-header h1 {
    font-size: 2rem;
  }
  
  .dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .dashboard-stats .stat-item {
    flex: 0 0 calc(50% - 7.5px);
    max-width: 150px;
  }
  
  .dashboard-controls {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .filters-form {
    justify-content: center;
  }
  
  .view-controls {
    justify-content: center;
  }
  
  .chart-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .chart-filters {
    justify-content: center;
  }
  
  .chart-filters .form-select {
    min-width: auto;
    flex: 1;
  }
  
  .users-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .search-input-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .search-input {
    min-width: auto;
    width: 100%;
  }
  
  .pagination-wrapper {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* Loading states for AJAX pagination */
.pagination-loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pagination-btn:hover {
  background-color: #f8f9fa;
  color: #007bff;
}


/* Smooth loading transition */
#users-content.loading {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

/* HCP Dashboard Specific Styles */
.hcp-dashboard .stat-item.urgent .stat-number {
  color: #dc3545;
}

.hcp-dashboard .stat-item.urgent .stat-label {
  color: #dc3545;
}

/* HCP Dashboard Cards and Sections */
.hcp-dashboard .priority-alerts,
.hcp-dashboard .kpi-section,
.hcp-dashboard .action-section,
.hcp-dashboard .conditions-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Use admin dashboard button styles for HCP */
.hcp-dashboard .btn {
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.hcp-dashboard .btn-urgent {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
}

.hcp-dashboard .btn-urgent:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.hcp-dashboard .btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
}

.hcp-dashboard .btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* HCP Dashboard Expertise Badge */
.hcp-dashboard .dashboard-header {
  position: relative;
}

.hcp-dashboard .expertise-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.hcp-dashboard .expertise-badge:hover {
  color: white !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.hcp-dashboard .expertise-badge i {
  font-size: 1rem;
}

/* Different colors for different expertise levels */
.hcp-dashboard .expertise-badge[data-level="Beginner"] {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.hcp-dashboard .expertise-badge[data-level="Developing"] {
  background: linear-gradient(135deg, #17a2b8, #138496);
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.hcp-dashboard .expertise-badge[data-level="Experienced"] {
  background: linear-gradient(135deg, #007bff, #0056b3);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.hcp-dashboard .expertise-badge[data-level="Expert"] {
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.hcp-dashboard .expertise-badge[data-level="Master"] {
  background: linear-gradient(135deg, #fd7e14, #e8590c);
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .hcp-dashboard .expertise-badge {
    position: static;
    margin-top: 1rem;
    align-self: flex-start;
  }
}

/* HCP Dashboard Section Header with Badge */
.hcp-dashboard .section-header-with-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hcp-dashboard .section-header-with-badge h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
}

/* Progress Badge Styling */
.hcp-dashboard .progress-badge {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white !important;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.hcp-dashboard .progress-badge:hover {
  color: white !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.35);
}

.hcp-dashboard .progress-badge i {
  font-size: 0.875rem;
}

.hcp-dashboard .progress-text {
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  display: inline-block;
  color: white !important;
}

/* Color variations for different NEXT levels */
.hcp-dashboard .progress-badge[data-next-level="Developing"] {
  background: linear-gradient(135deg, #17a2b8, #138496);
  box-shadow: 0 2px 6px rgba(23, 162, 184, 0.25);
}

.hcp-dashboard .progress-badge[data-next-level="Experienced"] {
  background: linear-gradient(135deg, #007bff, #0056b3);
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.25);
}

.hcp-dashboard .progress-badge[data-next-level="Expert"] {
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
  box-shadow: 0 2px 6px rgba(111, 66, 193, 0.25);
}

.hcp-dashboard .progress-badge[data-next-level="Master"] {
  background: linear-gradient(135deg, #fd7e14, #e8590c);
  box-shadow: 0 2px 6px rgba(253, 126, 20, 0.25);
}

/* Master Level Achieved (no next level) */
.hcp-dashboard .progress-badge.master-achieved {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25) !important;
}

/* Level Progression Section */
.hcp-dashboard .level-progression-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
}

.hcp-dashboard .level-progression {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.hcp-dashboard .level-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  z-index: 1;
}

.hcp-dashboard .level-item.current {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
  border-color: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.hcp-dashboard .level-item.achieved {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
  border-color: #d4edda;
}

.hcp-dashboard .level-item.next {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(23, 162, 184, 0.08));
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.hcp-dashboard .level-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.hcp-dashboard .level-content {
  flex: 1;
  min-width: 0;
}

.hcp-dashboard .level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hcp-dashboard .level-header h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #343a40;
}

.hcp-dashboard .status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hcp-dashboard .status-badge.current {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.hcp-dashboard .status-badge.achieved {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
}

.hcp-dashboard .status-badge.next {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.hcp-dashboard .level-description {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.hcp-dashboard .level-requirements {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.hcp-dashboard .requirement {
  font-size: 0.875rem;
  font-weight: 500;
  color: #495057;
}

.hcp-dashboard .progress-info {
  font-size: 0.8rem;
  color: #007bff;
  font-weight: 500;
}

.hcp-dashboard .level-progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.hcp-dashboard .progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
  position: relative;
}

.hcp-dashboard .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hcp-dashboard .level-connector {
  position: absolute;
  left: 25px;
  top: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 0;
  width: 80px;
  height: 2.5rem;
  justify-content: space-between;
}

.hcp-dashboard .connector-line {
  width: 4px;
  height: 0.75rem;
  background: linear-gradient(180deg, #dee2e6, #adb5bd);
  border-radius: 3px;
  position: relative;
  transition: all 0.5s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.hcp-dashboard .connector-line-bottom {
  width: 4px;
  height: 0.75rem;
  background: linear-gradient(180deg, #adb5bd, #dee2e6);
  border-radius: 3px;
  position: relative;
  transition: all 0.5s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Removed pseudo-elements to create continuous connection */

.hcp-dashboard .level-connector.completed .connector-line {
  background: linear-gradient(180deg, #28a745, #20c997);
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
  animation: pulseConnector 2s infinite ease-in-out;
}

.hcp-dashboard .level-connector.completed .connector-line-bottom {
  background: linear-gradient(180deg, #20c997, #28a745);
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
  animation: pulseConnector 2s infinite ease-in-out;
}

/* Removed completed pseudo-element styles for continuous connection */

.hcp-dashboard .connector-arrow {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 0;
  margin-bottom: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  z-index: 2;
}

.hcp-dashboard .connector-arrow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: arrowShimmer 3s infinite;
}

.hcp-dashboard .level-connector.completed .connector-arrow {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 6px 18px rgba(40, 167, 69, 0.5);
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hcp-dashboard .connector-arrow:hover {
  transform: scale(1.25) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.hcp-dashboard .level-connector.completed .connector-arrow:hover {
  transform: scale(1.3) translateY(-2px);
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes pulseConnector {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes arrowShimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Hover effects */
.hcp-dashboard .level-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hcp-dashboard .level-item.current:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hcp-dashboard .section-header-with-badge {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .hcp-dashboard .progress-badge {
    align-self: flex-end;
  }
  
  .hcp-dashboard .level-progression-section {
    padding: 1rem;
  }
  
  .hcp-dashboard .level-item {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .hcp-dashboard .level-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .hcp-dashboard .level-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .hcp-dashboard .level-header h4 {
    font-size: 1rem;
  }
  
  .hcp-dashboard .level-requirements {
    font-size: 0.8rem;
  }
  
  .hcp-dashboard .level-progression {
    gap: 2.5rem;
  }
  
  .hcp-dashboard .level-connector {
    left: 20px;
    top: 100%;
    height: 2rem;
    width: 60px;
  }
  
  .hcp-dashboard .connector-line {
    height: 0.6rem;
    width: 3px;
  }
  
  .hcp-dashboard .connector-line-bottom {
    height: 0.6rem;
    width: 3px;
  }
  
  /* Removed responsive pseudo-element styles for continuous connection */
  
  .hcp-dashboard .connector-arrow {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}
