/* navbar  */


  /* Base Styles */
  .custom-navbar {
    background: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    width: 100%;
    margin: 0.75rem 0;
    position: relative;
    z-index: 100;
  }

  /* Mobile View */
  .mobile-view {
    display: block;
  }

  .desktop-view {
    width: 100%;
    display: none;
  }

  .mobile-nav-container,
  .desktop-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .mobile-nav-left {
    display: flex;
    align-items: center;
  }

  .menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #4a5568;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .welcome-message {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: wrap;

  }

  .desktop-welcome-container h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 700;
  }

  /* User Avatar */
  .user-menu-container {
    position: relative;
  }

  .user-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
  }

  .user-avatar-btn:hover {
    transform: scale(1.05);
  }

  .user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease;
  }

  .user-avatar-btn:hover .user-avatar-img {
    border-color: #cbd5e0;
  }

  /* Custom Dropdown Menu */
  .custom-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    min-width: 240px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
    border: 1px solid #e2e8f0;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .dropdown-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
  }

  .dropdown-avatar-container {
    margin-right: 0.75rem;
  }

  .dropdown-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
  }

  .dropdown-user-info {
    display: flex;
    flex-direction: column;
  }

  .dropdown-user-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
  }

  .dropdown-user-role {
    font-size: 0.8rem;
    color: #718096;
    text-transform: capitalize;
  }

  .dropdown-divider {
    height: 1px;
    background: #edf2f7;
    margin: 0.25rem 0;
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .dropdown-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: #718096;
  }

  .dropdown-item:hover {
    background: #f7fafc;
    color: #2d3748;
  }

  .dropdown-item:hover i {
    color: #4a5568;
  }

  .logout-item {
    color: #e53e3e;
  }

  .logout-item i {
    color: #e53e3e;
  }

  .logout-item:hover {
    background: #fff5f5;
    color: #c53030;
  }

  /* Modern Toggle Switch */
  .availability-toggle-container {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
  }

  .modern-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
  }

  .modern-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .modern-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 24px;
  }

  .modern-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  input:checked+.modern-switch-slider {
    background-color: #48bb78;
  }

  input:checked+.modern-switch-slider:before {
    transform: translateX(20px);
  }

  .availability-label {
    margin-left: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #4a5568;
  }

  /* Desktop View */
  @media (min-width: 768px) {
    .mobile-view {
      display: none;
    }

    .desktop-view {
      display: flex;
    }

    .desktop-welcome-container {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .welcome-message {
      max-width: none;
    }

    .user-avatar-btn {
      width: 45px;
      height: 45px;
    }

    .dropdown-avatar-img {
      width: 60px;
      height: 60px;
    }
  }


/* sweatalert */
.swal2-container {
  z-index: 20000 !important;
}

.modal-backdrop.show {
  opacity: 0 !important;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s ease-in-out;
}

@media (max-width: 576px) {
  .toast-container {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    top: 20px;
  }

  .toast {
    width: 100%;
  }
}

.tag-checkbox {
  display: none;
}

.tag-label {
  border: 1px solid #ced4da;
  border-radius: 20px;
  padding: 8px 14px;
  margin: 5px;
  cursor: pointer;
  display: inline-block;
  color: #333;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.tag-checkbox:checked+.tag-label {
  background-color: darkred;
  color: #fff;
  border-color: darkred;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
}

.custom-button-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.custom-button {
  width: auto;
}

@media (max-width: 767px) {
  .custom-button-container {
    justify-content: center;
  }

  .custom-button {
    width: 100%;
  }
}

.card-login {
  max-width: 400px;
  width: 100%;
  margin: auto;
  padding: 40px 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
  border-radius: 26px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #4CAF50;
}

input:checked+.slider::before {
  transform: translateX(20px);
}

.table-fit {
  width: auto !important;
}

.table-fit td {
  white-space: nowrap;
  width: 1%;
}


/* Base Styles */
.trip-tracker {
 font-size: 10px;
  max-width: 100%;
  padding: 24px;
  color: #333;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Header Styles */
.trip-header {
  margin-bottom: 24px;
}

.trip-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #222;
}

.trip-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
}

.trip-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.8rem;
}

.trip-status.active {
  background-color: #E0F2FE;
  color: #0288D1;
}

.trip-status.completed {
  background-color: #E9F7EF;
  color: #1B5E20;
}

.trip-status.enroute {
  background-color: #E9F7EF;
  color: #0288D1;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 28px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.progress-bar {
  height: 10px;
  background-color: #E0E0E0;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-completed {
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.4s ease;
}

