/* Dashboard Enhancements CSS */

/* Remove body padding */
body {
  padding: 0 !important;
}

/* Enhanced Header Styling - More compact */
.headerarea.headerarea__3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 5px 0; /* Reduced padding */
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 60px; /* Set a fixed minimum height */
}

.headerarea__3 .headerarea__left__logo h1 {
  color: white;
  font-size: 24px; /* Reduced font size */
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 0;
}

/* Responsive Header */
@media (max-width: 768px) {
  .headerarea.headerarea__3 {
    padding: 3px 0;
  }
  
  .headerarea__3 .headerarea__left__logo h1 {
    font-size: 20px;
  }
}

/* Parent container setup for sticky positioning */
.dashboard {
  position: relative;
  overflow: visible;
}

.dashboard .row {
  position: relative;
  overflow: visible;
}

.dashboard .col-xl-3 {
  position: relative;
  overflow: visible;
}

/* Sticky Sidebar Navigation - More compact */
.dashboard__inner {
  position: sticky;
  top: 70px; /* Adjusted for header height */
  height: auto;
  overflow-y: auto;
  padding-right: 10px; /* Reduced padding */
  scrollbar-width: thin;
  scrollbar-color: #667eea #e0e0e0;
  background: var(--whiteColor);
  border-radius: 8px; /* Reduced border radius */
  padding: 15px 10px; /* Reduced padding */
  box-shadow: 0 0 15px 5px rgba(95, 45, 237, 0.02); /* Reduced shadow */
  margin-bottom: 20px; /* Reduced margin */
  z-index: 10;
}

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

.dashboard__inner::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

.dashboard__inner::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

/* Enhanced Sidebar Menu Items - More compact */
.dashboard__nav ul li {
  padding-bottom: 8px; /* Reduced padding */
  padding-top: 8px; /* Reduced padding */
  border-bottom: 1px solid var(--borderColor);
  width: 100%;
  position: relative;
  border-radius: 6px; /* Reduced border radius */
  margin-bottom: 3px; /* Reduced margin */
  transition: all 0.3s ease;
}

.dashboard__nav ul li:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(3px); /* Reduced transform */
}

.dashboard__nav ul li a {
  font-size: 15px; /* Reduced font size */
  display: flex;
  align-items: center;
  padding: 10px 12px; /* Reduced padding */
  border-radius: 6px; /* Reduced border radius */
  color: var(--contentColor);
  font-weight: 500;
  transition: all 0.3s ease;
}

.dashboard__nav ul li a:hover,
.dashboard__nav ul li a.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.dashboard__nav ul li a svg {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

/* Enhanced Dashboard Section Title - More compact */
.dashboard__section__title {
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
  margin-bottom: 20px; /* Reduced margin */
  padding-bottom: 10px; /* Reduced padding */
}

.dashboard__section__title h4 {
  color: #333;
  font-size: 22px; /* Reduced font size */
  font-weight: 700;
  position: relative;
  padding-bottom: 8px; /* Reduced padding */
}

.dashboard__section__title h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
}

/* Enhanced Stats Cards - Ultra Compact & Modern */
.stat-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 80px;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0 2px 2px 0;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.stat-card .stat-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 12px;
}

.stat-card .stat-icon i {
  font-size: 1.1rem;
  color: white;
  position: relative;
  z-index: 1;
}

/* Card-specific icon colors */
.stat-card:nth-child(1) .stat-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) .stat-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card .stat-content {
  flex: 1;
  min-width: 0;
}

.stat-card .stat-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #1f2937;
  line-height: 1.2;
}

.stat-card .stat-content p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.3;
}

/* Dashboard Stats Grid Improvements */
.dashboard-stats {
  margin-bottom: 1.5rem;
}

.dashboard-stats .col-xl-3,
.dashboard-stats .col-lg-6,
.dashboard-stats .col-md-6,
.dashboard-stats .col-12 {
  padding: 0.25rem;
}

/* Responsive Stat Cards */
@media (max-width: 1200px) {
  .stat-card {
    padding: 0.875rem;
    min-height: 75px;
  }
  
  .stat-card .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  
  .stat-card .stat-content h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .stat-card {
    padding: 0.75rem;
    min-height: 70px;
    gap: 0.5rem;
  }
  
  .stat-card .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .stat-card .stat-content h3 {
    font-size: 1.25rem;
  }
  
  .stat-card .stat-content p {
    font-size: 0.8rem;
  }
}

