/* Driver Preview Styles */
.drivers-preview-page {
  margin-top: 150px !important;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

/* Lucide Icons Styling */
.lucide-icon {
  display: inline-block;
  vertical-align: middle;
  color: #6b7280;
  flex-shrink: 0;
}

/* Driver Modal Styling */
/* Modal Base Styles - Shadcn UI */
.driver-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  animation: fadeIn 0.2s ease-in-out;
}

.driver-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease-in-out;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
  border: 1px solid hsl(0 0% 89.8%);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: 1px solid hsl(0 0% 89.8%);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  color: hsl(0 0% 45.1%);
}

.modal-close:hover {
  background: hsl(0 0% 96.1%);
  color: hsl(0 0% 9%);
  border-color: hsl(0 0% 80%);
}

.modal-body {
  overflow-y: auto;
  max-height: 90vh;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.page-drivers-template {
  background: none !important;
}
.drivers-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}
body {
  border-radius: 0 !important;
}
.drivers-header h2 {
  color: #0f604d;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.drivers-header p {
  color: #6b7280;
  font-size: 1.125rem;
  margin: 0;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

/* Search and Filters Layout */
.drivers-search-section {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-direction: column;
}
.header-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 2rem;
}
/* Filters Section - Left Side */
.drivers-filters {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  flex: 1;
  flex-direction: row;
  justify-content: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

/* Basic Dropdown Styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger .button {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.875rem;
  min-width: 180px;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #374151;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  height: auto;
  line-height: 1.5;
}

.dropdown-trigger .button:hover {
  border-color: #0f604d;
  background: #f8fafc;
}

.dropdown-trigger .button:focus {
  outline: none;
  border-color: #0f604d;
  box-shadow: 0 0 0 3px rgba(15, 96, 77, 0.1);
}

.dropdown-trigger .button .icon {
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
  color: #6b7280;
}

.dropdown.is-active .dropdown-trigger .button .icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  margin-top: 0.25rem;
}

.dropdown.is-active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content {
  padding: 0.5rem 0;
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f3f4f6;
  color: #0f604d;
}

.dropdown-item.is-active {
  background: #0f604d;
  color: #ffffff;
}

/* Search Bar - Full Width */
.search-bar-wrapper {
  width: 100%;
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #374151;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.search-input:focus {
  outline: none;
  border-color: #0f604d;
  box-shadow: 0 0 0 3px rgba(15, 96, 77, 0.1);
}

/* Filters Wrapper */
.filters-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Filters Container - Horizontal Layout */
.filters-container {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.filter-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.filter-select:hover {
  border-color: #d1d5db;
}

.filter-select:focus {
  outline: none;
  border-color: #0f604d;
  box-shadow: 0 0 0 3px rgba(15, 96, 77, 0.1);
}

.filter-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

.clear-filters-btn {
  padding: 0.625rem 1.5rem;
  background: #ffffff;
  color: #374151;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  white-space: nowrap;
}

.clear-filters-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.clear-filters-btn:active {
  background: #e5e7eb;
}

/* Responsive Filters */
@media (max-width: 1200px) {
  .filters-container {
    gap: 0.5rem;
  }

  .filter-group {
    min-width: 140px;
  }
}

@media (max-width: 768px) {
  .filters-container {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group {
    width: 100%;
    min-width: 100%;
  }

  .filter-actions {
    width: 100%;
  }

  .clear-filters-btn {
    width: 100%;
  }
}

/* Drivers List - Upwork Style */
.drivers-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.driver-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.driver-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #0f604d;
}

.driver-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.driver-info-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.driver-details {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
}

.driver-info-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.driver-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}

.driver-country {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-label {
  font-weight: 500;
  color: #374151;
  flex-shrink: 0;
}

.driver-country .lucide-icon,
.driver-licences .lucide-icon,
.driver-experience .lucide-icon {
  flex-shrink: 0;
}

.driver-licences,
.driver-experience,
.driver-morocco-jobs {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.licence-label,
.experience-label,
.morocco-job-label {
  font-weight: 500;
  color: #374151;
  flex-shrink: 0;
}

.driver-morocco-jobs .lucide-icon {
  flex-shrink: 0;
}

.driver-number {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #0a4a3a;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.show-driver-info-btn {
  background: #0a4a3a;
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.show-driver-info-btn:hover {
  background: #083d30;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(10, 74, 58, 0.4);
}

.driver-data {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
  gap: 1rem;
}

.driver-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0f604d;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.driver-avatar:hover {
  border-color: #0a4a3a;
  transform: scale(1.05);
}

.driver-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  font-size: 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
}

.driver-info h3 {
  margin: 0 0 0.25rem 0;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.3;
}

.driver-info p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.driver-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.meta-item {
  color: #6b7280;
  font-size: 0.875rem;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.driver-right-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.added-date {
  color: #6b7280;
  font-size: 0.875rem;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.show-driver-info-btn {
  background: #0f604d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.show-driver-info-btn:hover {
  background: #0a4a3d;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 96, 77, 0.3);
}

.driver-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0;
  background: transparent;
  border: none;
  align-items: flex-start;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.detail-value {
  font-size: 0.875rem;
  color: #111827;
  font-weight: 600;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.driver-description {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.language-tag {
  background: #f3f4f6;
  color: #676767;
  padding: 0.3rem 0.7rem;
  border-radius: 16px;
  font-size: 0.75rem;
  letter-spacing: -0.4px;
  font-weight: 500;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  transition: all 0.2s ease;
}

/* Loading and Empty States */
.loading-message {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1.1rem;
}

.empty-message {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.empty-message h3 {
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Pagination */
.drivers-pagination {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  background: #0f604d;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.load-more-btn:hover {
  background: #0a4a3d;
}

.load-more-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* Pagination Styles - Shadcn UI */
.drivers-pagination {
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid hsl(0 0% 89.8%);
  background: hsl(0 0% 96.1%);
  border-radius: 0 0 0.5rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pagination-info {
  color: hsl(0 0% 45.1%);
  font-size: 0.875rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  background: white;
  border: 1px solid hsl(0 0% 89.8%);
  color: hsl(0 0% 9%);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
  background: hsl(0 0% 96.1%);
  border-color: #0a4a3a;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
}

.pagination-number {
  background: white;
  border: 1px solid hsl(0 0% 89.8%);
  color: hsl(0 0% 9%);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  min-width: 2.5rem;
  text-align: center;
  transition: all 0.2s;
  font-weight: 500;
}

.pagination-number:hover {
  background: hsl(0 0% 96.1%);
  border-color: #0a4a3a;
}

.pagination-number.current {
  background: #0a4a3a;
  color: white;
  border-color: #0a4a3a;
  font-weight: 600;
}

.pagination-ellipsis {
  color: hsl(0 0% 45.1%);
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .drivers-pagination {
    flex-direction: column;
    text-align: center;
  }

  .pagination-info {
    order: 2;
    margin-top: 0.5rem;
  }

  .pagination-controls {
    order: 1;
  }
}

@media (max-width: 640px) {
  .pagination-controls {
    gap: 0.25rem;
  }

  .pagination-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }

  .pagination-btn svg {
    width: 14px;
    height: 14px;
  }

  .pagination-number {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    min-width: 2rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .drivers-preview-page {
    padding: 1rem;
    margin-top: 100px !important;
  }

  .drivers-header h2 {
    font-size: 2rem;
  }

  .header-list {
    flex-direction: column;
    gap: 1rem;
  }

  /* Mobile Driver Cards */
  .driver-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .driver-card-content {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }

  .driver-info-left {
    flex: 1;
    align-items: flex-start;
  }

  .driver-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .driver-details {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .driver-licences {
    white-space: pre-line;
  }

  .driver-country,
  .driver-licences,
  .driver-experience,
  .driver-morocco-jobs {
    white-space: normal;
    text-align: left;
    flex-shrink: 1;
    min-width: auto;
  }

  .driver-name {
    font-size: 1rem;
    text-align: left;
  }

  .show-driver-info-btn {
    width: 100%;
  }

  .driver-avatar {
    width: 80px;
    height: 80px;
  }

  /* Additional mobile improvements */
  .driver-number {
    font-size: 0.875rem;
  }

  .country-label,
  .licence-label,
  .experience-label,
  .morocco-job-label {
    font-size: 0.75rem;
  }

  .lucide-icon {
    width: 12px;
    height: 12px;
  }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
  .driver-card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .driver-card-content {
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
  }

  .driver-avatar {
    width: 60px;
    height: 60px;
  }

  .driver-name {
    font-size: 0.9rem;
  }

  .driver-country,
  .driver-licences,
  .driver-experience,
  .driver-morocco-jobs {
    font-size: 0.8rem;
  }

  .country-label,
  .licence-label,
  .experience-label,
  .morocco-job-label {
    font-size: 0.7rem;
  }

  .show-driver-info-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .driver-number {
    font-size: 0.8rem;
  }

  .drivers-search-section {
    flex-direction: column;
    gap: 1rem;
  }

  .search-container {
    min-width: auto;
    width: 100%;
  }

  .drivers-filters {
    justify-content: flex-start;
    gap: 1rem;
  }

  .filter-group {
    min-width: auto;
  }

  .dropdown-trigger .button {
    min-width: auto;
    width: 100%;
  }

  .drivers-grid {
    gap: 0.75rem;
  }

  .driver-card {
    padding: 1rem;
  }

  .driver-header {
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .driver-data {
    flex-direction: column;
    width: 100%;
  }

  .driver-right-side {
    align-items: flex-start;
    width: 100%;
  }

  .show-driver-info-btn {
    width: 100%;
    min-width: auto;
  }

  .driver-avatar,
  .driver-avatar-placeholder {
    width: 50px;
    height: 50px;
  }

  .driver-info h3 {
    font-size: 1.125rem;
  }

  .driver-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .driver-languages {
    gap: 0.5rem;
  }

  .language-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Admin Notice */
.admin-notice {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  text-align: center;
}

.admin-notice strong {
  color: #78350f;
}

/* Quick loading state for Preview */
.empty-message h3 {
  color: #0f604d;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin: 2rem 0;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

.empty-message p {
  color: #64748b;
  font-size: 1rem;
  text-align: center;
  margin: 1rem 0;
  font-family: "BlinkMacSystemFont", -apple-system, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.6;
}

/* Performance optimizations */
.drivers-grid {
  will-change: contents;
  contain: layout style paint;
}

.driver-card {
  will-change: transform;
  contain: layout style paint;
}

/* Faster animations */
.driver-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Upwork-style card spacing */
.driver-card + .driver-card {
  margin-top: 0.5rem;
}

/* Enhanced Profile Modal Styles */
/* Profile Modal - Shadcn UI Design */
.profile-modal {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
}

.profile-modal .modal-body {
  padding: 0;
}

/* Profile Header - Clean White Design */
.profile-header {
  background: white;
  padding: 2.5rem;
  border-bottom: 1px solid hsl(0 0% 89.8%);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-picture-container {
  flex-shrink: 0;
}

.modal-profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid hsl(0 0% 89.8%);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.profile-info {
  flex: 1;
}

.modal-driver-name {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: hsl(0 0% 9%);
  letter-spacing: -0.025em;
}

.profile-location,
.profile-experience {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.9375rem;
  color: hsl(0 0% 45.1%);
}

.profile-location svg,
.profile-experience svg {
  color: hsl(142.1 76.2% 36.3%);
  width: 18px;
  height: 18px;
}

/* Profile Content */
.profile-content {
  padding: 2.5rem;
  background: hsl(0 0% 98%);
}

.profile-section {
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid hsl(0 0% 89.8%);
}

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

.profile-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(0 0% 9%);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-description {
  color: hsl(0 0% 45.1%);
  line-height: 1.7;
  margin: 0;
  font-size: 0.9375rem;
}

/* Contact Information */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: hsl(0 0% 98%);
  border-radius: 8px;
  border: 1px solid hsl(0 0% 89.8%);
  transition: all 0.2s ease;
}

.contact-item:hover {
  background: white;
  border-color: hsl(0 0% 80%);
}

.contact-item svg {
  color: hsl(142.1 76.2% 36.3%);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.8125rem;
  color: hsl(0 0% 45.1%);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.driver-id-value {
  font-size: 0.9375rem;
  color: hsl(0 0% 9%);
  font-weight: 600;
  font-family: monospace;
  background: hsl(0 0% 96.1%);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid hsl(0 0% 89.8%);
  letter-spacing: 0.05em;
}

.driver-email {
  font-size: 0.9375rem;
  color: hsl(0 0% 9%);
  font-weight: 500;
}

.blurred-phone {
  font-family: monospace;
  font-size: 0.9375rem;
  color: hsl(0 0% 45.1%);
  letter-spacing: 2px;
  filter: blur(3px);
  transition: filter 0.3s ease;
}

.blurred-phone:not(.blurred) {
  filter: none;
  color: hsl(0 0% 9%);
}

.copy-email-btn {
  background: #0a4a3a;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-email-btn:hover {
  background: #083d30;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.copy-email-btn.copied {
  background: #0a4a3a;
}

.copy-email-btn.error {
  background: hsl(0 84.2% 60.2%);
}

.contact-action {
  margin-top: 1rem;
}

.view-number-btn {
  background: #0a4a3a;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.view-number-btn:hover {
  background: #083d30;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Skills & Experience Grid */
.skills-grid {
  display: grid;
  gap: 0.75rem;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: hsl(0 0% 98%);
  border-radius: 8px;
  border: 1px solid hsl(0 0% 89.8%);
  transition: all 0.2s ease;
}

.skill-item:hover {
  background: white;
  border-color: hsl(142.1 76.2% 36.3%);
}

.skill-item svg {
  color: hsl(142.1 76.2% 36.3%);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.skill-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.skill-label {
  font-size: 0.8125rem;
  color: hsl(0 0% 45.1%);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-value {
  font-size: 0.9375rem;
  color: hsl(0 0% 9%);
  font-weight: 600;
  white-space: pre-line;
  word-wrap: break-word;
}

/* Languages Badges */
.languages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.language-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsl(0 0% 98%);
  color: hsl(0 0% 9%);
  border: 1px solid hsl(0 0% 89.8%);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.language-item:hover {
  background: white;
  border-color: hsl(142.1 76.2% 36.3%);
}

.language-level {
  background: hsl(142.1 76.2% 36.3%);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.no-languages {
  color: hsl(0 0% 45.1%);
  font-style: italic;
  margin: 0;
  font-size: 0.9375rem;
}

/* Responsive Design for Profile Modal */
@media (max-width: 768px) {
  .profile-modal {
    width: 98%;
    max-height: 95vh;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .modal-profile-pic {
    width: 100px;
    height: 100px;
  }

  .modal-driver-name {
    font-size: 1.5rem;
  }

  .profile-content {
    padding: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Card responsive layout */
  .driver-card-content {
    flex-direction: column;
    text-align: left;
  }

  .driver-info-left {
    align-items: left;
    width: 100%;
  }

  .driver-details {
    justify-content: center;
    width: 100%;
  }

  .driver-info-right {
    width: 100%;
    align-items: center;
  }

  .show-driver-info-btn {
    width: 100%;
  }
}