/* En Route Animation */
.progress-bar.en-route .progress-completed {
  /* Stripe pattern */
  background-image: linear-gradient(45deg, #4CAF50 25%, #66BB6A 25%, #66BB6A 50%, #4CAF50 50%, #4CAF50 75%, #66BB6A 75%, #66BB6A 100%);
  background-size: 20px 20px;
  animation: progressStripe 1s linear infinite;
}

@keyframes progressStripe {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 20px 0;
  }
}

/* Route Steps */
.route-steps {
  margin-bottom: 28px;
}

.route-step {
  position: relative;
  display: flex;
  margin-bottom: 6px;
}

.route-step.completed {
  opacity: 1;
}

.route-step.current {
  opacity: 1;
}

.step-marker {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.current-pulse {
  position: relative;
  width: 24px;
  height: 24px;
}

.current-pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background-color: #2196F3;
  opacity: 0.2;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.2;
  }

  70% {
    transform: scale(1.3);
    opacity: 0.1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.2;
  }
}

.step-content {
  flex-grow: 1;
  padding-bottom: 18px;
}

.step-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 500;
}

.step-time {
  font-size: 0.8rem;
  color: #757575;
}

.step-connector {
  position: absolute;
  left: 10px;
  /* Half of step-marker width (24px/2) - half of connector width (4px/2) */
  top: 23px;
  /* Height of step-marker + some padding */
  width: 4px;
  height: calc(100% - 13px);
  /* Adjust height to fit between steps */
  background-color: rgb(228, 225, 225);
  z-index: 0;
}

.step-connector.completed {
  background-color: #4CAF50;
}

.step-connector.enroute {
  background-color: #0288D1;
}

/* Action Card */
.action-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 16px;
}

.action-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #222;
}

.action-card p {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  color: #424242;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s;
  font-size: 16px;
}

.action-button.start {
  background-color: #4CAF50;
  /* Vert */
  color: white;
}

.action-button.start:hover {
  background-color: #388E3C;
}

.action-button.arrive {
  background-color: #2196F3;
  /* Bleu */
  color: white;
}

.action-button.arrive:hover {
  background-color: #1976D2;
}

.action-button.end {
  background-color: #FF9800;
  /* Orange pour étape finale */
  color: white;
}

.action-button.end:hover {
  background-color: #FB8C00;
}

.action-buttons .action-button {
  flex: 1;
}

/* Trip Summary */
.trip-summary {
  margin-top: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.summary-item span {
  color: #757575;
}

/* Responsive Adjustments */
@media (min-width: 1200px) {
  .trip-tracker {
    max-width: 520px;
    margin: 0 auto;
  }
}
/* Base Styles */
.eta-horizontal-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  max-width: 100%;
  display: flex;

  color: #333;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  justify-content: center;
  align-items: center;
}

/* Horizontal Timeline Styles */
  /* Horizontal Timeline Styles */
  .eta-horizontal-timeline {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 20px;
    align-items: flex-start; /* Align items at the top */
    justify-content: center;
    width: 100%;
  }

.eta-horizontal-step {
  position: relative;
  min-width: 200px;
  padding-right: 20px;
  flex-shrink: 0;
  padding-right: 5px;
}

.eta-horizontal-marker {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
}

.eta-horizontal-content {
  max-width: 150px;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.eta-horizontal-title {
  font-size: 0.5rem;
  margin-bottom: 4px;
  font-weight: 40;
}

.eta-horizontal-time {
  font-size: 0.8rem;
  color: #757575;
}

.eta-horizontal-connector {
  position: absolute;
  top: 12px;
  right: -3px;
  width: calc(100% - 19px);
  height: 4px;
  background-color: rgb(228, 225, 225);
  z-index: 0;
}

.eta-horizontal-connector.completed {
  background-color: #4CAF50;
}

.eta-horizontal-connector.enroute {
  background-color: #0288D1;
}

.eta-horizontal-pulse {
  position: relative;
  width: 24px;
  height: 24px;
}

.eta-horizontal-pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background-color: #2196F3;
  opacity: 0.2;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Vertical Timeline Styles (Mobile) */
.eta-vertical-timeline {
  display: block;
  padding-bottom: 20px;
}

.eta-vertical-step {
  position: relative;
  display: flex;
  margin-bottom: 20px;
}

.eta-vertical-marker {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.eta-vertical-content {
  flex-grow: 1;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.eta-vertical-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 500;
}

.eta-vertical-time {
  font-size: 0.8rem;
  color: #757575;
}

.eta-vertical-connector {
  position: absolute;
  left: 10px;
  top: 24px;
  width: 4px;
  height: calc(100% - 5px);
  background-color: rgb(228, 225, 225);
  z-index: 0;
}

.eta-vertical-connector.completed {
  background-color: #4CAF50;
}

.eta-vertical-connector.enroute {
  background-color: #0288D1;
}

.eta-vertical-pulse {
  position: relative;
  width: 24px;
  height: 24px;
}

.eta-vertical-pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background-color: #2196F3;
  opacity: 0.2;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Summary Card */
.eta-summary-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 16px;
}

.eta-summary-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #222;
}