/* Dark Mode Support */
.is_dark .stat-card {
  background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
  border-color: rgba(102, 126, 234, 0.2);
}

.is_dark .stat-card .stat-content h3 {
  color: #f9fafb;
}

.is_dark .stat-card .stat-content p {
  color: #9ca3af;
}

/* Modern Action Cards - Section Actions */
.section-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 160px;
  border: 1px solid transparent;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(102, 126, 234, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.action-card:hover::before {
  opacity: 1;
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.action-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  position: relative;
  z-index: 1;
}

.action-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

.action-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.2;
}

/* Refresh Card Styling */
.refresh-card {
  border-color: rgba(59, 130, 246, 0.2);
}

.refresh-card .action-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.refresh-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Search Card Styling */
.search-card {
  border-color: rgba(102, 126, 234, 0.2);
}

.search-card .action-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.search-card:hover {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-actions {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  
  .action-card {
    min-width: auto;
    justify-content: center;
    text-align: center;
  }
  
  .action-content {
    align-items: center;
  }
}

/* Dark Mode Support */
.is_dark .action-card {
  background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
  border-color: rgba(102, 126, 234, 0.2);
}

.is_dark .action-title {
  color: #f9fafb;
}

.is_dark .action-subtitle {
  color: #9ca3af;
}

.is_dark .action-card::before {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
}

/* Modern Engineer List - Single Row Layout */
.engineers-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.engineer-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(102, 126, 234, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.engineer-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.12);
  border-color: rgba(102, 126, 234, 0.15);
}

.engineer-card:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.1) 50%, transparent 100%);
}

/* Alert Message */
.alert-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.alert-warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fed7aa;
}

/* Engineer Header - Horizontal Layout */
.engineer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.engineer-avatar {
  position: relative;
  flex-shrink: 0;
}

.engineer-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  transition: border-color 0.3s ease;
}

.engineer-card:hover .engineer-avatar img {
  border-color: #667eea;
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-connected {
  background: #10b981;
}

.status-pending {
  background: #f59e0b;
}

.status-rejected {
  background: #ef4444;
}

a:hover{
  text-decoration: none !important;
  color: white !important;
}

.status-unknown {
  background: #6b7280;
}

.engineer-info {
  flex: 1;
  min-width: 0;
}

.engineer-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.engineer-name i {
  font-size: 0.75rem;
  color: #6b7280;
}

.engineer-name a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
}

.engineer-name a:hover {
  color: #667eea;
}

.engineer-specialization {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Skills Section - Horizontal Layout */
.engineer-skills {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  margin: 0 1rem;
}

.skills-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skills-header i {
  color: #667eea;
  font-size: 0.75rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  font-size: 0.75rem;
}

.skill-name {
  font-weight: 500;
  color: #374151;
}

.skill-score {
  color: #6b7280;
  background: rgba(102, 126, 234, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.625rem;
}

/* Action Buttons - Horizontal Layout */
.engineer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 200px;
}

.connection-actions,
.approval-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-connection,
.btn-accept,
.btn-reject,
.btn-message,
.btn-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  justify-content: center;
  flex: 1;
  min-height: 36px;
}

.btn-connection.btn-connect {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-connection.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-connection.btn-remove {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-connection.btn-remove:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-connection.btn-cancel {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-connection.btn-cancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-accept {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-reject {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-reject:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-message {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-message:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-profile {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-profile:hover {
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Enhanced Engineer View Page Styling */
.dashboardarea {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 20px;
  margin: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.dashboardarea__wraper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.dashboardarea__wraper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.dashboardarea__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  background-color: #005885;
}

.dashboardarea__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dashboardarea__left__img {
  position: relative;
}

.dashboardarea__left__img img {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.dashboardarea__left__img img:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.6);
}

.dashboardarea__left__content h4 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dashboardarea__left__content h5 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 500;
  margin: 5px 0 0 0;
}

.dashboardarea__star {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 25px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboardarea__star span {
  color: white;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboardarea__star i {
  color: #fbbf24 !important;
  font-size: 20px;
}

.dashboardarea__right {
  display: flex;
  gap: 15px;
}

.dashboardarea__right .default__button {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboardarea__right .default__button:not(.remove_connect) {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.dashboardarea__right .default__button:not(.remove_connect):hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.dashboardarea__right .default__button.remove_connect {
  background: rgba(239, 68, 68, 0.8);
  color: white;
}

.dashboardarea__right .default__button.remove_connect:hover {
  background: rgba(239, 68, 68, 1);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Enhanced Close Button Styling */
.dashboardarea__right .btn {
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.dashboardarea__right .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: white;
}

.dashboardarea__right .btn i {
  font-size: 16px;
}

/* Enhanced Tabs Styling */
.nav-tabs {
  border: none;
  background: white;
  border-radius: 15px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.nav-tabs .nav-item {
  margin: 0;
}

.nav-tabs .nav-link {
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 25px;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-tabs .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.nav-tabs .nav-link:hover::before,
.nav-tabs .nav-link.active::before {
  left: 0;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active {
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Enhanced Tab Content */
.tabcontent {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.dashboard__section__title h4 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.dashboard__section__title h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Enhanced Table Styling */
.dashboard__table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.dashboard__table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.dashboard__table th {
  padding: 20px;
  font-weight: 700;
  color: #374151;
  font-size: 16px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
}

.dashboard__table td {
  padding: 20px;
  color: #6b7280;
  font-size: 15px;
  border-bottom: 1px solid #f3f4f6;
}

.dashboard__table tbody tr:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  transition: all 0.3s ease;
}

.dashboard__table tbody tr.dashboard__table__row {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.dashboard__table tbody tr.dashboard__table__row:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.dashboard__table th a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.dashboard__table th a:hover {
  color: #667eea;
}

.dashboard__table td span {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}

/* Enhanced Content Cards */
.view_class .dashboard__content__wraper {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.view_class .dashboard__content__wraper:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.view_class .dashboard__section__title h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.view_class .dashboard__section__title h4 span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.view_class .dashboard__content__wraper p {
  color: #64748b;
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

/* Enhanced Multiple Choice Section */
.multiple-choice-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.multiple-choice-item {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.multiple-choice-item:hover {
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.multiple-choice-item h5 {
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
}

.multiple-choice-item p {
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* Enhanced About Section */
.about-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.about-info-item {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.about-info-item h6 {
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 16px;
}

.about-info-item p {
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboardarea__inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .dashboardarea__left {
    flex-direction: column;
    gap: 15px;
  }
  
  .dashboardarea__right {
    flex-direction: column;
    width: 100%;
  }
  
  .dashboardarea__right .default__button {
    width: 100%;
    justify-content: center;
  }
  
  .nav-tabs {
    flex-direction: column;
  }
  
  .nav-tabs .nav-link {
    text-align: center;
  }
  
  .about-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Simple Professional Profile Details */
.profile-details-simple {
  margin-top: 20px;
}

.profile-row {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #e5e7eb;
  align-items: flex-start;
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  width: 200px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-label i {
  font-size: 14px;
  color: #6b7280;
  width: 16px;
  text-align: center;
}

.profile-value {
  flex: 1;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.profile-bio {
  line-height: 1.6;
  color: #6b7280;
}

/* Responsive Design for Simple Profile */
@media (max-width: 768px) {
  .profile-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .profile-label {
    width: 100%;
    font-weight: 700;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .engineer-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .engineer-skills {
    margin: 0;
  }
  
  .engineer-actions {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .engineers-grid {
    gap: 0.75rem;
  }
  
  .engineer-card {
    padding: 1rem;
  }
  
  .engineer-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .connection-actions,
  .approval-actions {
    flex-direction: column;
  }
  
  .skills-list {
    justify-content: center;
  }
}

/* Dark Mode Support */
.is_dark .engineer-card {
  background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
  border-color: rgba(102, 126, 234, 0.2);
}

.is_dark .engineer-name {
  color: #f9fafb;
}

.is_dark .engineer-specialization {
  color: #9ca3af;
}

.is_dark .skills-header {
  color: #d1d5db;
}

.is_dark .skill-item {
  background: #374151;
  border-color: rgba(102, 126, 234, 0.2);
}

.is_dark .skill-name {
  color: #f9fafb;
}

.is_dark .skill-score {
  background: rgba(102, 126, 234, 0.2);
  color: #d1d5db;
}

.is_dark .engineer-skills {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
}

/* Modern Profile Page - Beautiful Design */
.profile-container {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  overflow: hidden;
  position: relative;
}

.profile-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(102, 126, 234, 0.02) 100%);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.profile-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.avatar-circle i {
  font-size: 2rem;
  color: white;
}

.status-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #10b981;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  border: 3px solid white;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.profile-role {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.meta-item i {
  color: #667eea;
  font-size: 0.875rem;
}

.profile-actions {
  flex-shrink: 0;
}

.btn-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Profile Content */
.profile-content {
  padding: 2rem;
}

.profile-section {
  margin-bottom: 2.5rem;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.section-header i {
  font-size: 1.25rem;
  color: #667eea;
}

.section-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-item {
  background: rgba(102, 126, 234, 0.03);
  border: 1px solid rgba(102, 126, 234, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(102, 126, 234, 0.05);
  border-color: rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-item label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.info-value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 500;
}

.info-value i {
  color: #667eea;
  font-size: 0.875rem;
  width: 16px;
  text-align: center;
}

.bio-text {
  align-items: flex-start;
  line-height: 1.6;
}

.bio-text i {
  margin-top: 0.25rem;
}

/* Social Links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-item {
  flex: 1;
  min-width: 200px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link i {
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
}

.social-link.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bb8 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-link.facebook:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-link.twitter {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.social-link.twitter:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-link.linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.social-link.linkedin:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-link.github {
  background: linear-gradient(135deg, #333 0%, #000 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(51, 51, 51, 0.3);
}

.social-link.github:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
}

.social-link.website {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.social-link.website:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.no-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  color: #6b7280;
  font-style: italic;
  font-size: 0.875rem;
}

.no-social i {
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .profile-meta {
    justify-content: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    flex-direction: column;
  }
  
  .social-item {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .profile-container {
    margin: 0 -15px;
    border-radius: 0;
  }
  
  .profile-header,
  .profile-content {
    padding: 1.5rem;
  }
  
  .profile-name {
    font-size: 1.5rem;
  }
  
  .profile-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Dark Mode Support */
.is_dark .profile-container {
  background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
  border-color: rgba(102, 126, 234, 0.2);
}

.is_dark .profile-header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
  border-color: rgba(102, 126, 234, 0.2);
}

.is_dark .profile-name {
  color: #f9fafb;
}

.is_dark .profile-role {
  color: #9ca3af;
}

.is_dark .meta-item {
  color: #9ca3af;
}

.is_dark .section-header h3 {
  color: #f9fafb;
}

.is_dark .info-item {
  background: rgba(102, 126, 234, 0.05);
  border-color: rgba(102, 126, 234, 0.15);
}

.is_dark .info-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.25);
}

.is_dark .info-value {
  color: #f9fafb;
}

.is_dark .no-social {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
  color: #9ca3af;
}

/* Modern Account Manager Card - Sleek Design */
.account-manager-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-manager-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.account-manager-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.account-manager-content {
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.account-manager-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.avatar-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 50%;
}

.avatar-circle i {
  position: relative;
  z-index: 1;
}

.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.account-manager-info {
  flex: 1;
  min-width: 0;
}

.account-manager-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.account-manager-title {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-manager-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.account-manager-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.account-manager-role {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.account-manager-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #5a67d8;
  transform: translateY(-1px);
  text-decoration: none;
}

.contact-item i {
  font-size: 0.875rem;
  width: 16px;
  text-align: center;
}

.account-manager-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-contact,
.btn-schedule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 120px;
  justify-content: center;
}

.btn-contact {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.btn-schedule {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.btn-schedule:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .account-manager-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .account-manager-actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .account-manager-contact {
    justify-content: center;
  }
  
  .account-manager-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Dark Mode Support */
.is_dark .account-manager-card {
  background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
  border-color: rgba(102, 126, 234, 0.2);
}

.is_dark .account-manager-name {
  color: #f9fafb;
}

.is_dark .account-manager-role {
  color: #9ca3af;
}

.is_dark .account-manager-title {
  color: #9ca3af;
}

/* Enhanced Engineer Cards - More compact */
.dashboard__recent__course__single {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 12px; /* Reduced border radius */
  padding: 15px; /* Reduced padding */
  margin-bottom: 15px; /* Reduced margin */
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05); /* Reduced shadow */
}

.dashboard__recent__course__single:hover {
  transform: translateY(-2px); /* Reduced transform */
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15); /* Reduced shadow */
  border-color: rgba(102, 126, 234, 0.3);
}

.dashboard__recent__course__img {
  width: 80px; /* Reduced width */
  height: 80px; /* Reduced height */
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px; /* Reduced margin */
  flex-shrink: 0;
  border: 2px solid #f0f0f0; /* Reduced border */
}

.dashboard__recent__course__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard__recent__course__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard__recent__course__heading h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.dashboard__recent__course__heading h3 i {
  color: #667eea;
  margin-right: 8px;
}

.dashboard__recent__course__meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.dashboard__recent__course__meta ul li {
  list-style: none;
  background: rgba(102, 126, 234, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #667eea;
  font-weight: 500;
}

.dashboard__recent__course__meta ul li i {
  margin-right: 5px;
}

.dashboard__recent__course__meta ul li:last-child {
  margin-left: auto;
  background: none;
}

/* Enhanced Contact Button */
.dashboard__recent__course__meta ul li .default__button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.dashboard__recent__course__meta ul li .default__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.dashboard__recent__course__meta ul li .default__button svg {
  width: 14px;
  height: 14px;
  margin-left: 5px;
}

/* Enhanced Dark Mode Toggle - Proper positioning */
.mode_switcher.my_switcher {
  position: fixed;
  right: -50px;
  top: 100px;
  z-index: 9999999;
  transition: 0.3s;
}

.mode_switcher.my_switcher:hover {
  right: 0;
}

@media (min-width: 1500px) and (max-width: 1920px) {
  .mode_switcher.my_switcher {
    top: 300px;
  }
}

.mode_switcher.my_switcher button {
  display: flex;
  font-size: 18px; /* Reduced font size */
  color: var(--whiteColor);
  background: var(--primaryColor);
  padding: 8px; /* Reduced padding */
  line-height: 18px; /* Reduced line height */
  border-top-left-radius: 8px; /* Reduced border radius */
  border-bottom-left-radius: 8px; /* Reduced border radius */
  width: 80px; /* Reduced width */
  box-shadow: 0px 4px 25px rgba(215, 216, 222, 0.15); /* Reduced shadow */
  border: none;
  cursor: pointer;
}

.mode_switcher.my_switcher button svg {
  width: 20px;
  margin-right: 10px;
}

.mode_switcher.my_switcher button span {
  font-size: 16px;
}

.light__mode {
  display: none;
}

.is_dark .light__mode {
  display: block;
}

.is_dark .dark__mode {
  display: none;
}

/* Responsive Improvements */
@media (max-width: 992px) {
  .dashboard__inner {
    position: static;
    height: auto;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 30px;
  }
  
  .dashboard .col-xl-3 {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .dashboard__inner {
    top: 60px; /* Adjusted for mobile header */
    height: auto;
  }
  
  .dashboard__recent__course__single {
    flex-direction: column;
    text-align: center;
  }
  
  .dashboard__recent__course__img {
    margin-right: 0;
    margin-bottom: 15px;
    align-self: center;
  }
  
  .dashboard__recent__course__meta ul {
    justify-content: center;
  }
  
  .dashboard__recent__course__meta ul li:last-child {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .account-manager-section .counterarea__text__wraper {
    flex-direction: column;
    text-align: center;
  }
  
  .account-manager-section .counter__img {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .mode_switcher.my_switcher {
    top: 70px;
  }
}

/* Dark Mode Enhancements */
.is_dark .stat-card {
  background: linear-gradient(135deg, #2c2f4b 0%, #1f2235 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.is_dark .account-manager-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.is_dark .dashboard__recent__course__single {
  background: #2c2f4b;
  border: 1px solid #3a3d5a;
}

.is_dark .dashboard__recent__course__heading h3 {
  color: #fff;
}

.is_dark .dashboard__recent__course__meta ul li {
  background: rgba(102, 126, 234, 0.2);
  color: #a7b3ff;
}

.is_dark .dashboard__section__title h4 {
  color: #fff;
}

.is_dark .dashboard__nav ul li a {
  color: #ccc;
}

.is_dark .dashboard__nav ul li a:hover,
.is_dark .dashboard__nav ul li a.active {
  color: white;
}

.is_dark .dashboard__inner {
  background: var(--lightGrey7);
}

/* Engineer Profile Connection Buttons */
.dashboardarea__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.connection-actions,
.approval-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-connection {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-connection.btn-connect {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-connection.btn-connect:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-connection.btn-cancel {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-connection.btn-cancel:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-connection.btn-remove {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-connection.btn-remove:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-accept {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.btn-accept:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-reject {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  transition: all 0.3s ease;
}

.btn-reject:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-close {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

/* Responsive Design for Connection Buttons */
@media (max-width: 768px) {
  .dashboardarea__right {
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }
  
  .connection-actions,
  .approval-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-connection,
  .btn-accept,
  .btn-reject {
    width: 100%;
    justify-content: center;
  }
}