.eta-summary-card p {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  color: #424242;
}

.eta-summary {
  margin-top: 12px;
}

.eta-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.eta-summary-item span {
  color: #757575;
}

/* Status Styles */
.eta-horizontal-status,
.eta-vertical-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.8rem;
}

.eta-horizontal-status.active,
.eta-vertical-status.active {
  background-color: #E0F2FE;
  color: #0288D1;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.2;
  }
  70% {
    transform: scale(1.3);
    opacity: 0.1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.2;
  }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  
  
  .eta-vertical-step {
    margin-bottom: 16px;
  }
}

  /* text
  
  
  
  */




.eta-horizontal-step {
  position: relative;
  min-width: 200px;
  max-width: 250px; /* Added max-width to prevent too wide steps */
  padding-right: 5px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%; /* Take full height of container */
}

.eta-horizontal-marker {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  flex-shrink: 0; /* Prevent marker from shrinking */
}

.eta-horizontal-content {
  padding: 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-grow: 1; /* Take remaining space */
  min-height: 120px; /* Set minimum height */
  display: flex;
  max-width: 166px;
  flex-direction: column;
  word-wrap: break-word; /* Ensure long words break */
  overflow-wrap: break-word; /* Alternative property for word breaking */
}

.eta-horizontal-title {
  font-size: 0.8rem;
  margin-bottom: 8px;
  font-weight: 400;
  word-break: break-word; /* Break long words */
}

.eta-horizontal-time {
  font-size: 0.8rem;
  color: #757575;
  margin-bottom: 8px;
  word-break: break-word; /* Break long words */
}

.eta-horizontal-status {
  margin-top: auto; /* Push status to bottom */
  align-self: flex-start; /* Align status to start */
}

/* Common button styling */
.btn-custom {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 1rem;
}

/* BLUE BUTTON */
.btn-blue {
  background-color: #155dfc;
  color: #fff !important;
  border: 1px solid #155dfc;
}
.btn-blue:hover {
  background-color: #0d4ad4; /* darker blue */
  border-color: #0d4ad4;
  color: #fff !important;
}

/* BLUE OUTLINE BUTTON */
.btn-outline-blue {
  background-color: transparent;
  color: #155dfc;
  border: 1px solid #155dfc;
}
.btn-outline-blue:hover {
  background-color: #155dfc;
  color: #fff;
}

/* PURPLE BUTTON */
.btn-purple {
  background-color: #ad46ff;
  color: #fff;
  border: 1px solid #ad46ff;
}
.btn-purple:hover {
  background-color: #922edb; /* darker purple */
  border-color: #922edb;
  color : #fff !important;
}

/* GREEN BUTTON */
.btn-green {
  background-color: #00bc7d;
  color: #fff;
  border: 1px solid #00bc7d;
}
.btn-green:hover {
  background-color: #009c68; /* darker green */
  border-color: #009c68;
  color : #fff !important;

}
.btn-blue:disabled,
.btn-blue.disabled {
  background-color: #0057fc;
  border-color: #0057fc;
  color: #e0e6f9 !important;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* BLUE OUTLINE BUTTON */
.btn-outline-blue:disabled,
.btn-outline-blue.disabled {
  background-color: transparent;
  border-color: #a0bff9;
  color: #a0bff9;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* PURPLE BUTTON */
.btn-purple:disabled,
.btn-purple.disabled {
  background-color: #d5a4ff;
  border-color: #d5a4ff;
  color: #f0e8ff !important;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* GREEN BUTTON */
.btn-green:disabled,
.btn-green.disabled {
  background-color: #8de0bf;
  border-color: #8de0bf;
  color: #d9f2e6 !important;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}
.countdown-container {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
}

.countdown-title {
  font-size: 14px;
  font-weight: 600;
}

.countdown-blocks {
  display: flex;
  gap: 8px;
}

.countdown-block {
  background: #f8f8f8;
  border-radius: 6px;
  width: 36px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #222;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.countdown-label {
  font-size: 10px;
  font-weight: 500;
  color: #666;
  margin-top: 2px;
  text-transform: lowercase;
}