/* Import Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css");

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
  --primary-color: #1a56db;
  --primary-hover: #dfe2eb;
  --primary-light: #e6eeff;
  --secondary-color: #142d55;
  --accent-color: #00a389;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --gray-light: #f3f4f6;
  --white: #ffffff;
  --vibrant-blue: #0d6efd;
  --border-color: #e5e7eb;
  --danger: #ef4444;
  --success: #10b981;
  --box-shadow-sm: 1px solid rgba(255, 255, 255, 0.1);
  --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.375rem;
  --border-radius-lg: 0.5rem;
  --font-family: "Rubik", sans-serif !important;
  --form-primary-color: #4361ee;
  --form-primary-dark: #3a56d4;
  --form-secondary-color: #f72585;
  --form-light-gray: #f8f9fa;
  --form-medium-gray: #e9ecef;
  --form-dark-gray: #6c757d;
  --form-text-dark: #2b2d42;
  --form-success-color: #06d6a0;
  --form-box-shadow: 0 10px 25px rgba(67, 97, 238, 0.1);
  --form-card-radius: 16px;
  --form-input-radius: 8px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
  --sidebar-bg: #00308F;
  --sidebar-hover: rgba(255, 255, 255, 0.08);
  --sidebar-active: rgba(255, 255, 255, 0.15);
  --sidebar-active-indicator: #00a389;
  --sidebar-text: rgba(255, 255, 255, 0.85);
  --sidebar-icon: rgba(255, 255, 255, 0.65);
  --status-booked: #f59e0b;
  --status-confirmed: #3b82f6;
  --status-completed: #10b981;
  --self-color: #87d3ff;
  --status-booked-dashboard: #7f55f2;
  --status-confirmed-dashboard: #ff4824;
  --status-completed-dashboard: #f59e0b;
  --header-height: 70px;
  --header-bg: #f0f5ff;
  --header-border: rgba(0, 48, 143, 0.06);
  --header-item-hover: rgba(26, 86, 219, 0.08);
  --header-item-active: rgba(26, 86, 219, 0.12);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.25s ease;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;
  --dashboard-stat-icon-appointments: #f0078f;
  --dashboard-stat-icon-services: #09ed19;
  --dashboard-stat-icon-customers: #7f55f2;
  --dashboard-stat-icon-drivers: #2a90ed;
  --dashboard-stat-icon-services: #09ed19;  
  --dashboard-stat-icon-customers: #7f55f2;  
  --dashboard-stat-icon-drivers: #2a90ed;  
  --service-center-primary: #4361ee;
  --service-center-primary-light: #edf2ff;
  --service-center-primary-gradient: linear-gradient(135deg, #4361ee, #3a0ca3);
  --service-center-success: #10b981;
  --service-center-warning: #f59e0b;
  --service-center-danger: #ef4444;
  --service-center-border-radius: 12px;
  --service-center-input-radius: 8px;
  --service-center-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --service-center-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family) !important;
  color: var(--text-color);
  background-color: var(--gray-light);
  line-height: 1.5;
  font-size: 0.9375rem !important;
  text-transform: capitalize !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

/* Login layout */
.login-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Banner section (left side) */
.login-banner {
  display: none;
}

@media (min-width: 992px) {
  .login-banner {
    display: block;
    flex: 1;
    position: relative;
    background-image: url('/assets/img/muscular-car-service-worker-repairing-vehicle.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
  }

  .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 139, 0.9), rgba(173, 216, 230, 0));
    display: flex;
    align-items: center;
    padding: 2rem;
  }

  .banner-content {
    max-width: 480px;
  }

  .company-logo-large {
    margin-bottom: 2rem;
  }

  .company-logo-large img {
    height: 80px;
    width: auto;
  }

  .banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
  }

  .banner-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
  }

  .service-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .feature-item {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
  }

  .feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
  }
}

/* Form container (right side) */
.login-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background-color: var(--white);
}

@media (min-width: 992px) {
  .login-form-container {
    max-width: 500px;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.05);
  }
}

/* Login header */
.login-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.login-logo-small {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.login-logo-small img {
  height: 60px;
  width: auto;
}

@media (min-width: 992px) {
  .login-logo-small {
    display: none;
  }
}

.welcome-text {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.welcome-subtext {
  color: var(--text-light);
  font-size: 1rem;
}

/* Alert styling */
.custom-alert {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.alert-icon {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* Form styling */
.premium-form {
  margin-bottom: 2rem;
}

.form-group-premium {
  margin-bottom: 1.5rem;
}

.form-label-premium {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-color);
}

.password-label-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.forgot-link {
  font-size: 0.8125rem;
  font-weight: 500;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
}

.form-input-premium {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 0.9375rem;
  color: var(--text-color);
  box-shadow: var(--box-shadow-sm);
  transition: all 0.2s ease;
}

.form-input-premium:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.form-input-premium::placeholder {
  color: var(--text-muted);
}

.feedback-text {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
}

/* Remember me section */
.remember-me-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remember-checkbox {
  font-size: 0.875rem;
  color: var(--text-light);
}

.remember-checkbox input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
}

.device-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.device-info i {
  color: var(--success);
  margin-right: 0.375rem;
}

/* Sign in button */
.sign-in-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow-md);
}

.sign-in-button:hover:not(:disabled) {
  background-color: var(--primary-hover);
  box-shadow: var(--box-shadow-lg);
  transform: translateY(-1px);
}

.sign-in-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--box-shadow-sm);
}

.sign-in-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.sign-in-button i {
  margin-left: 0.5rem;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.sign-in-button:hover:not(:disabled) i {
  transform: translateX(4px);
}

.spinner-container {
  margin-right: 0.75rem;
}

/* Footer */
.login-footer {
  margin-top: auto;
}

.support-container {
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.support-options {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.support-option {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-md);
  transition: all 0.2s ease;
}

.support-option:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.support-option i {
  margin-right: 0.5rem;
  font-size: 1.125rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .login-form-container {
    padding: 1.5rem;
  }

  .welcome-text {
    font-size: 1.5rem;
  }

  .form-input-premium {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
  }

  .support-options {
    flex-direction: column;
    gap: 1rem;
  }

  .support-option {
    justify-content: center;
  }
}

/* Add these styles to your CSS file */

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-wrapper {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.form-input-premium {
  padding-left: 48px !important;
  /* Important to ensure this styling overrides Bootstrap defaults */
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #ced4da;
  transition: all 0.2s ease;
}

.form-input-premium:focus {
  border-color: var(--vibrant-blue);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.password-toggle-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-right: 15px;
}

.password-toggle-btn:hover {
  color: var(--vibrant-blue);
}

/* Improved styling for the forgot password link */
.password-label-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.forgot-link {
  font-size: 0.875rem;
  color: var(--vibrant-blue);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Forgot Password Page Styles - matching login but with unique classes */

/* Main container */
.forgot-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Banner section (left side) - reusing some login styles since they're shared across pages */
.forgot-banner {
  display: none;
}

@media (min-width: 992px) {
  .forgot-banner {
    display: block;
    flex: 1;
    position: relative;
    background-image: url('/assets/img/fresh-material-mechanic-holding-tire-repair-garage-replacement-winter-summer-tires.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
  }

  /* Banner overlay and content are shared with login page as they're identical */
}

/* Form container (right side) */
.forgot-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background-color: var(--white);
}

@media (min-width: 992px) {
  .forgot-form-container {
    max-width: 500px;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.05);
  }
}

/* Forgot password header */
.forgot-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.forgot-logo-small {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.forgot-logo-small img {
  height: 60px;
  width: auto;
}

@media (min-width: 992px) {
  .forgot-logo-small {
    display: none;
  }
}

.forgot-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.forgot-subtitle {
  color: var(--text-light);
  font-size: 1rem;
}

/* Alert styling */
.forgot-alert {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
}

.forgot-alert.success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.forgot-alert.danger {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

/* Form styling */
.forgot-form {
  margin-bottom: 2rem;
}

.forgot-form-group {
  margin-bottom: 1.5rem;
}

.forgot-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-color);
}

.forgot-form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 0.9375rem;
  color: var(--text-color);
  box-shadow: var(--box-shadow-sm);
  transition: all 0.2s ease;
}

.forgot-form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.forgot-form-input::placeholder {
  color: var(--text-muted);
}

.forgot-helper-text {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Button styling */
.forgot-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow-md);
  margin-bottom: 1.5rem;
}

.forgot-button:hover:not(:disabled) {
  background-color: var(--primary-hover);
  box-shadow: var(--box-shadow-lg);
  transform: translateY(-1px);
}

.forgot-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--box-shadow-sm);
}

.forgot-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.forgot-button i {
  margin-left: 0.5rem;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.forgot-button:hover:not(:disabled) i {
  transform: translateX(4px);
}

/* Back to login link */
.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s ease;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--primary-color);
}

.back-link i {
  margin-right: 0.5rem;
}

/* OTP Modal styling - kept the same as it's a shared component */
.otp-modal .modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--box-shadow-xl);
}

.otp-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.otp-modal-title {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.otp-modal-subtitle {
  color: var(--text-light);
  font-size: 0.9375rem;
  text-align: center;
}

.otp-modal-body {
  padding: 1.5rem;
}

.otp-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.otp-input {
  width: 3rem;
  height: 3rem;
  text-align: center;
  font-size: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-sm);
}

.otp-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.otp-timer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.otp-resend {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: var(--primary-color);
  margin-top: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.otp-resend:hover {
  text-decoration: underline;
}

.otp-modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem 1.5rem;
  border-top: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .forgot-form-container {
    padding: 1.5rem;
  }

  .forgot-title {
    font-size: 1.5rem;
  }

  .forgot-form-input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
  }

  .support-options {
    flex-direction: column;
    gap: 1rem;
  }

  .support-option {
    justify-content: center;
  }
}

/* Reset Password specific styling */
.reset-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Banner section (left side) */
.reset-banner {
  display: none;
}

@media (min-width: 992px) {
  .reset-banner {
    display: block;
    flex: 1;
    position: relative;
    background-image: url('/assets/img/almost-done-mechanic-holding-tire-repair-garage-replacement-winter-summer-tires.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
  }
}

/* Form container (right side) */
.reset-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background-color: var(--white);
}

@media (min-width: 992px) {
  .reset-form-container {
    max-width: 500px;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.05);
  }
}

/* Reset header */
.reset-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.reset-logo-small {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.reset-logo-small img {
  height: 60px;
  width: auto;
}

@media (min-width: 992px) {
  .reset-logo-small {
    display: none;
  }
}

/* Password strength meter */
.password-strength-meter {
  margin-top: 0.75rem;
}

.strength-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}

.strength-label {
  font-weight: 500;
}

.strength-progress {
  height: 6px;
  background-color: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.strength-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* Alert customization */
.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
}

/* Reset button */
.reset-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow-md);
  margin-bottom: 2rem;
}

.reset-button:hover:not(:disabled) {
  background-color: var(--primary-hover);
  box-shadow: var(--box-shadow-lg);
  transform: translateY(-1px);
}

.reset-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--box-shadow-sm);
}

.reset-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.reset-button i {
  margin-left: 0.5rem;
  font-size: 1rem;
}

/* Reset footer */
.reset-footer {
  margin-top: auto;
}

/* Back to login link */
.back-to-login {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-md);
  transition: all 0.2s ease;
}

.back-to-login:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  text-decoration: none;
}

.back-to-login i {
  margin-right: 0.5rem;
  font-size: 1.125rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .reset-form-container {
    padding: 1.5rem;
  }

  .reset-button {
    margin-bottom: 1.5rem;
  }
}

/* Header Styles */
.pickdrop-header {
  height: var(--header-height);
  background-color: var(--white);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999;
  font-family: var(--font-family) !important;
  transition: left 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.pickdrop-app-container.sidebar-open .pickdrop-header {
  left: 260px;
}

.pickdrop-app-container.sidebar-collapsed .pickdrop-header {
  left: 70px;
}

.pickdrop-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 1.5rem;
}

.pickdrop-header-left {
  display: flex;
  align-items: center;
}

.pickdrop-sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.pickdrop-sidebar-toggle:hover {
  background-color: var(--gray-light);
  color: var(--primary-color);
}

.pickdrop-header-brand h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.pickdrop-header-brand a {
  text-decoration: none;
}

.pickdrop-header-search {
  flex: 1;
  max-width: 500px;
  margin: 0 2rem;
}

.pickdrop-search-container {
  position: relative;
  width: 100%;
}

.pickdrop-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.pickdrop-search-input {
  width: 100%;
  height: 40px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  font-size: 0.875rem;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.pickdrop-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.pickdrop-header-right {
  display: flex;
  align-items: center;
}

.pickdrop-header-notifications,
.pickdrop-header-messages {
  position: relative;
  margin-right: 1.5rem;
}

.pickdrop-notification-btn,
.pickdrop-message-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-color);
  font-size: 1.25rem;
}

.pickdrop-notification-btn:hover,
.pickdrop-message-btn:hover {
  background-color: var(--gray-light);
  color: var(--primary-color);
}

.pickdrop-notification-badge,
.pickdrop-message-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background-color: var(--danger);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pickdrop-header-profile {
  position: relative;
}

.pickdrop-profile-btn {
  background: none;
  border: none;
  height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 0.5rem;
  border-radius: var(--border-radius-md);
}

.pickdrop-profile-btn:hover {
  background-color: var(--gray-light);
}

.pickdrop-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.75rem;
  border: 2px solid var(--primary-light);
}

.pickdrop-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pickdrop-profile-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  margin-right: 0.5rem;
}

.pickdrop-profile-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sidebar Styles */
.pickdrop-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: var(--sidebar-bg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  font-family: var(--font-family) !important;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pickdrop-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  overflow-x: hidden;
}

.pickdrop-sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 70px;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.1);
}

.pickdrop-sidebar.collapsed .pickdrop-sidebar-header {
  padding: 1rem 0;
}

.pickdrop-sidebar-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}

.pickdrop-sidebar-header p {
  margin: 0 0 0 40px;
  font-size: 0.75rem;
  color: var(--sidebar-text);
  opacity: 0.8;
}

.pickdrop-sidebar-nav {
  flex: 1;
  padding: 1.25rem 0;
}

.pickdrop-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pickdrop-nav-item {
  margin-bottom: 0.5rem;
  position: relative;
}

.pickdrop-nav-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 0.25rem;
  margin: 0 0.75rem;
}

.pickdrop-sidebar.collapsed .pickdrop-nav-link {
  padding: 0.875rem 0.5rem;
  justify-content: center;
}

.pickdrop-nav-link:hover,
.pickdrop-nav-link.active {
  color: var(--white);
  background-color: var(--sidebar-hover);
}

.pickdrop-nav-link.active {
  background-color: var(--sidebar-active);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
}

.pickdrop-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--sidebar-active-indicator);
  border-radius: 0 2px 2px 0;
}

.pickdrop-sidebar.collapsed .pickdrop-nav-link.active::before {
  width: 4px;
  height: 60%;
  top: 20%;
}

.pickdrop-icon {
  margin-right: 0.875rem;
  width: 1.25rem;
  text-align: center;
  color: var(--sidebar-icon);
  font-size: 1.125rem;
  transition: color 0.2s ease;
}

.pickdrop-nav-link:hover .pickdrop-icon,
.pickdrop-nav-link.active .pickdrop-icon {
  color: var(--white);
}

.pickdrop-sidebar.collapsed .pickdrop-icon {
  margin-right: 0;
  font-size: 1.25rem;
}

.pickdrop-subnav-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0.75rem 2.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.pickdrop-subnav-item {
  margin-bottom: 0;
}

.pickdrop-subnav-link {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.8125rem;
  position: relative;
}

.pickdrop-subnav-link:hover,
.pickdrop-subnav-link.active {
  color: var(--white);
  background-color: var(--sidebar-hover);
}

.pickdrop-subnav-link.active {
  background-color: var(--sidebar-active);
}

.pickdrop-subnav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--sidebar-active-indicator);
}

.pickdrop-nav-dropdown {
  color: var(--sidebar-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
}

.pickdrop-nav-dropdown:hover,
.pickdrop-nav-dropdown.active {
  color: var(--white);
}

/* Main Content Styles */
.pickdrop-main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  transition: margin 0.3s ease;
  min-height: calc(100vh - var(--header-height));
  width: calc(100% - var(--sidebar-width));
  /* Fix for right margin issue */
}

.pickdrop-app-container.sidebar-collapsed .pickdrop-main-content {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
  /* Fix for right margin when sidebar collapsed */
}

.pd-add-driver {
  padding: 2rem;
  max-width: 100%;
  /* Changed from fixed width to 100% */
  margin: 0 auto;
  background-color: #fafafa;
  min-height: calc(100vh - var(--header-height));
  transition: margin-left 0.3s ease;
}

/* Remove these conflicting styles that cause overlap issues */
/* Styles for when sidebar is open */
.sidebar-open .pickdrop-drivers-list,
.sidebar-open .pd-add-driver {
  margin-left: 0;
  /* Reset this - the margin is now handled by pickdrop-main-content */
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .pickdrop-sidebar {
    transform: translateX(-100%);
  }

  .pickdrop-sidebar.open {
    transform: translateX(0);
  }

  .pickdrop-sidebar.collapsed {
    transform: translateX(-100%);
  }

  .pickdrop-app-container.sidebar-open .pickdrop-header,
  .pickdrop-app-container.sidebar-collapsed .pickdrop-header {
    left: 0;
  }

  .pickdrop-main-content,
  .pickdrop-app-container.sidebar-collapsed .pickdrop-main-content {
    margin-left: 0;
  }
}

/* Add Screnn CSS */
.pd-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.pd-page-header h2 {
  color: var(--form-text-dark);
  margin-bottom: 0.25rem;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--form-primary-color), var(--form-secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pd-page-header p {
  color: var(--form-dark-gray);
  margin-bottom: 0;
  font-size: 1rem;
}

.pd-status-badge {
  background: linear-gradient(135deg, var(--form-primary-color), var(--form-primary-dark)) !important;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pd-alert {
  margin-bottom: 2rem;
  border-radius: var(--form-card-radius);
  border: none;
  box-shadow: var(--form-box-shadow);
}

.pd-card {
  border: none;
  border-radius: var(--form-card-radius);
  box-shadow: var(--form-box-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background-color: var(--white) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(67, 97, 238, 0.15);
}

.pd-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.pd-section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--form-medium-gray), transparent);
}

.pd-section-title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--form-primary-color);
  padding-bottom: 1rem;
  border-bottom: none;
  display: flex;
  align-items: center;
  position: relative;
}

.pd-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--form-primary-color), var(--form-secondary-color));
  border-radius: 3px;
}

.pd-icon {
  margin-right: 0.75rem;
  color: var(--form-primary-color);
  font-size: 1.25rem;
}

.pd-input {
  border-radius: var(--form-input-radius);
  padding: 0.75rem 1rem;
  border: 1px solid var(--form-medium-gray);
  transition: all 0.3s ease;
  background-color: #fff;
}

.pd-input:focus {
  border-color: var(--form-primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  transform: translateY(-2px);
}

.form-select.pd-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234361ee' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  padding-right: 2.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--form-text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.pd-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.pd-checkbox label {
  font-weight: 500;
  padding-left: 0.5rem;
}

.pd-checkbox input {
  border-color: var(--form-medium-gray);
}

.pd-checkbox input:checked {
  background-color: var(--form-primary-color);
  border-color: var(--form-primary-color);
}

.pd-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--form-medium-gray);
  gap: 1rem;
}

.text-muted {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
}

/* File input styling */
.form-control[type="file"] {
  padding: 0.625rem;
  padding-left: 1rem;
}

.form-control[type="file"]::file-selector-button {
  background-color: var(--form-light-gray);
  color: var(--form-text-dark);
  border: 1px solid var(--form-medium-gray);
  border-radius: var(--form-input-radius);
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-control[type="file"]::file-selector-button:hover {
  background-color: var(--form-primary-color);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .pd-add-driver {
    padding: 1.5rem;
  }

  .pd-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-status-badge {
    margin-top: 1rem;
  }

  .pd-form-actions {
    flex-direction: column-reverse;
  }

  .pd-checkbox-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pd-card {
    border-radius: 12px;
  }
}

/* Animation for alerts */
.pd-alert {
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: var(--form-light-gray);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--form-primary-color), var(--form-primary-dark));
  border-radius: 10px;
}

/* Focus visible styles for accessibility */
:focus-visible {
  outline: 3px solid rgba(67, 97, 238, 0.5);
  outline-offset: 2px;
}

/* Profile Dropdown Styles */
.pickdrop-profile-dropdown {
  position: relative;
}

.pickdrop-profile-btn {
  background: none;
  border: none;
  height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 0.75rem;
  border-radius: var(--border-radius-md);
}

.pickdrop-profile-btn:hover {
  background-color: var(--gray-light);
}

.pickdrop-profile-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 280px;
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-lg);
  overflow: hidden;
  z-index: 1001;
  border: 1px solid var(--border-color);
  animation: slideDown 0.2s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pickdrop-profile-menu-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.pickdrop-profile-info h6 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-color);
}

.pickdrop-profile-info p {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.pickdrop-profile-menu-body {
  padding: 0.5rem 0;
}

.pickdrop-profile-menu-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pickdrop-profile-menu-item:hover {
  background-color: var(--gray-light);
  color: var(--primary-color);
}

.pickdrop-profile-menu-icon {
  width: 1.25rem;
  margin-right: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-light);
}

.pickdrop-profile-menu-item:hover .pickdrop-profile-menu-icon {
  color: var(--primary-color);
}

.pickdrop-profile-menu-footer {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-color);
}

.pickdrop-profile-menu-logout {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--danger);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pickdrop-profile-menu-logout:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.pickdrop-profile-menu-logout .pickdrop-profile-menu-icon {
  color: var(--danger);
}

/* Tabs Styling for the driver form */
.pd-tabs-navigation {
  margin-bottom: 2rem;
}

.pd-tabs {
  display: flex;
  border-bottom: 1px solid var(--form-medium-gray);
  padding-bottom: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 0.25rem;
}

.pd-tab {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--form-text-dark);
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: all 0.3s ease;
  font-weight: 600;
  background-color: transparent;
  white-space: nowrap;
}

.pd-tab.active,
.pd-tab:hover {
  color: var(--form-primary-color);
  background-color: transparent;
  border-bottom: 3px solid var(--form-primary-color);
}

.pd-tab .pd-icon {
  margin-right: 0.75rem;
  font-size: 1rem;
}

.pd-tab-content {
  padding: 1rem 0.5rem;
}

.pd-tab-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.pd-btn-prev,
.pd-btn-next {
  display: flex !important;
  align-items: center;
  gap: 0.5rem !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
  font-weight: 600;
}

.pd-btn-prev {
  background-color: #778594 !important;
  border: 2px solid var(--form-medium-gray);
  color: var(--white) !important;
}

.pd-btn-prev:hover {
  background-color: var(--form-light-gray);
  border-color: var(--form-dark-gray);
  transform: translateY(-2px);
}

.pd-btn-next {
  background: linear-gradient(135deg, var(--form-primary-color), var(--form-primary-dark));
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.pd-btn-next:hover {
  background: linear-gradient(135deg, var(--form-primary-dark), var(--form-primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

/* Progress Indicator for tabs */
.pd-progress-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 0.5rem;
}

.pd-progress-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--form-medium-gray);
  transform: translateY(-50%);
  z-index: 1;
}

.pd-progress-indicator-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pd-progress-indicator-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--form-medium-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--form-text-dark);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.pd-progress-indicator-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--form-text-dark);
  white-space: nowrap;
}

.pd-progress-indicator-step.active .pd-progress-indicator-dot {
  background-color: var(--form-primary-color);
  border-color: var(--form-primary-color);
  color: var(--white);
}

.pd-progress-indicator-step.active .pd-progress-indicator-text {
  color: var(--form-primary-color);
}

.pd-progress-indicator-step.completed .pd-progress-indicator-dot {
  background-color: var(--form-success);
  border-color: var(--form-success);
  color: var(--white);
}

/* Responsive styles for tabs */
@media (max-width: 767.98px) {
  .pd-tabs {
    overflow-x: auto;
  }

  .pd-tab {
    padding: 0.75rem 1rem;
  }

  .pd-tab-actions {
    flex-direction: column;
  }
}

/* Tab content fade animation */
.tab-content>.tab-pane {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove bottom border from last section in tabs */
.pd-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.pd-section:last-child::after {
  display: none;
}

/** List Screen CSS **/
/* PickupDrop List Screen Styles */

/* Page Layout and Container */
/* .pd-list-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem;
} */

.pd-list-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pd-list-page-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

.pd-list-page-header p {
  color: #6c757d;
  margin-bottom: 0;
}

/* Cards */
.pd-list-card {
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid #e9ecef;
}

.pd-list-filter-card {
  background-color: #f8f9fa;
}

/* Add Button */
.pd-list-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--vibrant-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.pd-list-icon {
  margin-right: 0.5rem;
}

/* Filters */
.pd-list-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pd-list-search {
  flex: 1;
  min-width: 300px;
}

.pd-list-input {
  border: 1px solid #ced4da;
  padding: 0.5rem 0.75rem;
}

/* Dropdown Fixes */
.pd-list-dropdown {
  position: relative;
}

.pd-list-filter-btn {
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid #ced4da;
  color: #495057;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

.pd-list-dropdown-menu {
  min-width: 220px;
  padding: 0.5rem 0;
  /* Fix dropdown overlap issue */
  position: absolute !important;
  z-index: 1000;
  transform: none !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
}

/* Table */
.pd-list-table {
  min-width: 1000px;
  margin-bottom: 0;
}

.pd-list-table th {
  background-color: var(--vibrant-blue) !important;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--white) !important;
  border-bottom: 2px solid #dee2e6;
}

.pd-list-table td {
  padding: 1rem;
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
}

.pd-list-sort-header {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.pd-list-sort-icon {
  margin-left: 0.5rem;
  color: white;
}

/* Action Column */
.pd-list-actions-column {
  width: 80px;
  text-align: center;
}

.pd-list-actions-dropdown {
  position: static;
  /* Prevent dropdown positioning issues */
}

.pd-list-action-toggle {
  background: transparent;
  border: none;
  color: #6c757d;
  padding: 0.25rem 0.5rem;
}

.pd-list-action-toggle:hover,
.pd-list-action-toggle:focus {
  background: #f8f9fa;
  color: #495057;
}

.pd-list-action-toggle::after {
  display: none;
  /* Remove default caret */
}

.pd-list-action-menu {
  /* Fix action dropdown overlap issue */
  position: absolute !important;
  right: 1rem !important;
  left: auto !important;
  transform: none !important;
  z-index: 1000;
  min-width: 180px;
}

.pd-list-action-item {
  padding: 0.5rem 1rem;
  color: #495057;
}

.pd-list-action-icon {
  width: 1rem;
  margin-right: 0.75rem;
  color: #6c757d;
}

.pd-list-action-danger {
  color: #dc3545;
}

.pd-list-action-danger .pd-list-action-icon {
  color: #dc3545 !important;
}

/* User Info */
.pd-list-user-info {
  display: flex;
  align-items: center;
}

.pd-list-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.75rem;
  background-color: #e9ecef;
}

.pd-list-user-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-list-user-id {
  color: #6c757d;
  font-size: 0.8rem;
}

/* Contact Info */
.pd-list-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.email
{
  text-transform: none;
}
.pd-list-email,
.pd-list-phone {
  display: flex;
  align-items: center;
  color: #495057;
  font-size: 0.9rem;
  text-transform: none;
}

.pd-list-contact-icon {
  color: #6c757d;
  width: 1rem;
  margin-right: 0.5rem;
}

/* Status Badge */
.pd-list-status-badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

/* Trip Count */
.pd-list-trip-count {
  font-weight: 500;
  color: #495057;
}

/* Rating */
.pd-list-rating {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-list-rating-value {
  font-weight: 500;
  margin-right: 0.25rem;
}

.pd-list-star-icon {
  color: #ffc107;
}

/* Pagination */
.pd-list-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pd-list-pagination .page-link {
  color: #495057;
  padding: 0.375rem 0.75rem;
  border-color: #dee2e6;
}

.pd-list-pagination .page-item.active .page-link {
  background-color: var(--vibrant-blue);
  border-color: var(--vibrant-blue);
  color: white;
  box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

/* Empty State */
.pd-list-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.pd-list-empty-icon {
  font-size: 3rem;
  color: #ced4da;
  margin-bottom: 1rem;
}

.pd-list-empty h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #495057;
}

.pd-list-empty p {
  color: #6c757d;
}

/* Loading State */
.pd-list-loading {
  text-align: center;
  padding: 3rem 1rem;
}

.pd-list-spinner {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 0.25rem solid #dee2e6;
  border-right-color: var(--vibrant-blue);
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
  margin-bottom: 1rem;
}

.pd-list-loading-text {
  color: #6c757d;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .pd-list-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pd-list-filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-list-pagination-container {
    flex-direction: column;
    align-items: center;
  }
}

/* PickupDrop List Screen Styles - Updated to match Add Screen */

/* Page Layout and Container */
.pd-list-container {
  width: 100%;
  /* max-width: 1440px; */
  margin: 0 auto;
  padding: 1.5rem;
}

.pd-list-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.pd-list-page-header h2 {
  color: var(--form-text-dark);
  margin-bottom: 0.25rem;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--form-primary-color), var(--form-secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pd-list-page-header p {
  color: var(--form-dark-gray);
  margin-bottom: 0;
  font-size: 1rem;
}

/* Cards */
.pd-list-card {
  border: none;
  border-radius: var(--form-card-radius);
  box-shadow: var(--form-box-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background-color: var(--white) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-list-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(67, 97, 238, 0.15);
}

.pd-list-filter-card {
  background-color: var(--white) !important;
}

/* Add Button */
.pd-list-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
  margin-left: 15px;
}

.pd-list-icon {
  margin-right: 0.75rem;
}

/* Filters */
.pd-list-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 0 2rem;
}

.pd-list-search {
  flex: 1;
  min-width: 300px;
}

.drivers-search-icon {
  background-color: var(--vibrant-blue) !important;
  color: var(--white) !important;
}

.pd-list-input {
  border-radius: var(--form-input-radius);
  padding: 0.75rem 1rem;
  border: 1px solid var(--form-medium-gray);
  transition: all 0.3s ease;
  background-color: #fff;
}

.pd-list-input:focus {
  border-color: var(--form-primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  transform: translateY(-2px);
}

.pd-list-status-filter {
  display: flex;
  align-items: center;
}

/* Dropdown Fixes */
.pd-list-dropdown {
  position: relative;
}

.pd-list-filter-btn {
  display: flex;
  align-items: center;
  background-color: var(--vibrant-blue) !important;
  border: 2px solid var(--form-medium-gray);
  color: var(--white) !important;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pd-list-filter-btn:hover,
.pd-list-filter-btn:focus {
  background-color: var(--form-light-gray);
  border-color: var(--form-dark-gray);
  color: var(--form-text-dark);
  transform: translateY(-2px);
}

.pd-list-dropdown-menu {
  min-width: 220px;
  padding: 0.75rem 0;
  /* Fix dropdown overlap issue */
  position: absolute !important;
  z-index: 1000;
  transform: none !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
  border: none;
  border-radius: var(--form-card-radius);
  box-shadow: var(--form-box-shadow);
  animation: slideDown 0.4s ease-out;
}

/* Table */
.pd-list-table-container {
  overflow-x: auto;
  border-radius: 12px;
  width: 100%;
}

.pd-list-table {
  min-width: 1000px;
  margin-bottom: 0;
}

.pd-list-table th {
  background-color: var(--form-light-gray);
  font-weight: 600;
  color: var(--form-text-dark);
  border-bottom: 2px solid var(--form-medium-gray);
  padding: 13px !important;
  max-width: 100px;
}

.pd-list-table td {
  padding: 1.25rem 1rem;
  vertical-align: middle;
  border-top: 1px solid var(--form-medium-gray);
  transition: background-color 0.3s ease;
}

.pd-list-table tr:hover td {
  background-color: rgba(67, 97, 238, 0.05);
}

.pd-list-table th:hover {
  background-color: rgba(26, 86, 219, 0.9) !important;
  /* Semi-transparent highlight on hover */
}

.pd-list-sort-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
  justify-content: center;
}

.pd-list-action-toggle {
  background: transparent;
  border: none;
  color: var(--form-dark-gray);
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pd-list-action-toggle:hover,
.pd-list-action-toggle:focus {
  background: var(--form-light-gray);
  color: var(--form-primary-color);
  transform: scale(1.1);
}

.pd-list-action-toggle::after {
  display: none;
  /* Remove default caret */
}

.pd-list-action-menu {
  /* Fix action dropdown overlap issue */
  position: absolute !important;
  right: 1rem !important;
  left: auto !important;
  transform: none !important;
  z-index: 1000;
  min-width: 180px;
  border: none;
  border-radius: var(--form-card-radius);
  box-shadow: var(--form-box-shadow);
  animation: slideDown 0.4s ease-out;
}

.pd-list-action-item {
  padding: 0.75rem 1rem;
  color: var(--form-text-dark);
  transition: all 0.3s ease;
}

.pd-list-action-item:hover {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--form-primary-color);
}

.pd-list-action-icon {
  width: 1rem;
  margin-right: 0.75rem;
  color: var(--form-dark-gray);
  transition: color 0.3s ease;
}

.pd-list-action-item:hover .pd-list-action-icon {
  color: var(--form-primary-color);
}

.pd-list-action-danger {
  color: var(--form-danger);
}

.pd-list-action-danger .pd-list-action-icon {
  color: var(--form-danger);
}

.pd-list-action-danger:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--form-danger);
}

/* User Info */
.pd-list-user-info {
  display: flex;
  align-items: center;
}

.pd-list-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.75rem;
  background-color: var(--form-light-gray);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pd-list-user-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-list-user-name {
  margin-bottom: 0.25rem;
  color: var(--form-text-dark);
}

.pd-list-user-id {
  color: var(--form-dark-gray);
  font-size: 0.8rem;
}

/* Contact Info */
.pd-list-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pd-list-email,
.pd-list-phone {
  display: flex;
  align-items: center;
  color: var(--form-text-dark);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.pd-list-email:hover,
.pd-list-phone:hover {
  color: var(--form-primary-color);
}

.pd-list-contact-icon {
  color: var(--form-primary-color);
  width: 1rem;
  margin-right: 0.5rem;
}

/* Trip Count */
.pd-list-trip-count {
  color: var(--form-text-dark);
}

/* Rating */
.pd-list-rating {
  display: flex;
  align-items: center;
}

.pd-list-rating-value {
  margin-right: 0.25rem;
  color: var(--form-text-dark);
}

.pd-list-star-icon {
  color: #ffc107;
}

/* Pagination */
.pd-list-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--form-medium-gray);
}

.pd-list-pagination-info {
  color: var(--form-dark-gray);
  text-transform: lowercase;
}

.pd-list-pagination .page-link {
  color: var(--form-text-dark);
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  border-color: var(--form-medium-gray);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pd-list-pagination .page-link:hover {
  background-color: var(--form-light-gray);
  border-color: var(--form-primary-color);
  color: var(--form-primary-color);
  transform: translateY(-2px);
}

.pd-list-pagination .page-item.disabled .page-link {
  color: var(--form-medium-gray);
}

/* Empty State */
.pd-list-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.pd-list-empty-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

.pd-list-empty h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--form-text-dark);
  font-weight: 600;
}

.pd-list-empty p {
  color: var(--form-dark-gray);
  margin-bottom: 1.5rem;
}

.pd-list-empty-btn {
  background: linear-gradient(135deg, var(--form-primary-color), var(--form-primary-dark));
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pd-list-empty-btn:hover {
  background: linear-gradient(135deg, var(--form-primary-dark), var(--form-primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
  color: white;
}

/* Loading State */
.pd-list-loading {
  text-align: center;
  padding: 3rem 1rem;
}

.pd-list-spinner {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 0.25rem solid var(--form-light-gray);
  border-right-color: var(--form-primary-color);
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(67, 97, 238, 0.1);
}

.pd-list-loading-text {
  color: var(--form-dark-gray);
  font-weight: 500;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Animation for alerts */
.pd-list-alert {
  animation: slideDown 0.4s ease-out;
  margin-bottom: 2rem;
  border-radius: var(--form-card-radius);
  border: none;
  box-shadow: var(--form-box-shadow);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .pd-list-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pd-list-filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-list-pagination-container {
    flex-direction: column;
    align-items: center;
  }

  .pd-list-add-btn {
    width: 100%;
    justify-content: center;
  }

  .pd-list-table {
    min-width: 768px;
  }
}

/* Focus visible styles for accessibility */
:focus-visible {
  outline: 3px solid rgba(67, 97, 238, 0.5);
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: var(--form-light-gray);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--form-primary-color), var(--form-primary-dark));
  border-radius: 10px;
}

/* Custom Filter Panel Styles */
.pd-filter-panel {
  position: fixed;
  top: 0;
  right: -320px;
  /* Initially hidden */
  width: 300px;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1050;
  padding: 20px;
  overflow-y: auto;
  border-left: 3px solid #007bff;
}

/* Show the panel when active */
.pd-filter-panel.active {
  right: 0;
}

/* Header */
.pd-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* Close button */
.pd-filter-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.pd-filter-close:hover {
  color: #000;
}

/* Filter Options */
.pd-filter-options {
  margin-top: 20px;
}

.pd-filter-options button {
  width: 100%;
  text-align: left;
  padding: 12px;
  border: none;
  background: #f8f9fa;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pd-filter-options button:hover {
  background: #007bff;
  color: #fff;
}

.pd-filter-options button.active {
  background: #007bff;
  color: white;
}

.red-asterisk {
  color: red;
}

.react-tel-input .form-control {
  width: 100% !important;
}

/* View Driver */
/* View Driver Component CSS */
/* This can be added to your main CSS file since it uses the same variables from the provided CSS */

/* View Driver Page Styles */
.pd-view-driver {
  padding: 2rem;
  max-width: 100%;
  margin: 0 auto;
  background-color: #fafafa;
  min-height: calc(100vh - var(--header-height));
  transition: margin-left 0.3s ease;
}

/* Profile Card Styles */
.pd-profile-card {
  position: relative;
  overflow: visible;
}

.pd-profile-photo {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
  border: 4px solid var(--white);
}

.pd-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-driver-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--form-text-dark);
}

.pd-driver-id {
  color: var(--form-dark-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Stats display */
.pd-driver-stats {
  display: flex;
  justify-content: space-around;
  padding: 1.25rem 0;
  border-top: 1px solid var(--form-medium-gray);
  border-bottom: 1px solid var(--form-medium-gray);
  margin: 0 -1.5rem 1.5rem;
}

.pd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pd-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--form-primary-color);
}

.pd-stat-label {
  font-size: 0.85rem;
  color: var(--form-dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact information */
.pd-driver-contact {
  margin-bottom: 1.5rem;
}

.pd-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--form-text-dark);
}

.pd-contact-item .pd-icon {
  width: 1.5rem;
  margin-right: 0.75rem;
  color: var(--form-primary-color);
}

/* Quick action buttons */
.pd-btn-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  transition: all 0.3s ease;
}

.pd-btn-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Header actions */
.pd-header-actions {
  display: flex;
  align-items: center;
}

.pd-btn-outline {
  border: 2px solid var(--form-primary-color);
  color: var(--form-primary-color);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: transparent;
}

.pd-btn-outline:hover {
  background-color: var(--form-primary-light);
  color: var(--form-primary-color);
  border-color: var(--form-primary-color);
}

.pd-btn-primary {
  background: linear-gradient(135deg, var(--form-primary-color), var(--form-primary-dark));
  border: none;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
  transition: all 0.3s ease;
}

.pd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(67, 97, 238, 0.4);
  background: linear-gradient(135deg, var(--form-primary-dark), var(--form-primary-color));
}

/* Information display */
.pd-info-group {
  padding: 0.5rem 0;
}

.pd-info-item {
  display: flex;
  flex-direction: column;
}

.pd-info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--form-dark-gray);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pd-info-value {
  font-size: 1rem;
  color: var(--form-text-dark);
  font-weight: 500;
  background-color: var(--form-light-gray);
  padding: 0.75rem 1rem;
  border-radius: var(--form-input-radius);
  border: 1px solid var(--form-medium-gray);
  min-height: 45px;
  display: flex;
  align-items: center;
}

/* Document image display */
.pd-document-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--form-input-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pd-license-image {
  padding: 0.5rem;
  background-color: var(--white);
  border-radius: var(--form-input-radius);
  display: inline-block;
}

/* Loading state */
.pd-loading,
.pd-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.pd-loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--form-light-gray);
  border-top: 5px solid var(--form-primary-color);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.pd-icon-lg {
  font-size: 3rem;
  color: var(--form-secondary-color);
  margin-bottom: 1.5rem;
}

.pd-error h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--form-text-dark);
}

.pd-error p {
  color: var(--form-dark-gray);
  margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .pd-profile-card {
    margin-bottom: 2rem;
  }

  .pd-header-actions {
    margin-top: 1rem;
  }

  .pd-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .pd-view-driver {
    padding: 1rem;
  }

  .pd-tab span {
    display: none;
  }

  .pd-tab .pd-icon {
    margin-right: 0;
  }

  .pd-tabs {
    justify-content: space-around;
  }
}

i.fas.fa-edit.pd-icon {
  color: white;
}

.appointments-table-container {
  max-width: 1400px;
  overflow: hidden;
  margin: 0 auto;
  padding: 2.5rem;
  background-color: white;
  box-shadow:
    0 25px 50px -12px rgba(99, 102, 241, 0.1),
    0 10px 15px -3px rgba(99, 102, 241, 0.05);
  font-family: var(--font-family) !important;
  background-color: var(--background-light);
}

.appointments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.appointments-header h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.025em;
}

.search-filter-container {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.search-wrapper {
  position: relative;
  min-width: 700px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  opacity: 0.7;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 44px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.status-select {
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background-color: white;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.table-responsive {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1);
}

.appointments-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.appointments-table thead {
  background-color: var(--vibrant-blue);
  color: white;
}

.appointments-table th {
  padding: 15px;
  text-align: left;
  color: white;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  position: relative;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease;
}

.appointments-table th:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sort-icon {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
}

.appointments-table td {
  padding: 18px 15px;
  border-bottom: 1px solid var(--background-dark);
  vertical-align: middle;
  transition: background-color 0.2s ease;
  background-color: white;
}

.appointments-table tr:nth-child(even) td {
  background-color: var(--background-light);
}

.appointments-table tr:hover td {
  background-color: rgba(99, 102, 241, 0.05);
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.status-booked {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--status-booked);
}

.status-badge.status-confirmed {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--status-confirmed);
}

.status-badge.status-completed {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--status-completed);
}

.btn-sophisticated {
  display: flex;
  align-items: center;
  padding: 1px 5px;
  border: none;
  border-radius: 10px;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #132ec5;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(34, 211, 238, 0.2);
}

.btn-sophisticated:hover {
  background-color: #38bdf8;
  transform: translateY(-3px);
  box-shadow: 0 15px 20px -5px rgba(34, 211, 238, 0.3);
}

.no-results {
  text-align: center;
  padding: 2.5rem;
  color: var(--primary-color);
  font-size: 1.1rem;
  background-color: white;
  border-radius: 12px;
  border: 2px dashed var(--primary-color);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pagination-btn {
  padding: 10px 18px;
  border: 2px solid var(--primary-color);
  background-color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
}

.pagination-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: white;
  color: var(--primary-color);
}

.pagination-info {
  color: var(--primary-color);
  font-weight: 600;
}

/* Header base styles */
.app-header {
  height: var(--header-height);
  background-color: var(--header-bg);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999;
  font-family: var(--font-family, 'Rubik', sans-serif) !important;
  transition: left 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--header-border);
}

/* Maintain sidebar responsiveness */
.pickdrop-app-container.sidebar-open .app-header {
  left: var(--sidebar-width);
}

.pickdrop-app-container.sidebar-collapsed .app-header {
  left: var(--sidebar-collapsed-width);
}

.app-header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

/* Left section */
.app-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.app-sidebar-toggle:hover {
  background-color: var(--header-item-hover);
  color: var(--primary-color);
  transform: scale(1.05);
}

.app-sidebar-toggle:active {
  transform: scale(0.95);
}

/* Right section */
.app-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-action-item {
  position: relative;
}

.action-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-color);
  font-size: 1.125rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.action-button:hover {
  background-color: var(--header-item-hover);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.action-button:active {
  transform: translateY(0);
}

.action-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  background-color: var(--danger);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--header-bg);
}

/* Dropdown panels */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: -0.5rem;
  width: 320px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s ease-out;
  border: 1px solid var(--border-color);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--header-bg);
}

.panel-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.panel-action {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.panel-action:hover {
  text-decoration: underline;
}

.panel-body {
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
}

/* Notification styles */
.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.notification-item:hover {
  background-color: var(--header-item-hover);
}

.notification-item.unread {
  background-color: rgba(26, 86, 219, 0.04);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.notification-icon-inner {
  font-size: 18px;
  color: white;
}

/* Module-specific background colors */
.icon-service {
  background-color: #007bff; /* Blue for Service Reminder */
}

.icon-message {
  background-color: #28a745; /* Green for Message */
}

.icon-tracking {
  background-color: #ffc107; /* Amber for Vehicle Tracking */
}

.icon-alert {
  background-color: #dc3545; /* Red for default alerts */
}

.notification-content {
  flex: 1;
}

.notification-text {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-color);
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Message styles */
.message-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.message-item:hover {
  background-color: var(--header-item-hover);
}

.message-item.unread {
  background-color: rgba(26, 86, 219, 0.04);
}

.message-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  margin-right: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
}

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

.message-content {
  flex: 1;
  min-width: 0;
  /* For text truncation */
}

.message-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.sender-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.message-preview {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

.panel-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  background-color: var(--gray-light);
}

.view-all {
  display: block;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.view-all:hover {
  /* color: var(--primary-hover); */
  text-decoration: underline;
}

/* Profile section */
.app-header-profile {
  position: relative;
}

.profile-button {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.profile-button:hover {
  background-color: var(--header-item-hover);
}

.profile-button.active {
  background-color: var(--header-item-active);
}

.profile-avatar {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--primary-light);
}

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

.profile-info {
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
}

.profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Profile dropdown */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 280px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s ease-out;
  border: 1px solid var(--border-color);
}

.dropdown-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--header-bg);
}

.dropdown-user-details {
  display: flex;
  align-items: center;
}

.dropdown-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-right: 1rem;
  border: 2px solid var(--primary-color);
}

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

.dropdown-user-info {
  flex: 1;
}

.dropdown-user-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.dropdown-user-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.user-status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  font-weight: 500;
}

.dropdown-body {
  padding: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--header-item-hover);
  color: var(--primary-color);
}

.dropdown-item-icon {
  width: 1rem;
  margin-right: 0.75rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.dropdown-item:hover .dropdown-item-icon {
  color: var(--primary-color);
}

.dropdown-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--gray-light);
}

.logout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.625rem;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.logout-button:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}

.logout-button i {
  margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .app-header-container {
    padding: 0 1rem;
  }

  .dropdown-panel {
    width: 280px;
  }
}

.pd-list-add-btn:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* VehicleList.css */
.vehicle-list-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 28px;
  width: 100%;
  overflow: hidden;
}

.vehicle-list-header {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 28px;
}

.vehicle-list-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  position: relative;
}

.vehicle-list-header h1:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background-color: #3b82f6;
  border-radius: 2px;
}

.search-container {
  position: relative;
  width: 320px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 42px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.925rem;
  background-color: #f8fafc;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.vehicle-table-container {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vehicle-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
  /* Prevents table from breaking on small screens */
}

.vehicle-table th,
.vehicle-table td {
  padding: 14px 16px;
  text-align: left;
}

.vehicle-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.vehicle-table th {
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  padding-top: 16px;
  padding-bottom: 16px;
  display: revert;
}

.vehicle-table th:first-child {
  border-top-left-radius: 10px;
}

.vehicle-table th:last-child {
  border-top-right-radius: 10px;
}

.vehicle-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.vehicle-table tbody tr:last-child {
  border-bottom: none;
}

.vehicle-table tbody tr:hover {
  background-color: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sortable-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.sortable-header:hover {
  color: #3b82f6;
}

.sort-icon {
  transition: all 0.2s ease;
}

.sortable-header:hover .sort-icon {
  opacity: 1;
  color: #3b82f6;
}

.vehicle-photo {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.vehicle-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.fuel-type {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fuel-type-petrol {
  background-color: #fef3c7;
  color: #92400e;
}

.fuel-type-diesel {
  background-color: #e0e7ff;
  color: #3730a3;
}

.fuel-type-electric {
  background-color: #d1fae5;
  color: #065f46;
}

.fuel-type-hybrid {
  background-color: #dbeafe;
  color: #1e40af;
}

.fuel-type-cng {
  background-color: #ccfbf1;
  color: #0f766e;
}

.fuel-type-lpg {
  background-color: #fde68a;
  color: #b45309;
}

.fuel-type-hydrogen {
  background-color: #e0f2fe;
  color: #0369a1;
}


.action-buttons {
  display: flex;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn {
  color: #1d4ed8;
}

.view-btn:hover {
  background-color: rgba(29, 78, 216, 0.1);
  transform: translateY(-2px);
}

.edit-btn {
  color: #047857;
}

.edit-btn:hover {
  background-color: rgba(4, 120, 87, 0.1);
  transform: translateY(-2px);
}

.add-vehicle-btn {
  color: #f59e0b; /* Tailwind's amber-500 */
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.add-vehicle-btn:hover {
  background-color: rgba(251, 191, 36, 0.1); /* subtle amber bg */
  transform: translateY(-2px);
}


.add-appointment-btn {
  color: #8b5cf6; /* Tailwind's violet-500 */
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.add-appointment-btn:hover {
  background-color: rgba(139, 92, 246, 0.1); /* subtle violet bg */
  transform: translateY(-2px);
}

.make-call-btn {
  color: #0d6efd; /* Tailwind's violet-500 */
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.make-call-btn:hover {
  background-color: rgba(139, 92, 246, 0.1); /* subtle violet bg */
  transform: translateY(-2px);
}

.reschedule-appointment-btn,
.cancel-appointment-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  padding: 0.25rem;
}

/* Violet for reschedule */
.reschedule-appointment-btn {
  color: #8b5cf6;
}

.reschedule-appointment-btn:hover {
  background-color: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

/* Red for cancel */
.cancel-appointment-btn {
  color: #ef4444; /* Tailwind's red-500 */
}

.cancel-appointment-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
  transform: translateY(-2px);
}


.delete-btn {
  color: #dc2626;
}

.delete-btn:hover {
  background-color: rgba(220, 38, 38, 0.1);
  transform: translateY(-2px);
}

.no-results {
  text-align: center;
  padding: 32px;
  color: #64748b;
  font-style: italic;
  font-size: 1rem;
}

/* Pagination styles */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 20px;
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 12px 20px;
}

.items-per-page {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 0.925rem;
}

.items-per-page select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 0.925rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.items-per-page select:hover {
  border-color: #cbd5e1;
}

.items-per-page select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.pagination-btn,
.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background-color: #ffffff;
  color: #475569;
  font-size: 0.925rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled),
.pagination-number:hover:not(.active) {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.pagination-number.active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

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

.pagination-info {
  color: #475569;
  font-size: 0.925rem;
}

@media (max-width: 768px) {
  .vehicle-list-container {
    padding: 20px 16px;
  }

  .vehicle-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
  }

  .search-container {
    width: 100%;
  }

  .pagination-container {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }

  .pagination {
    order: 2;
  }

  .pagination-info {
    order: 3;
    text-align: center;
    width: 100%;
  }

  .items-per-page {
    order: 1;
    width: 100%;
    justify-content: center;
  }
}


.pagetitleBar {
  padding: 1rem;
  background: #e3e9f5;
  min-height: 58px;
  padding: 5px 25px 5px 25px;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.align-items-center {
  align-items: center !important;
}

.d-flex {
  display: flex !important;
}

.pagetitleBar h5 {
  color: var(--form-text-dark);
  font-weight: 600;
  background: linear-gradient(90deg, var(--form-primary-color), var(--form-secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ms-auto {
  margin-left: auto !important;
}

.pagetitleBar .breadcrumb {
  padding: 0;
  display: inline-flex;
  margin-bottom: 2px;
  background: transparent;
  font-size: 13px;
  margin-right: 10px;
}

.align-middle {
  vertical-align: middle !important;
}

.btn-group-xs>.btn,
.btn-xs {
  --bs-btn-padding-y: 0.10rem;
  --bs-btn-padding-x: 0.425rem;
  --bs-btn-font-size: 0.725rem;
  --bs-btn-border-radius: 0.15rem;
}

button.btn.btn-xs.btn-secondary {
  padding: 0px 5px 0px 5px !important;
  background-color: var(--accent-color);
}

.breadcrumb-item a {
  text-decoration: none !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  /* padding: 20px; */
  border-radius: 8px;
  max-width: 100%;
  max-height: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
}

/* Offers Management Component Specific Styles */
.offers-table-container {
  margin: 0 auto;
  padding: 2.5rem;
  background-color: white;
  font-family: var(--font-family) !important;
  background-color: var(--background-light);
  border-radius: 16px;
  transition: all 0.3s ease;
}


/* Header styles */
.offers-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.offers-header h1 {
  margin: 0 0 1.5rem 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.025em;
  position: relative;
  display: inline-block;
}

.offers-header h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Search and filter container */
.offers-search-filter-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.offers-left-section {
  flex-grow: 1;
  margin-right: 16px;
}

.offers-right-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search input styles */
.offers-search-wrapper {
  position: relative;
  min-width: 300px;
}

.offers-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  opacity: 0.7;
}

.offers-search-input {
  width: 100%;
  padding: 14px 14px 14px 48px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.offers-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Filter select styles */
.offers-filter-wrapper {
  position: relative;
}

.offers-filter-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  opacity: 0.7;
  pointer-events: none;
}

.offers-filter-select {
  padding: 14px 38px 14px 14px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background-color: white;
  font-size: 0.95rem;
  color: var(--primary-color);
  appearance: none;
  cursor: pointer;
  font-weight: 500;
  min-width: 150px;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.offers-filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Table container styles */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1);
  background: white;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

/* Table styles */
.offers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.offers-table thead {
  background: var(--vibrant-blue);
  color: white;
}

.offers-table th {
  padding: 16px;
  text-align: left;
  color: white;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  position: relative;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease;
}

.offers-table th:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sortable-column {
  cursor: pointer;
}

.offers-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--background-dark);
  vertical-align: middle;
  transition: background-color 0.2s ease;
  background-color: white;
}

.offers-table tr:nth-child(even) td {
  background-color: var(--background-light);
}

.offers-table tr:hover td {
  background-color: rgba(99, 102, 241, 0.05);
}

.offers-item-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.offers-table tr:hover .offers-item-image {
  transform: scale(1.05);
}

/* Type badge styles */
.offers-item-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.offers-item-badge-offer {
  background-color: rgba(59, 130, 246, 0.1);
  /* Light blue */
  color: #1e40af;
  /* Darker blue for contrast */
}

.offers-item-badge-announcement {
  background-color: rgba(245, 158, 11, 0.1);
  /* Light orange */
  color: #b45309;
  /* Darker orange for readability */
}

.offers-item-badge-maintanence {
  background-color: rgba(220, 38, 38, 0.1);
  /* Light red */
  color: #991b1b;
  /* Darker red for contrast */
}

/* Hover effects */
.offers-table tr:hover .offers-item-badge-offer {
  background-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.offers-table tr:hover .offers-item-badge-announcement {
  background-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.offers-table tr:hover .offers-item-badge-maintanence {
  background-color: rgba(220, 38, 38, 0.2);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}


.offers-item-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Action buttons */
.offers-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.offers-edit-button,
.offers-delete-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.offers-edit-button {
  color: var(--primary-color);
}

.offers-edit-button:hover {
  background-color: rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
  opacity: 1;
}

.offers-delete-button {
  color: var(--danger-color);
}

.offers-delete-button:hover {
  background-color: rgba(239, 68, 68, 0.15);
  transform: translateY(-2px);
  opacity: 1;
}

/* Empty state */
.offers-empty-message {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-style: italic;
  background-color: rgba(99, 102, 241, 0.02);
}

/* Loading state */
.offers-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Pagination styles */
.offers-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.offers-pagination-info {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.offers-pagination-info-number {
  font-weight: 600;
  color: var(--primary-color);
}

.offers-pagination-controls {
  display: flex;
  gap: 6px;
}

.offers-pagination-button {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offers-pagination-button-default {
  background-color: white;
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.offers-pagination-button-default:hover {
  background-color: var(--background-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.offers-pagination-button-active {
  background-color: var(--vibrant-blue);
  color: white;
  box-shadow: 0 2px 5px rgba(99, 102, 241, 0.3);
}

/**Add Offer **/
/* Base Styles */
.ao-container {
  /* padding: 2rem; */
  /* max-width: 1200px; */
  margin: 0 auto;
  font-family: var(--font-primary) !important;
  color: var(--text-color);
}

/* Header Section */
.ao-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.ao-back-link {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.ao-back-link:hover {
  background-color: var(--gray-light);
  color: var(--primary-color);
}

.ao-back-icon {
  margin-right: 0.5rem;
}

.ao-breadcrumbs {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ao-breadcrumb-item {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.ao-breadcrumb-item:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.ao-breadcrumb-separator {
  margin: 0 0.5rem;
}

.ao-breadcrumb-active {
  color: var(--text-color);
  font-weight: 500;
}

/* Page Title */
.ao-page-title {
  margin-bottom: 2rem;
}

.ao-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.ao-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 36rem;
}

/* Form Card */
.ao-form-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  overflow: hidden;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

/* Form Layout */
.ao-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ao-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ao-form-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.ao-left-column,
.ao-right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Section Titles */
.ao-section-title {
  margin-bottom: 0.75rem;
}

.ao-section-title h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.ao-section-divider {
  height: 2px;
  background-color: var(--primary-light);
  border-radius: 1px;
}

/* Form Controls */
.ao-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* margin-bottom: 1.25rem; */
}

.ao-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
}

.ao-required {
  color: var(--danger);
  margin-left: 0.25rem;
}

.ao-input-container {
  position: relative;
}

.ao-input,
.ao-select,
.ao-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-color);
  background-color: var(--white);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.ao-input:focus,
.ao-select:focus,
.ao-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.ao-input::placeholder,
.ao-textarea::placeholder {
  color: var(--text-muted);
}

.ao-textarea {
  resize: vertical;
  min-height: 120px;
}

.ao-input-error {
  border-color: var(--danger);
}

.ao-input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.ao-error-message {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin-top: 0.375rem;
}

.ao-error-icon {
  color: var(--danger);
  min-width: 1rem;
  margin-top: 0.125rem;
}

.ao-error-text {
  font-size: 0.75rem;
  color: var(--danger);
  margin: 0;
}

.ao-input-help,
.ao-image-help,
.ao-date-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Select Styling */
.ao-select-wrapper {
  position: relative;
}

.ao-select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 0.4rem solid transparent;
  border-right: 0.4rem solid transparent;
  border-top: 0.4rem solid var(--text-muted);
  pointer-events: none;
}

.ao-select {
  appearance: none;
  padding-right: 2.5rem;
}

/* Textarea Counter */
.ao-textarea-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* Date Fields */
.ao-date-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ao-date-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ao-date-field {
  position: relative;
}

.ao-input-icon-wrapper {
  position: relative;
}

.ao-input-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.ao-sublabel {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.required {
  color: red;
  text-transform: capitalize;
}

/* File Upload */
.ao-upload-container {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
  background-color: var(--gray-light);
}

.ao-upload-has-image {
  border-style: solid;
  border-color: var(--primary-color);
}

.ao-upload-container:hover:not(.ao-upload-has-image) {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.ao-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

.ao-upload-icon-container {
  background-color: var(--primary-light);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ao-upload-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-color);
}

.ao-upload-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.ao-upload-text {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* .ao-upload-text:hover {
  color: var(--primary-hover);
  text-decoration: underline;
} */

.ao-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.ao-upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

.ao-preview-container {
  position: relative;
  background-color: var(--white);
}

.ao-image-preview {
  width: 100%;
  height: 12rem;
  object-fit: contain;
  padding: 0.5rem;
}

.ao-remove-image-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: var(--white);
  border-radius: 9999px;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.ao-remove-image-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
  transform: scale(1.05);
}

/* Form Actions */
.ao-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  /* margin-top: 1rem; */
}

.ao-cancel-btn {
  padding: 0.625rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  background-color: var(--white);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ao-cancel-btn:hover {
  background-color: var(--gray-light);
  color: var(--text-color);
}

.ao-submit-btn {
  padding: 0.625rem 1.5rem;
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* .ao-submit-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
} */

/* .ao-submitting {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
} */

.ao-btn-icon {
  margin-right: 0.5rem;
}

/* Loading Spinner */
.ao-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .ao-container {
    padding: 1rem;
  }

  .ao-form-card {
    padding: 1.5rem;
  }

  .ao-title {
    font-size: 1.5rem;
  }

  .ao-form-actions {
    flex-direction: column-reverse;
  }

  .ao-cancel-btn,
  .ao-submit-btn {
    width: 100%;
  }
}

/** End Add offer css**/

span.font-weight-bold.d-flex.align-items-center {
  display: inline-flex !important;
}

.date-input-wrapper {
  position: relative;
}

.date-input-wrapper input[type="date"] {
  padding-right: 2.5rem; /* Leave room for icon */
  width: 100%;
  cursor: pointer;
}

.date-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
}

.date-input-wrapper .calendar-icon {
  position: absolute;
  top: 50%;
  right: 0.05rem;
  transform: translateY(-50%);
  font-family: var(--font-family);
  background: var(--primary-color);
  color: #fff;
  font-size: 1.2rem;
  padding: 5px 10px 5px 10px;
  border-radius: 4px;
  pointer-events: none;
}

/* Hide .calendar-icon in Safari */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    .date-input-wrapper .calendar-icon {
      display: none;
    }
  }
}

/* Hide .calendar-icon in Firefox */
@-moz-document url-prefix() {
  .date-input-wrapper .calendar-icon {
    display: none;
  }
}


/* / Date Picker /
/ Add these styles to your CSS file / */
.date-range-picker-container {
  position: relative;
}

.date-picker-dropdown {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.date-range-presets {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.date-range-presets .btn-link {
  color: #3a86ff;
  padding: 4px 8px;
  font-size: 0.85rem;
}

.date-range-presets .btn-link:hover {
  background-color: #f0f7ff;
  text-decoration: none;
  border-radius: 4px;
}

/* / Make the calendar responsive / */
@media (max-width: 576px) {
  .date-picker-dropdown {
    width: 280px !important;
    right: -50px !important;
  }

  .rdrMonth {
    width: 100% !important;
  }

  .rdrCalendarWrapper {
    width: 100% !important;
  }
}

/* / Modal Popup for Assign Driver / */
.modal-dialog.modal-lg.modal-dialog-centered {
  justify-content: center !important;
}

.modal-dialog.modal-md.modal-dialog-centered {
  justify-content: center !important;
}

/* / Date Picker /
/ Add these styles to your CSS file / */
.date-range-picker-container {
  position: relative;
}

.date-range-picker-container .btn {
  white-space: nowrap;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-range-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.date-picker-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1050 !important;
  /* / Ensure it's above other elements / */
  width: 320px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

/* / Fix for calendar display issues / */
.date-range-calendar-container .rdrMonth {
  width: 100% !important;
}

.date-range-calendar-container .rdrCalendarWrapper {
  width: 100% !important;
  max-width: 100%;
}

/* / Responsive adjustments / */
@media (max-width: 576px) {
  .date-picker-dropdown {
    width: 280px;
    right: -70px;
    /*  / Adjust this if the dropdown goes off-screen / */
  }

  .date-range-text {
    max-width: 100px;
  }
}

button.d-flex.align-items-center.py-2.px-3.border.rounded.btn.btn-outline-secondary {
  background-color: var(--vibrant-blue);
  color: white;
  border-radius: 15px !important;
}

button.d-flex.align-items-center.py-2.px-3.border.rounded.btn.btn-outline-secondary:hover {
  box-shadow: #03A9F4 0px 0px 0px 0.25rem;
}

/** Messages **/
/* Main Layout Containers */
.msg-main-container {
  display: flex;
  height: 90vh;
  overflow: hidden;
  background-color: var(--white);
  font-family: var(--font-family) !important;
  color: var(--text-color);
}

/* Left Sidebar Styles */
.msg-sidebar {
  width: 320px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  z-index: 10;
}

.msg-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.msg-sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.msg-new-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.msg-new-button:hover {
  background-color: var(--secondary-color);
}

/* Tabs */
.msg-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.msg-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.msg-tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.msg-badge {
  position: absolute;
  top: 6px;
  right: 35px;
  background-color: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search */
.msg-search-container {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.msg-search-input-wrapper {
  position: relative;
  width: 100%;
}

.msg-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.msg-search-input {
  width: 100%;
  padding: 10px 10px 10px 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.msg-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Conversation List */
.msg-conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.msg-conversation-item {
  display: flex;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin: 0 8px 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.msg-conversation-item:hover {
  background-color: var(--primary-light);
}

.msg-conversation-item.selected {
  background-color: var(--primary-light);
}

.msg-conversation-item.unread .msg-sender-name {
  font-weight: 600;
}

.msg-conversation-item.unread .msg-preview {
  font-weight: 500;
  color: var(--text-color);
}

.msg-avatar-container {
  position: relative;
  margin-right: 12px;
}

.msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.msg-status-dot {
  position: absolute;
  top: 0px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  /* border: 2px solid white; */
}

.msg-status-dot.online {
  background-color: #77c71f; /* green */
}

.msg-status-dot.offline {
  background-color: #9e9e9e; /* gray */
}

.msg-conversation-content {
  flex: 1;
  min-width: 0;
}

.msg-conversation-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.msg-sender-name {
  font-size: 0.95rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.msg-preview {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

/* Empty State */
.msg-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
}

.msg-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.msg-start-conversation-btn {
  margin-top: 16px;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
}

.msg-start-conversation-btn:hover {
  background-color: var(--secondary-color);
}

/* Chat Container */
.msg-chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--gray-light);
}

.msg-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.msg-chat-participant {
  display: flex;
  align-items: center;
}

.msg-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.msg-chat-participant-info {
  display: flex;
  flex-direction: column;
}

.msg-chat-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.msg-chat-type {
  font-size: 0.8rem;
  color: var(--text-light);
}

.msg-chat-actions {
  display: flex;
  gap: 8px;
}

.msg-action-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.msg-action-button:hover {
  background-color: var(--gray-light);
}

/* Chat Messages */
.msg-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.msg-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: var(--border-radius-lg);
  position: relative;
}

.msg-incoming {
  align-self: flex-start;
  background-color: var(--white);
  border-bottom-left-radius: 4px;
}

.msg-outgoing {
  align-self: flex-end;
  background-color: var(--primary-color);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.msg-text {
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
  max-width:500px;
  word-wrap:break-word;
  text-transform:none;
}

.msg-time {
  font-size: 0.7rem;
  margin-top: 4px;
  text-align: right;
  opacity: 0.8;
}

/* Voice Messages */
.msg-voice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}

.msg-voice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.msg-outgoing .msg-voice-icon {
  background-color: rgba(255, 255, 255, 0.2);
}

.msg-voice-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-voice-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 25px;
}

.msg-voice-bar {
  width: 3px;
  background-color: var(--text-muted);
  border-radius: 1px;
}

.msg-outgoing .msg-voice-bar {
  background-color: rgba(255, 255, 255, 0.7);
}

.msg-voice-duration {
  font-size: 0.75rem;
}

/* Input Form */
.msg-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
}

.msg-attachment-button,
.msg-voice-button,
.msg-send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.msg-attachment-button:hover,
.msg-voice-button:hover {
  background-color: var(--gray-light);
}

.msg-send-button {
  background-color: var(--primary-color);
  color: var(--white);
}

.msg-send-button:hover {
  background-color: var(--secondary-color);
}

.msg-send-button:disabled {
  background-color: var(--gray-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

.message {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.message:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Empty Chat */
.msg-empty-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.msg-empty-chat-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.msg-empty-chat-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-color);
}

.msg-empty-chat-text {
  margin: 0 0 20px;
}

/* Modal Styles */
.msg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.msg-modal {
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.msg-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--vibrant-blue);
  color: var(--white);
}

.msg-modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.msg-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.msg-modal-close:hover {
  background-color: var(--gray-light);
  color: var(--text-color);
}

.msg-modal-tabs-container {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
}

.msg-modal-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.msg-modal-tab {
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.msg-modal-tab.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.msg-modal-search {
  position: relative;
}

.msg-modal-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.msg-modal-search-input {
  width: 100%;
  padding: 10px 10px 10px 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.msg-modal-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.msg-modal-contacts {
  padding: 8px 0;
  overflow-y: auto;
  max-height: 50vh;
}

.msg-modal-contact {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.msg-modal-contact:hover {
  background-color: var(--primary-light);
}

.msg-modal-contact-avatar {
  margin-right: 12px;
}

.msg-modal-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.msg-modal-contact-info {
  flex: 1;
}

.msg-modal-contact-name {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 4px;
}

.msg-modal-contact-email {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  text-transform: none;
}

.msg-modal-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}

/* Chat Search Styles */
.msg-chat-search {
  padding: 8px 16px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.msg-chat-search-input-wrapper {
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 6px 12px;
  position: relative;
}

.msg-chat-search-icon {
  color: #5f6368;
  margin-right: 8px;
}

.msg-chat-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 4px 0;
}

.msg-chat-search-counter {
  font-size: 12px;
  color: #5f6368;
  margin: 0 8px;
  white-space: nowrap;
}

.msg-chat-search-navigation {
  display: flex;
  border-left: 1px solid #dfe1e5;
  margin-left: 4px;
  padding-left: 8px;
}

.msg-chat-search-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  color: #5f6368;
  font-size: 14px;
}

.msg-chat-search-nav-btn:disabled {
  color: #c1c1c1;
  cursor: not-allowed;
}

.msg-chat-search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search result highlighting */
.msg-search-highlight {
  background-color: #ffeb3b;
  font-weight: 500;
  padding: 0 2px;
  border-radius: 2px;
}

.msg-search-result {
  position: relative;
}

.msg-current-search-result {
  border: 2px solid #4285f4;
}

.msg-action-button.active {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Vehicle List */
.vehicle-table thead {
  background-color: var(--vibrant-blue);
  color: white;
}

.vehicle-table th:hover {
  background-color: rgba(245, 241, 241, 0.1) !important;
  color: white;
}

span.driver-search-icon.input-group-text {
  background: var(--vibrant-blue);
  color: white;
}

/* VehicleView */
.vehicle-view-container {
  background-color: #f8f9fa;
  min-height: 100vh;
}

.page-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-title {
  font-weight: 600;
  color: #212529;
}

.breadcrumb-item a {
  color: #6c757d;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #007bff;
}

.breadcrumb-item.active {
  color: #343a40;
  font-weight: 500;
}

/* Vehicle Card Styles */
.vehicle-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.vehicle-cover-wrapper {
  height: 100%;
  padding: 20px;
  background-color: #f8f9fa;
}

.vehicle-cover {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-cover img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Prevents stretching while maintaining aspect ratio */
  transition: transform 0.3s ease;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vehicle-cover:hover .hover-overlay {
  opacity: 1;
}

.vehicle-cover:hover img {
  transform: scale(1.05);
}

.overlay-content {
  color: white;
  font-size: 24px;
}

.zoom-icon {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.vehicle-thumbnails {
  padding: 10px 0;
}

.thumbnail-item {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.thumbnail-item:hover {
  transform: scale(1.05);
}

.thumbnail-item img {
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #fff;
  width: 70px;
  height: 70px;
}

.thumbnail-more {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  color: #6c757d;
  font-weight: 600;
}

/* Vehicle Header Details */
.vehicle-title {
  font-weight: 700;
  color: #212529;
}

.model-year {
  color: #6c757d;
  font-weight: 400;
}

.registration-label {
  font-weight: 500;
}

.registration-number {
  font-size: 0.95rem;
}

.status-badge,
.fuel-badge {
  font-weight: 500;
  border-radius: 6px;
}

.fuel-badge {
  letter-spacing: 0.5px;
}

/* Stats Cards */
.vehicle-stats {
  margin-bottom: 20px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.stat-card:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
}

.stat-icon {
  margin-right: 12px;
  color: #495057;
  background-color: rgba(0, 123, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-icon {
  background-color: rgba(253, 126, 20, 0.1);
  color: #fd7e14;
}

.clock-icon {
  background-color: rgba(32, 201, 151, 0.1);
  color: #20c997;
}

.stat-label {
  color: #6c757d;
  margin-bottom: 2px;
}

.stat-value {
  font-weight: 600;
  color: #212529;
}

/* Highlights Section */
.vehicle-highlights {
  margin-bottom: 20px;
}

.highlight-item {
  padding: 8px 0;
}

.highlight-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.highlight-value {
  font-weight: 600;
  color: #212529;
}

/* Customer Details Section */
.customer-details {
  margin-top: 20px;
}

.customer-avatar {
  cursor: pointer;
  position: relative;
}

.customer-avatar img {
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.customer-avatar:hover img {
  transform: scale(1.05);
}

.customer-label {
  color: #6c757d;
}

.customer-name {
  font-weight: 600;
  color: #212529 !important;
}

/* Custom Tabs */
.custom-tabs .nav-item .nav-link {
  padding: 15px 20px;
  color: #6c757d;
  border: none;
  background-color: transparent;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.custom-tabs .nav-item .nav-link:hover {
  color: #495057;
  border-bottom-color: #dee2e6;
}

.custom-tabs .nav-item .nav-link.active {
  color: #007bff;
  background-color: transparent;
  border-bottom-color: #007bff;
  font-weight: 600;
}

/* Info Cards */
.info-card {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  height: 100%;
  transition: all 0.2s ease;
}

.info-card:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
}

.info-icon {
  margin-right: 12px;
  color: #007bff;
  /* background-color: rgba(0, 123, 255, 0.1); */
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745 !important;
}

.email-icon {
  background-color: rgb(179 210 235);
  color: #ffc107;
}

.location-icon {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545 !important;
}

.info-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.info-value {
  font-weight: 500;
  color: #212529;
  word-break: break-word;
}

/* Spec Cards */
.spec-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  height: 100%;
  transition: all 0.2s ease;
}

.spec-card:hover {
  border-color: #ced4da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.spec-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 6px;
}

.spec-value {
  font-weight: 600;
  color: #212529;
}

/* Timeline Section */
.maintenance-timeline {
  padding: 20px 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 30px;
}

.timeline-marker {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-date {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 8px 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.date-month {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
}

.date-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.2;
}

.date-year {
  font-size: 0.8rem;
  color: #6c757d;
}

.timeline-line {
  position: absolute;
  top: 80px;
  bottom: -30px;
  width: 2px;
  background-color: #dee2e6;
  z-index: 1;
}

.timeline-content {
  flex: 1;
}

.timeline-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #eee;
}

.timeline-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
  padding: 15px 20px;
}

.timeline-card .card-body {
  padding: 20px;
}

.description {
  color: #495057;
  margin-bottom: 15px;
}

.meta-item {
  margin-top: 10px;
}

.meta-label {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 2px;
}

.meta-value {
  font-weight: 500;
  color: #212529;
}

.meta-value.cost {
  font-weight: 700;
  color: #28a745;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  margin-bottom: 20px;
  opacity: 0.4;
}

.loading-container {
  padding: 50px 0;
}

.loading-text {
  margin-top: 15px;
  color: #6c757d;
}

/* Modal Styling */
.modal-content.bg-transparent {
  background-color: transparent;
}

.modal-content.bg-transparent .btn-light {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-content.bg-transparent .btn-light:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

/* Error Container */
.error-container {
  text-align: center;
  padding: 40px;
}

.error-icon {
  opacity: 0.4;
  margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .vehicle-cover {
    height: 250px;
  }

  .vehicle-header-details {
    padding-top: 0;
  }

  .timeline-marker {
    width: 90px;
  }
}

@media (max-width: 767.98px) {
  .customer-details .d-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-buttons {
    margin-top: 15px;
    margin-left: 0 !important;
  }

  .timeline-marker {
    width: 70px;
  }

  .timeline-date {
    padding: 6px 10px;
  }

  .date-day {
    font-size: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .vehicle-thumbnails {
    justify-content: center;
  }

  .vehicle-stats .stat-card {
    margin-bottom: 10px;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-marker {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 15px;
  }

  .timeline-date {
    width: 100px;
  }

  .timeline-line {
    display: none;
  }
}

/* Animation Effects */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.vehicle-card,
.timeline-card,
.info-card,
.spec-card {
  animation: fadeIn 0.5s ease;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
  animation-delay: 0.5s;
}

.card.vehicle-card.border-0.shadow {
  background-color: white;
}

/* Dashboard Styles */
.dashboard-container {
  font-family: var(--font-family) !important;
  color: var(--text-color);
  background-color: var(--gray-light);
  padding: 1.5rem;
  min-height: 100vh;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.dashboard-header-title h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--secondary-color);
}

.dashboard-header-title p {
  color: var(--text-light);
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
}

.dashboard-date-picker-container {
  position: relative;
}

.dashboard-date-picker-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--vibrant-blue);
  transition: var(--transition-normal);
  color: var(--white);
}

.dashboard-date-picker-dropdown {
  top: 25%;
  width: 900px !important;
  right: 40px !important;
}

.dashboard-date-picker-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem;
  gap: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.dashboard-btn-apply,
.dashboard-btn-cancel {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.dashboard-btn-apply {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
}

.dashboard-btn-cancel {
  background-color: var(--white);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

/* Dashboard Grid Layout */
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.dashboard-col-md-3 {
  flex: 1;
  min-width: calc(25% - 1.5rem);
}

.dashboard-col-md-6 {
  flex: 1;
  min-width: calc(50% - 1.5rem);
}

.dashboard-col-md-12 {
  flex: 1;
  width: 100%;
}

/* Card Styling */
.dashboard-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition-normal);
}

.dashboard-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dashboard-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.dashboard-card h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
}

/* Stat Cards */
.dashboard-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
  text-decoration: none;
}

.dashboard-stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dashboard-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--dashboard-stat-icon-appointments);
  color: var(--white);
}

.dashboard-stat-completed {
  background-color: var(--dashboard-stat-icon-services);
}

.dashboard-stat-customers {
  background-color: var(--dashboard-stat-icon-customers);
}

.dashboard-stat-drivers {
  background-color: var(--dashboard-stat-icon-drivers);
}

.dashboard-stat-details {
  flex: 1;
}

.dashboard-stat-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--secondary-color);
}

.dashboard-stat-details p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* Chart Container */
.dashboard-chart-container {
  height: 280px;
  margin-top: 0.5rem;
}

/* Drivers Section */
.dashboard-drivers-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.dashboard-drivers-status-container {
  flex: 1;
  min-width: 300px;
}

.dashboard-drivers-status {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2rem;
}

.dashboard-status-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dashboard-active-circle {
  background-color: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--success);
}

.dashboard-inactive-circle {
  background-color: rgba(239, 68, 68, 0.15);
  border: 2px solid var(--danger);
}

.dashboard-status-inner {
  text-align: center;
}

.dashboard-status-inner h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--secondary-color);
}

.dashboard-status-inner p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0.25rem 0 0 0;
}

.dashboard-drivers-meter {
  margin-top: 1.5rem;
}

.dashboard-meter-bar {
  height: 0.75rem;
  background-color: rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dashboard-meter-progress {
  height: 100%;
  background-color: var(--success);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.dashboard-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.75rem;
}

.dashboard-drivers-info {
  flex: 1;
  min-width: 300px;
}

.dashboard-drivers-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-drivers-stat-item {
  display: flex;
  flex-direction: column;
}

.dashboard-drivers-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.dashboard-drivers-stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.dashboard-drivers-availability {
  background-color: var(--primary-light);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
}

.dashboard-availability-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.dashboard-availability-indicator {
  display: flex;
  height: 0.5rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.dashboard-indicator-segment {
  height: 100%;
}

.dashboard-high {
  background-color: var(--success);
}

.dashboard-medium {
  background-color: var(--status-booked);
}

.dashboard-low {
  background-color: var(--danger);
}

.dashboard-availability-labels {
  display: flex;
  justify-content: space-between;
}

.dashboard-availability-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
}

.dashboard-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

/* Chart Enhancements */
/* Custom styling for recharts components */
.recharts-layer.recharts-pie {
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
}

.recharts-sector:hover {
  opacity: 0.9;
  transition: opacity 0.2s;
}

.recharts-default-tooltip {
  background-color: var(--white) !important;
  border: none !important;
  border-radius: var(--border-radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0.75rem !important;
}

.recharts-tooltip-label {
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
}

.recharts-tooltip-item {
  color: var(--text-color) !important;
  margin: 0.125rem 0 !important;
}

.recharts-cartesian-axis-tick-value {
  font-size: 0.75rem !important;
  fill: var(--text-light) !important;
}

.recharts-legend-item-text {
  color: var(--text-color) !important;
  font-size: 0.875rem !important;
}

.recharts-radial-bar-background-sector {
  fill: var(--gray-light) !important;
  opacity: 0.5 !important;
}

.recharts-radial-bar-background {
  opacity: 0.5 !important;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
  .dashboard-col-md-3 {
    min-width: calc(50% - 1.5rem);
  }

  .dashboard-col-md-6 {
    min-width: 100%;
  }

  .dashboard-drivers-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dashboard-date-picker-container {
    width: 100%;
  }

  .dashboard-date-picker-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-col-md-3 {
    min-width: 100%;
  }

  .dashboard-status-circle {
    width: 100px;
    height: 100px;
  }

  .dashboard-drivers-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .dashboard-container {
    padding: 1rem;
  }

  .dashboard-row {
    gap: 1rem;
  }

  .dashboard-status-circle {
    width: 80px;
    height: 80px;
  }

  .dashboard-status-inner h3 {
    font-size: 1.5rem;
  }
}

/* Animation Effects */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-stat-card,
.dashboard-card {
  animation: fadeIn 0.5s ease-out forwards;
}

.dashboard-stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.dashboard-stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.dashboard-stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.dashboard-stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Date Range Picker Styling */
.rdrCalendarWrapper {
  font-size: 14px !important;
  background-color: var(--white) !important;
  border-radius: var(--border-radius-md) !important;
}

.rdrMonth {
  padding: 0 0.75rem 0.75rem !important;
}

.rdrMonthAndYearWrapper {
  padding-top: 0.75rem !important;
  height: 40px !important;
}

.rdrDay {
  height: 2.5rem !important;
}

.rdrDayToday .rdrDayNumber span:after {
  background-color: var(--primary-color) !important;
}

.rdrDayStartOfMonth .rdrInRange,
.rdrDayStartOfMonth .rdrEndEdge,
.rdrDayStartOfWeek .rdrInRange,
.rdrDayStartOfWeek .rdrEndEdge {
  border-top-left-radius: var(--radius-md) !important;
  border-bottom-left-radius: var(--radius-md) !important;
}

.rdrDayEndOfMonth .rdrInRange,
.rdrDayEndOfMonth .rdrStartEdge,
.rdrDayEndOfWeek .rdrInRange,
.rdrDayEndOfWeek .rdrStartEdge {
  border-top-right-radius: var(--radius-md) !important;
  border-bottom-right-radius: var(--radius-md) !important;
}

.rdrStartEdge,
.rdrEndEdge,
.rdrInRange {
  color: var(--primary-light) !important;
}

.rdrDayStartPreview,
.rdrDayEndPreview,
.rdrDayInPreview {
  border-color: var(--primary-color) !important;
  color: var(--primary-light) !important;
}

.rdrDefinedRangesWrapper {
  border-right: 1px solid var(--border-color) !important;
  background-color: var(--gray-light) !important;
}

.rdrStaticRangeSelected {
  background-color: var(--primary-light) !important;
  color: var(--primary-color) !important;
}

.rdrInputRangeInput {
  border: 1px solid var(--border-color) !important;
  color: var(--text-color) !important;
  padding: 0.375rem !important;
  border-radius: var(--radius-sm) !important;
}

/* Custom styling for the profile */

/* Profile card styling */
.profile-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s;
}

.profile-card:hover {
  transform: translateY(-5px);
}

/* Profile header with gradient */
.profile-header {
  background-image: linear-gradient(135deg, #667eea 0%, #5759e4 100%);
  padding-top: 4rem;
  padding-bottom: 1.5rem;
  position: relative;
}


/* Profile name styling */
.profile-name {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Profile label styling */
.profile-label {
  background-color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Info tiles styling */
.info-tile {
  background-color: white;
  border: 1px solid #eaeaea;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.info-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: #ced4da;
}

/* Icon container styling */
.info-icon-container {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
}

/* Soft background colors for icons */
.bg-primary-soft {
  background-color: rgba(13, 110, 253, 0.1);
}

.bg-success-soft {
  background-color: rgba(25, 135, 84, 0.1);
}

.bg-info-soft {
  background-color: rgba(13, 202, 240, 0.1);
}

.bg-warning-soft {
  background-color: rgba(255, 193, 7, 0.1);
}

.bg-danger-soft {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Label and value styling */
.info-label {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.info-value {
  font-weight: 500;
  color: #212529;
}

/* Card footer styling */
.card-footer {
  border-top: 1px solid #eaeaea;
}

button.offers-delete-button {
  color: red;
}

/** View Offer **/
/* Base styles and animations */
/* :root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #f9fafb;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-color: rgba(229, 231, 235, 1);
  --border-radius: 16px;
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
} */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

.single-offer-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1.5rem;
  font-family: 'Rubik', sans-serif !important;
  opacity: 0;
  transform: translateY(20px);
}

.single-offer-container.animate-in {
  animation: fadeSlideUp 0.7s forwards;
}

.single-offer-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  position: relative;
  isolation: isolate;
  background-image:
    radial-gradient(at 100% 100%, rgba(249, 250, 251, 0.5) 0%, transparent 50%),
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.08) 0%, transparent 50%);
}

.single-offer-card.expanded {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: rgba(209, 213, 219, 1);
  z-index: 1;
}

.single-offer-card.hovered {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.single-offer-card.expanded.hovered {
  transform: translateY(-6px);
}

/* For larger screens, use horizontal layout */
@media (min-width: 768px) {
  .single-offer-card {
    flex-direction: row;
    min-height: 340px;
  }

  .offer-image-container {
    flex: 0 0 45%;
    max-width: 45%;
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 4/3;
    /* 4:3 aspect ratio, change as needed */
  }

  .offer-content {
    flex: 1;
  }
}

.offer-image-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  /* Light background for image container */
  min-height: 250px;
  overflow: hidden;
  aspect-ratio: 16/9;
  /* Sets a consistent ratio */
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%); */
  z-index: 1;
  transition: var(--transition-normal);
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* This ensures the image covers the container properly */
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.offer-image.loaded {
  opacity: 1;
  /* This makes the image visible once loaded */
}

/* Add this to handle error state */
.image-error {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  color: #6b7280;
  font-size: 0.9rem;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: #f3f4f6;
  color: #6b7280;
}


.single-offer-card:hover .offer-image {
  transform: scale(1.08);
}

.offer-type {
  position: absolute;
  top: 18px;
  left: 18px;
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  backdrop-filter: blur(8px);
  background-color: rgba(79, 70, 229, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.expiration-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background-color: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.offer-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: white;
  position: relative;
}

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

.offer-title {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.offer-badges {
  display: flex;
  gap: 0.5rem;
}

.offer-badge {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offer-description-container {
  position: relative;
}

.offer-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.offer-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.date-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.date-item>div {
  display: flex;
  flex-direction: column;
}

.date-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.date-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.offer-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.primary-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.25);
  transform: translateY(-2px);
}

.primary-btn:active {
  transform: translateY(0);
}

.single-offer-card.expanded .primary-btn {
  animation: pulseGlow 2s infinite;
}

.secondary-btn {
  background-color: white;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  outline: none;
}

.secondary-btn:hover {
  background-color: var(--secondary-color);
  color: var(--text-primary);
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.secondary-btn:active {
  transform: translateY(0);
}

/* Additional responsive adjustments */
@media (max-width: 767px) {
  .offer-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .offer-badges {
    align-self: flex-start;
  }

  .date-items {
    flex-direction: column;
    gap: 1.25rem;
  }

  .offer-actions {
    flex-direction: column;
    width: 100%;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .offer-content {
    padding: 2rem;
  }
}

@media (max-width: 500px) {
  .offer-title {
    font-size: 1.5rem;
  }

  .offer-description {
    font-size: 1rem;
  }

  .offer-content {
    padding: 1.75rem;
    gap: 1.25rem;
  }
}


/* ViewCustomer.css - Improved Design */
.customer-profile-container {
  font-family: 'Rubik', sans-serif !important;
  max-width: 1200px;
  margin: 50px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Profile Header - Enhanced gradient and layout */
.customer-profile-header {
  display: flex;
  align-items: center;
  padding: 40px;
  background: linear-gradient(120deg, #4361ee 0%, #3a0ca3 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.customer-profile-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.customer-photo {
  margin-right: 40px;
  position: relative;
  z-index: 2;
}

.customer-photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.customer-header-info {
  position: relative;
  z-index: 2;
}

.customer-header-info h2 {
  margin: 0 0 10px 0;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.customer-id {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.customer-actions {
  margin-top: 15px;
}

.edit-button {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.edit-button svg {
  margin-right: 10px;
}

.edit-button:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Tabs - Modernized design */
.customer-tabs {
  display: flex;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 20px;
}

.tab-button {
  padding: 18px 30px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.tab-button:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: #4361ee;
  transition: width 0.3s ease;
}

.tab-button:hover {
  color: #4361ee;
}

.tab-button:hover:before {
  width: 40%;
}

.tab-button.active {
  color: #4361ee;
  font-weight: 600;
}

.tab-button.active:before {
  width: 80%;
}

/* Content Panel */
.customer-profile-content {
  padding: 40px;
  background-color: white;
}

/* Info Panel - Enhanced with cards */
.info-section {
  margin-bottom: 40px;
  background-color: #fcfcfc;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.info-section h3 {
  font-size: 20px;
  color: #3a3a3a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

.info-section h3:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #4361ee;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 12px 15px;
  background-color: white;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.info-item:hover {
  transform: translateX(5px);
}

.info-icon {
  width: 24px;
  height: 24px;
  margin-right: 20px;
  margin-top: 3px;
  color: #4361ee;
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 14px;
  color: #8a8a8a;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.info-value {
  color: #333;
  font-weight: 500;
}

/* AMC Plan Card - More attractive styling */
.amc-plan-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.amc-plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.05) 0%, rgba(67, 97, 238, 0) 70%);
  z-index: 0;
}

.amc-plan-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.amc-icon {
  color: #4361ee;
  font-size: 45px;
  margin-right: 20px;
  background-color: rgba(67, 97, 238, 0.1);
  padding: 12px;
  border-radius: 12px;
}

.amc-plan-name {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  flex: 1;
}

.amc-status {
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.amc-status.active {
  background-color: rgba(21, 87, 36, 0.1);
  color: #155724;
  border: 1px solid rgba(21, 87, 36, 0.2);
}

.amc-status.inactive {
  background-color: rgba(114, 28, 36, 0.1);
  color: #721c24;
  border: 1px solid rgba(114, 28, 36, 0.2);
}

.amc-status.pending {
  background-color: rgba(133, 100, 4, 0.1);
  color: #856404;
  border: 1px solid rgba(133, 100, 4, 0.2);
}

.amc-plan-dates {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  font-size: 14px;
  color: #6c757d;
  position: relative;
  z-index: 1;
}

.amc-plan-dates span {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 8px 15px;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}

.amc-plan-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 15px;
  position: relative;
  z-index: 1;
}

.amc-feature {
  font-size: 15px;
  color: #444;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  border: 1px solid #f0f0f0;
}

.amc-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

/* Stats Section - More visually appealing */
.stats-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 30px;
  margin-top: 40px;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.05) 0%, rgba(67, 97, 238, 0) 70%);
  z-index: 0;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(67, 97, 238, 0.2) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: #4361ee;
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.stat-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.stat-value {
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.stat-label {
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .customer-profile-container {
    margin: 20px;
    border-radius: 12px;
  }

  .customer-profile-header {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .customer-photo {
    margin-right: 0;
    margin-bottom: 25px;
  }

  .customer-photo img {
    width: 120px;
    height: 120px;
  }

  .customer-tabs {
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tab-button {
    padding: 15px 20px;
  }

  .customer-profile-content {
    padding: 25px;
  }

  .stats-section {
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }

  .amc-plan-features {
    grid-template-columns: 1fr;
  }

  .info-section {
    padding: 20px;
  }

  .info-item {
    flex-direction: column;
  }

  .info-icon {
    margin-bottom: 10px;
  }
}

/* Animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.customer-profile-container {
  animation: fadeIn 0.5s ease-out;
}

.info-section:nth-child(1) {
  animation: fadeIn 0.5s ease-out 0.1s;
  animation-fill-mode: both;
}

.info-section:nth-child(2) {
  animation: fadeIn 0.5s ease-out 0.2s;
  animation-fill-mode: both;
}

.stats-section {
  animation: fadeIn 0.5s ease-out 0.3s;
  animation-fill-mode: both;
}

.rdrDay:not(.rdrDayPassive) .rdrInRange~.rdrDayNumber span,
.rdrDay:not(.rdrDayPassive) .rdrStartEdge~.rdrDayNumber span,
.rdrDay:not(.rdrDayPassive) .rdrEndEdge~.rdrDayNumber span,
.rdrDay:not(.rdrDayPassive) .rdrSelected~.rdrDayNumber span {
  color: var(--primary-color) !important;
}

.bg-petrol {
  background-color: #fef3c7 !important;
}

.bg-diesel {
  background-color: #e0e7ff !important;
}

.bg-electric {
  background-color: #d1fae5 !important;
}

.bg-hybrid {
  background-color: #dbeafe !important;
}

.bg-cng {
  background-color: #ccfbf1 !important;
}

.bg-lpg {
  background-color: #fde68a !important;
}

.bg-hydrogen {
  background-color: #e0f2fe !important;
}

.bg-gray {
  background-color: gray !important;
}

/* Live Tracking */
/* Live Tracking Specific Styles */
.timeline-indicator {
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-top: 5px;
}

.timeline-item {
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background-color: var(--form-medium-gray);
}

/* Map container style adjustments */
.leaflet-container {
  border-radius: 0 0 var(--form-card-radius) var(--form-card-radius);
}

@media (max-width: 767.98px) {
  .leaflet-container {
    height: 350px !important;
  }
}

/* Live Tracking */
.tracking-details-card {
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.tracking-details-card:hover {
  box-shadow: var(--shadow-lg);
}

.tracking-details-card .card-title {
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tracking-details-card .card-body {
  padding: 1.25rem;
}

.tracking-details-card .text-muted {
  color: var(--text-light) !important;
  font-size: 0.875rem;
  font-weight: 500;
}

.tracking-details-card .fw-medium {
  font-weight: 600;
  color: var(--text-color);
}

/* Map View Header */
.card-header.bg-light {
  background-color: var(--header-bg) !important;
  border-bottom: 1px solid var(--header-border);
  padding: 1rem 1.25rem;
}

.card-header.bg-light h5 {
  color: var(--secondary-color);
  font-weight: 600;
}

.card-header .btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transition: var(--transition-fast);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.card-header .btn-outline-primary i {
  font-size: 1rem;
}

/* Map Info Window */
.map-info-window {
  padding: 12px;
  max-width: 220px;
  border-radius: var(--radius-sm);
}

.map-info-window h6 {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1rem;
}

.map-info-window p {
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Map Container */
.col-md-8 {
  position: relative;
}

/* Customer Details Layout */
.col-md-4.border-end {
  border-color: var(--border-color) !important;
}

.col-md-4 .p-4 {
  height: 600px;
  overflow-y: auto;
}

/* Customer Details Items */
.tracking-details-card .mb-2 {
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.tracking-details-card .mb-2:not(:last-child) {
  border-bottom: 1px solid var(--gray-light);
}

.tracking-details-card .text-muted {
  margin-bottom: 0.25rem;
}


/* Base Styles */
.tracking-dashboard {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8faff;
  height: 100%;
  width: 100%;
}

/* Glass-morphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Header Styles */
.track-dashboard-header {
  background: linear-gradient(135deg, #3F51B5, #7986CB);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  display: flex;
  align-items: center;
}

.pulse-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  position: relative;
}

.pulse-icon:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: pulse 2s infinite;
}

.pulse-icon i {
  color: white;
  font-size: 1.5rem;
  z-index: 2;
}

.title-text h4 {
  color: white;
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
}

.customer-name {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-pill {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.5s infinite;
}

.btn-back {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  height: calc(100% - 84px);
}

/* Info Panel */
.info-panel {
  width: 340px;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #fafbfd;
}

/* Quick Stats */
.quick-stats {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.stat-card {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EDE7F6;
  color: #5E35B1;
}

.stat-info h6 {
  font-size: 0.7rem;
  color: #9E9E9E;
  margin: 0;
  font-weight: 500;
}

.stat-info p {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: #212121;
}

/* Detail Cards */
.detail-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.detail-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #212121;
}

.card-header h5 i {
  color: #5E35B1;
}

.driver-card .card-header h5 i {
  color: #00796B;
}

.badge {
  background: #EDE7F6;
  color: #5E35B1;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.btn-contact {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #E0F2F1;
  color: #00796B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: #00796B;
  color: white;
  transform: scale(1.1);
}

.card-body {
  padding: 1.25rem;
}

/* Profile Section */
.profile-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-container {
  position: relative;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #212121;
}

.profile-id {
  font-size: 0.75rem;
  color: #9E9E9E;
  margin: 0 0 0.5rem 0;
}

.driver-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 121, 107, 0.08);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.driver-badge i {
  color: #00796B;
  font-size: 0.8rem;
}

.driver-badge span {
  font-size: 0.7rem;
  font-weight: 500;
  color: #00796B;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: #FFC107;
  font-size: 0.85rem;
}

.rating span {
  color: #616161;
  margin-left: 0.3rem;
  font-weight: 500;
}

.divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  margin: 1rem 0;
}

/* Detail Items */
.detail-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EDE7F6;
  color: #5E35B1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-card .item-icon {
  background: #E0F2F1;
  color: #00796B;
}

.item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-label {
  font-size: 0.75rem;
  color: #9E9E9E;
}

.item-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #212121;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.75rem;
  /* margin-top: 1.25rem; */
  justify-content: center;
}

.btn-action {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-action.primary {
  background: #00796B;
  color: white;
}

.btn-action.secondary {
  background: #E0F2F1;
  color: #00796B;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Map Section */
.map-section {
  flex: 1;
  position: relative;
}

.map-container {
  height: 100%;
  width: 100%;
  position: relative;
}

/* Map Controls */
.map-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: white;
  color: #5E35B1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.map-control-btn:hover {
  background: #5E35B1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(94, 53, 177, 0.3);
}

/* Custom Info Window */
.custom-info-window {
  width: 240px;
  padding: 1rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.info-header h5 {
  margin: 0
}

.map-info-card {
  min-width: 200px;
  border-radius: 8px;
}

/* Service Centers specific styles */
.service-center-column-name {
  min-width: 250px;
}
.service-center-column-mb {
  min-width: 200px;
}
.service-center-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--primary-light);
}

.pd-list-container .service-center-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pd-list-container .service-center-actions .pd-list-icon {
  font-size: 1rem;
}

/* Edit Service Center */
.service-center-edit .pd-page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  position: relative;
}

.service-center-edit .pd-page-header:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 60px;
  background: var(--service-center-primary-gradient);
  border-radius: 4px;
}

.service-center-edit .pd-page-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.service-center-edit .pd-page-header p {
  font-size: 16px;
}

.service-center-edit .pd-alert {
  margin-bottom: 24px;
  border-radius: var(--service-center-border-radius);
  font-weight: 500;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-center-edit .pd-tabs-navigation {
  margin-bottom: 32px;
  border-bottom: none;
  position: relative;
}

.service-center-edit .pd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}

.service-center-edit .pd-tab {
  border: none;
  background: #f9fafb;
  padding: 14px 24px;
  border-radius: var(--service-center-border-radius);
  font-weight: 600;
  transition: var(--service-center-transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.service-center-edit .pd-tab:hover {
  color: var(--service-center-primary);
  background-color: #f5f9ff;
  transform: translateY(-2px);
}

.service-center-edit .pd-tab.active {
  color: white;
  background: var(--service-center-primary-gradient);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.service-center-edit .pd-tab .pd-icon {
  font-size: 18px;
}

.service-center-edit .pd-tab.active i {
  color: white;
}

.service-center-edit .pd-card {
  border: none;
  border-radius: var(--service-center-border-radius);
  box-shadow: var(--service-center-shadow);
  margin-bottom: 32px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-center-edit .pd-section {
  padding: 24px 0;
  border-bottom: 1px solid #f3f4f6;
}

.service-center-edit .pd-section:last-child {
  border-bottom: none;
}

.service-center-edit .pd-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.service-center-edit .pd-section-title .pd-icon {
  color: var(--service-center-primary);
  background: var(--service-center-primary-light);
  padding: 8px;
  border-radius: 8px;
  font-size: 16px;
}

/* Input field enhancements */
.service-center-edit .pd-input {
  border-radius: var(--service-center-input-radius);
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  transition: var(--service-center-transition);
  font-size: 15px;
  background-color: #f9fafb;
}

.service-center-edit .pd-input:focus {
  border-color: var(--service-center-primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
  background-color: white;
}

.service-center-edit .form-label {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 15px;
}

/* Select inputs */
.service-center-edit .form-select {
  padding: 14px 16px;
  background-color: #f9fafb;
  border-radius: var(--service-center-input-radius);
  border: 1px solid #e5e7eb;
  font-size: 15px;
}

/* Phone input customization */
.service-center-edit .react-tel-input .form-control {
  width: 100%;
  height: 48px;
  border-radius: var(--service-center-input-radius);
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  font-size: 15px;
}

.service-center-edit .react-tel-input .flag-dropdown {
  border-radius: var(--service-center-input-radius) 0 0 var(--service-center-input-radius);
  border: 1px solid #e5e7eb;
  background-color: #f5f5f5;
}

/* Date and time picker customization */
.service-center-edit .react-datepicker-wrapper {
  width: 100%;
}

.service-center-edit .flatpickr-input,
.service-center-edit .react-datepicker__input-container input {
  height: 48px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--service-center-input-radius);
  font-size: 15px;
}

/* Schedule, Special Day and Holiday cards */
.service-center-edit .schedule-card,
.service-center-edit .special-day-card,
.service-center-edit .holiday-card,
.service-center-edit [style*="backgroundColor: #f8f9fa"] {
  background-color: #f9fafb !important;
  border-radius: var(--service-center-border-radius) !important;
  padding: 24px !important;
  margin-bottom: 20px !important;
  border: 1px solid #eef2ff !important;
  transition: var(--service-center-transition) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
}

.service-center-edit .schedule-card:hover,
.service-center-edit .special-day-card:hover,
.service-center-edit .holiday-card:hover,
.service-center-edit [style*="backgroundColor: #f8f9fa"]:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.05) !important;
  transform: translateY(-2px) !important;
  border-color: #dbeafe !important;
}

/* Card subtitles */
.service-center-edit h5 {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

/* Checkbox group styling */
.service-center-edit .pd-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.service-center-edit .pd-checkbox {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 8px 16px;
  transition: var(--service-center-transition);
}

.service-center-edit .pd-checkbox:hover {
  background-color: #edf2ff;
  border-color: #c7d2fe;
}

.service-center-edit .pd-checkbox .form-check-input {
  margin-right: 6px;
}

.service-center-edit .pd-checkbox .form-check-input:checked {
  background-color: var(--service-center-primary);
  border-color: var(--service-center-primary);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.service-center-edit .pd-checkbox .form-check-input:checked ~ .form-check-label {
  color: var(--service-center-primary);
  font-weight: 600;
}

/* Button styling */
.service-center-edit .pd-btn-add {
  color: var(--service-center-primary);
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 600;
  transition: var(--service-center-transition);
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.service-center-edit .pd-btn-add:hover {
  background: var(--service-center-primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.25);
  transform: translateY(-2px);
}

.service-center-edit .pd-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid #f3f4f6;
}

/* Delete buttons */
.service-center-edit [variant="outline-danger"] {
  border-color: #fee2e2;
  color: var(--service-center-danger);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: var(--service-center-transition);
}

.service-center-edit [variant="outline-danger"]:hover {
  background-color: var(--service-center-danger);
  color: white;
  border-color: var(--service-center-danger);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

/* Timezone select customization */
.service-center-edit .react-timezone-select__control {
  border-radius: var(--service-center-input-radius);
  min-height: 48px;
  border-color: #e5e7eb;
  background-color: #f9fafb;
  box-shadow: none;
}

.service-center-edit .react-timezone-select__control--is-focused {
  border-color: var(--service-center-primary);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.15);
  background-color: white;
}

.service-center-edit .react-timezone-select__menu {
  border-radius: var(--service-center-input-radius);
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
}

.service-center-edit .react-timezone-select__option--is-selected {
  background-color: var(--service-center-primary);
}

.service-center-edit .react-timezone-select__option--is-focused:not(.react-timezone-select__option--is-selected) {
  background-color: #f5f9ff;
}

/* Animation for alerts */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-center-edit .pd-alert {
  animation: slideDown 0.3s ease-out forwards;
}

/* Glassmorphism effects */
.service-center-edit .pd-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-center-edit .pd-tabs {
    flex-direction: column;
    gap: 8px;
  }
  
  .service-center-edit .pd-tab {
    border-radius: var(--service-center-border-radius);
    margin-bottom: 6px;
    padding: 12px 16px;
  }
  
  .service-center-edit .pd-form-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .service-center-edit .pd-checkbox-group {
    flex-direction: column;
    gap: 6px;
  }
  
  .service-center-edit [style*="backgroundColor: #f8f9fa"] {
    padding: 16px !important;
  }
}


/* Add these styles to your CSS */
.track-dashboard-header {
  background: linear-gradient(135deg, #3F51B5, #7986CB);
  padding: 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.driver-profile {
  display: flex;
  align-items: center;
}

/* .avatar-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
} */

.driver-info {
  margin-left: 12px;
}

.driver-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--white);
}

.driver-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.driver-contact {
  display: flex;
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 2px;
}

.journey-metrics {
  display: flex;
  align-items: center;
}

.metric-item {
  display: flex;
  align-items: center;
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--white);
}

.metric-content {
  display: flex;
  flex-direction: column;
}

/* .status-pill {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
} */

/* .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4CAF50;
  margin-right: 6px;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
  animation: pulse 1.5s infinite;
} */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* Active Tabs Colors */
.pd-tab.active {
  background-color: #4361ee !important;
  color: white !important;
}

.pd-tab {
  background-color: white !important;
  color: black !important;
}

/* Ensure icons also change color */
.pd-tab.active .pd-icon {
  color: white !important;
}

.pagetitleBar.d-flex.align-items-center.mb-4 {
  margin-bottom: 0px !important;
}


/** Appointment List Assigned Driver **/
.cursor-pointer
{
  cursor: pointer;
}
/** Hide Calendar for Upcomming tab **/
.status-tab.hide-calendar.active + .date-range-picker-container {
  display: none;
}

.destination-reached-modal .modal-content {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.destination-reached-modal .modal-body {
  padding: 2rem;
}

.destination-reached-modal .ri-check-line {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  padding: 10px;
}

.modal-dialog.destination-reached-modal.modal-dialog-centered {
  justify-content: end;
}

.destination-reached-modal .modal-content {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #e3f2fd, #ffffff);
  border: 2px solid #0d6efd;
}

.success-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.checkmark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #0d6efd;
  stroke-miterlimit: 10;
  background: white;
  fill: none;
  animation: scale 0.3s ease-in-out 0.9s both;
  position: relative;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #0d6efd;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  stroke: #0d6efd;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes reload {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.journey-summary {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
}

.summary-detail {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.detail-icon i {
  color: #0d6efd;
  font-size: 20px;
}

.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 2px;
}

.detail-value {
  font-weight: 600;
  color: #212529;
}

.service-header {
  display: flex;
  align-items: center;
}

.progress-bar {
  background-color: #0d6efd !important;
  animation: reload 5s linear forwards;
}

/** Driver Delete Modal **/
.custom-delete-modal .modal-dialog.modal-dialog-centered {
  justify-content: end;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Image message styling */
.msg-image-container {
  position: relative;
  max-width: 150px;
}

.msg-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.msg-image {
  width: 50%;
  display: block;
  border-radius: 8px;
}

.msg-image-caption-advisor {
  margin-top: 4px;
  font-size: 14px;
  color: white;
}

.msg-image-caption-other{
  color: black;
}

/* Delete button styling */
.msg-image-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.msg-image-delete-btn:hover {
  opacity: 1;
}

/* Add this CSS to your stylesheet */
#chatPopup {
  display: none; /* Initially hidden */
}

#chatPopup.show {
  display: block; /* Visible when 'show' class is added */
}

.no-messages{
  text-align: center;
  margin : 10px 0;
}

.status {
  color: #999;
  font-size: 13px;
}
/* AddVehicle.css */
.add-vehicle-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.vehicle-form-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
  padding: 32px;
  margin-bottom: 32px;
}

.form-title {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.image-upload-section {
  grid-column: span 2;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 14px;
  color: var(--text-color);
  transition: var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.form-input.error, .form-select.error, .image-upload-area.error {
  border-color: var(--danger);
}

.error-message {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
}

.image-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: var(--gray-light);
  position: relative;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-upload-area:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.file-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.hidden-input {
  display: none;
}

.image-preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.change-image-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.change-image-btn:hover {
  background-color: var(--secondary-color);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
  grid-column: span 2;
}

.btn-cancel {
  padding: 12px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--white);
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cancel:hover {
  background-color: var(--gray-light);
}

.btn-submit {
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius-md);
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-submit:hover {
  background-color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .image-upload-section {
    grid-column: span 1;
  }
  
  .form-actions {
    grid-column: span 1;
  }
}
/* Base styles for form components */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Dropdown container */
.dropdown-container {
  position: relative;
  width: 100%;
}

/* Dropdown input styling */
.form-input.dropdown-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 35px;
  width: 100%;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 46px;
}

.form-input.dropdown-input:hover {
  border-color: #93c5fd;
}

.form-input.dropdown-input:focus,
.form-input.dropdown-input:active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}

/* Styling for error state */
.form-input.dropdown-input.error {
  border-color: #ef4444;
}

.form-input.dropdown-input.error:focus,
.form-input.dropdown-input.error:active {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Styling for disabled state */
.form-input.dropdown-input.disabled {
  background-color: #f9fafb;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Placeholder text style */
.form-input.dropdown-input .placeholder {
  color: #9ca3af;
}

/* Arrow icons from Remix Icon */
.form-input.dropdown-input i[class^="ri-arrow"] {
  color: #6b7280;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.form-input.dropdown-input i.ri-arrow-up-s-line {
  transform: rotate(180deg);
}

/* Dropdown menu styling */
.dropdown-menu.show {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: dropdown-fade-in 0.2s ease;
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search input container */
.dropdown-search {
  position: relative;
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.dropdown-search input {
  width: 100%;
  padding: 10px 36px;
  font-size: 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.dropdown-search input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Search icon */
.dropdown-search .search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
}

/* Clear search button */
.dropdown-search .clear-search {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: pointer;
  font-size: 1rem;
}

.dropdown-search .clear-search:hover {
  color: #4b5563;
}

/* Dropdown items container */
.dropdown-items {
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Scrollbar styling for webkit browsers */
.dropdown-items::-webkit-scrollbar {
  width: 6px;
}

.dropdown-items::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.dropdown-items::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 20px;
}

/* Dropdown item styling */
.dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  color: #374151;
}

.dropdown-item:hover {
  background-color: #eff6ff;
}

/* Loading state */
.dropdown-item-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Spinner animation */
.dropdown-item-loading .spinner {
  animation: spin 1s linear infinite;
  margin-right: 8px;
  font-size: 1.25rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Empty state */
.dropdown-item-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #6b7280;
  font-size: 0.875rem;
}

.dropdown-item-empty i {
  margin-right: 8px;
  font-size: 1.25rem;
}

/* Error message */
.error-message {
  margin-top: 6px;
  font-size: 0.875rem;
  color: #ef4444;
}

/* Add this to your CSS file */
.p-calendar {
  width: 100%;
}

.p-calendar .p-inputtext {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
}

.p-calendar.form-select.error .p-inputtext {
  border-color: #dc3545;
}

/* Make PrimeReact calendar match your other form elements */
.p-calendar .p-inputtext {
  height: 38px;
  font-size: 14px;
}
.p-monthpicker
{
  padding: 10px;
  margin: 10px;
}
span.p-monthpicker-month {
  padding: 5px;
}
.p-datepicker-header
{
  padding: 10px;
}

.update-location{
  color:blue;
  font-size:20px;
  cursor: pointer;
}

.find-location{
  display: flex ;
  align-items: center;
  justify-content: center;
}

/**
 * CameraModal.css
 * Styles for the camera modal component with unique class prefixes to prevent CSS conflicts
 */

/* Modal Container Styles */
.cm-camera-modal {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
  border: none;
  max-width: 500px;
  margin: 0 auto;
}

/* Modal Header Styles */
.cm-modal-header {
  background-color: var(--primary-color);
  border-bottom: none;
  padding: 1rem 1.5rem;
}

.cm-modal-title {
  color: var(--white);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1.25rem;
}

/* Modal Body Styles */
.cm-modal-body {
  background-color: var(--gray-light);
  padding: 0 !important;
}

/* Camera Container Styles */
.cm-camera-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background-color: #000;
}

.cm-camera-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.cm-camera-frame {
  width: 90%;
  height: 90%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-sm);
}

.cm-webcam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Captured Image Container Styles */
.cm-captured-image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background-color: var(--gray-light);
}

.cm-captured-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Modal Footer Styles */
.cm-modal-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
}

/* Button Styles */
.cm-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease-in-out;
  border: none;
  box-shadow: var(--box-shadow-sm);
}

.cm-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

.cm-button:active {
  transform: translateY(0);
}

.cm-capture-button {
  background-color: var(--primary-color);
  color: var(--white);
  flex-grow: 1;
}

.cm-retake-button {
  background-color: var(--text-light);
  color: var(--text-color);
  margin-right: 0.5rem;
}

.cm-send-button {
  background-color: var(--accent-color);
  color: var(--white);
  margin-right: 0.5rem;
}

.cm-close-button {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Icon Styles */
.cm-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .cm-camera-modal {
    max-width: 95%;
  }
  
  .cm-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

.msg-conversation-scroll-container {
  max-height: 600px; /* adjust this based on your layout */
  overflow-y: auto;
  padding-right: 8px; /* optional, avoids text cutting off behind scrollbar */
}

.msg-conversation-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.msg-conversation-scroll-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 6px;
}

.msg-conversation-scroll-container::-webkit-scrollbar-track {
  background-color: transparent;
}

.make-call{
  color:blue;
  font-size:18px;
  cursor: pointer;
}

:root {
  /* Color variables */
  --primary-color: #4a80f0;
  --secondary-color: #000;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white-color: #ffffff;
  --black-color: #000000;
  
  /* Background colors */
  --bg-primary: #f9fbff;
  --bg-secondary: #edf2ff;
  --bg-modal: rgba(255, 255, 255, 0.95);
  
  /* Text colors */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #868e96;
  
  /* Border variables */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-circle: 50%;
  --border-color: #dee2e6;
  
  /* Spacing variables */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Shadow variables */
  --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
  --shadow-md: 0 .5rem 1rem rgba(0, 0, 0, .15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);
  
  /* Font variables */
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  
  /* Animation variables */
  --transition-speed: 0.3s;
  --transition-timing: ease;
}

/* Incoming Call Modal Styles */
.call-modal .modal-content {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-xl);
  border: none;
  overflow: hidden;
}

.call-modal-header {
  background-color: var(--primary-color);
  color: var(--white);
  border-bottom: none;
  padding: 1rem 1.5rem;
}

.call-modal-header .modal-title {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.call-modal-header .close {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition-normal);
}

.call-modal-header .close:hover {
  opacity: 1;
}

.incoming-call-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-animation {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.call-modal-body {
  padding: 1.5rem;
  background-color: var(--gray-light);
}

.missed-call-alert {
  background-color: var(--danger);
  color: var(--white);
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.caller-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
}

.caller-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--box-shadow-md);
  border: 4px solid var(--white);
  background-color: var(--white);
}

.caller-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caller-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.caller-status {
  font-size: 1rem;
  color: var(--text-light);
}

.camera-modal .btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-label {
  font-weight: 600;
}
.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.video-box {
  position: relative;
  flex: 1;
  min-width: 250px;
  height: 240px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #bbbbc5;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .local-video {
  border: 2px solid var(--self-color);
} */

/* .remote-video {
  border: 2px solid var(--primary-color);
} */

.incoming-avatar-label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  background-color: var(--bg-modal);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
}

.avatar-container-call {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
}

.video-avatar, .audio-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
}

.audio-avatar-container {
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.call-controls {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.initial-controls {
  display: flex;
  gap: 2rem;
}

.control-btn {
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow-md);
  transition: var(--transition-normal);
  color: var(--white);
  background-color: var(--primary-color);
  cursor: pointer;
  position: relative;
}

.control-btn i {
  font-size: 1.5rem;
}

.control-btn span {
  position: absolute;
  bottom: -25px;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--text-color);
}

.answer-btn {
  background-color: var(--success);
}

.answer-btn:hover {
  background-color: #0da271;
  transform: scale(1.05);
}

.reject-btn, .end-call-btn {
  background-color: var(--danger);
}

.reject-btn:hover, .end-call-btn:hover {
  background-color: #e03131;
  transform: scale(1.05);
}

.control-btn.muted {
  background-color: var(--warning-color);
  color: var(--text-primary);
}

.active-call-controls {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.connecting-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hold-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background-color: var(--status-booked);
  color: var(--white);
  border-radius: var(--border-radius-md);
}

.call-modal-footer {
  border-top: none;
  padding: 1rem 1.5rem;
}

.close-btn {
  background-color: var(--text-muted);
  border: none;
  transition: var(--transition-normal);
}

.close-btn:hover {
  background-color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-box {
    min-width: 100%;
  }
  
  .caller-avatar {
    width: 100px;
    height: 100px;
  }
  
  .control-btn {
    width: 50px;
    height: 50px;
  }
  
  .control-btn i {
    font-size: 1.25rem;
  }
}

/* OutgoingModal.css - Custom styling for video call modal using CSS variables */

/* Using the vidcall- prefix for all classes to ensure uniqueness */

/* Main Modal Container */
.vidcall-outgoing-modal {
  background-color: var(--bg-modal);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: none;
}

.vidcall-header {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-bottom: none;
  padding: var(--spacing-md) var(--spacing-lg);
}

.vidcall-header .close {
  color: var(--white-color);
  opacity: 0.8;
  transition: opacity var(--transition-speed) var(--transition-timing);
}

.vidcall-header .close:hover {
  opacity: 1;
}

.vidcall-body {
  padding: var(--spacing-lg);
  background-color: var(--bg-primary);
}

.vidcall-footer {
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--bg-primary);
}

.vidcall-close-btn {
  background-color: var(--secondary-color);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  color: var(--white-color);
  font-weight: 500;
  transition: all var(--transition-speed) var(--transition-timing);
}

.vidcall-close-btn:hover {
  background-color: var(--dark-color);
  transform: translateY(-2px);
}

/* Main Container */
.vidcall-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
}

/* Caller Information */
.vidcall-caller-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.vidcall-avatar-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.vidcall-avatar-wrapper:hover {
  transform: scale(1.05);
}

.vidcall-caller-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vidcall-user-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vidcall-user-details p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
}

.vidcall-user-details p strong {
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 0.3rem;
}

.vidcall-user-details-icon {
  color: var(--primary-color);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .vidcall-caller-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vidcall-user-details {
    align-items: center;
  }

  .vidcall-user-details p {
    justify-content: center;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vidcall-status-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  font-weight: 500;
}

.call-modal-body .incoming{
  bottom: 2px !important;
}

.vidcall-caller-name {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
}

/* Video Streams Container */
.vidcall-streams-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
  width: 100%;
}

.vidcall-video-wrapper {
  position: relative;
  width: 45%;
  min-width: 280px;
  height: 220px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) var(--transition-timing);
  border: 2px solid #bbbbc5;
}

.vidcall-video-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.vidcall-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.vidcall-avatar-placeholder,
.vidcall-audio-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--bg-secondary);
}

.vidcall-video-avatar,
.vidcall-audio-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius-circle);
  object-fit: cover;
  border: 3px solid var(--white-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-sm);
}

.vidcall-avatar-label {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  background-color: var(--bg-modal);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-weight: 600;
}

.rounded-circle{
  border-radius: 50%;
  object-fit: cover;
}

.call-avatar{
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Call Controls */
.vidcall-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  padding: 0.5rem 0;
  width: 100%;
}

.vidcall-active-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
}

.vidcall-control-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-circle);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: var(--font-size-lg);
  transition: all var(--transition-speed) var(--transition-timing);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.vidcall-control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  opacity: 0;
  transition: opacity var(--transition-speed) var(--transition-timing);
}

.vidcall-control-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: var(--shadow-md);
}

.vidcall-control-btn:hover::before {
  opacity: 0.1;
}

.vidcall-control-btn:active {
  transform: scale(0.95);
}

.vidcall-call-btn {
  background-color: var(--success-color);
}

.vidcall-end-btn {
  background-color: var(--danger-color);
  transform: rotate(135deg);
}

.vidcall-end-btn:hover {
  transform: rotate(135deg) scale(1.1) translateY(-3px);
}

.vidcall-control-btn.vidcall-muted {
  background-color: var(--warning-color);
  color: var(--text-primary);
}

/* Connecting Indicator */
.vidcall-connecting {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-primary);
  font-size: var(--font-size-md);
  padding: var(--spacing-md);
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.vidcall-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(var(--primary-color), 0.3);
  border-top-color: var(--primary-color);
  border-radius: var(--border-radius-circle);
  animation: vidcall-spin 1s linear infinite;
}

@keyframes vidcall-spin {
  to { transform: rotate(360deg); }
}

/* Hold Indicator */
.vidcall-hold-indicator {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--black-color);
  font-weight: 600;
  font-size: var(--font-size-md);
  padding: var(--spacing-sm) var(--spacing-md);
  /* background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm); */
}

.vidcall-hold-indicator i {
  font-size: 3.65rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .vidcall-video-wrapper {
    width: 100%;
    margin-bottom: var(--spacing-md);
  }
  
  .vidcall-active-controls {
    flex-wrap: wrap;
  }
  
  .vidcall-control-btn {
    width: 55px;
    height: 55px;
  }
  
  .vidcall-caller-name {
    font-size: var(--font-size-lg);
  }
  
  .vidcall-avatar-wrapper {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 576px) {
  .vidcall-body {
    padding: var(--spacing-md);
  }
  
  .vidcall-video-wrapper {
    height: 180px;
    min-width: 240px;
  }
  
  .vidcall-control-btn {
    width: 50px;
    height: 50px;
  }
}

.reschedule-appointment-btn:disabled,
.cancel-appointment-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.invalid-feedback
{
  display: block !important;
}


/**
* Chat Message Link Youtube preview css
**/
.msg-link-preview {
  margin: 8px 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  max-width: 100%;
}

.youtube-preview {
  display: block;
  width: 100%;
}

.thumbnail-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.youtube-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-info {
  padding: 8px 12px;
  display: flex;
  align-items: center;
}

.website-preview .link-info {
  padding: 10px 12px;
}

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

.website-icon {
  width: 16px;
  height: 16px;
}

.link-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
}

.link-url {
  font-size: 12px;
  color: #666;
  word-break: break-all;
  max-width:250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform:none;
}

.website-preview .link-url {
  font-size: 14px;
}

/* Adjust existing msg-text-link class */
.msg-text-link {
  color: #0078d7;
  text-decoration: none;
  word-break: break-all;
  display: inline-block;
}

.msg-link-preview a.msg-text-link {
  color: inherit;
  display: block;
  width: 100%;
  text-decoration: none;
}

.msg-text-link:hover {
  text-decoration: underline;
}

.msg-link-preview a.msg-text-link:hover {
  text-decoration: none;
}

/* Styling for the country selector */
.searchable-country-select {
  position: relative;
  width: 40px; /* Fixed width for flag and dropdown arrow */
  display: inline-flex;
  align-items: center;
}

.country-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

.selected-country {
  display: flex;
  align-items: center;
}

.dropdown-arrow {
  font-size: 10px;
  color: #6c757d;
  margin-left: 8px;
}

/* Position the dropdown outside the input */
.country-dropdown-container {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050; /* Higher z-index to ensure it appears above other elements */
}

.country-dropdown {
  width: 250px;
  max-height: 250px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #0d6efd;
  border-radius: 0.25rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  margin-top: 5px;
}

.country-search-input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  outline: none;
  background-color: #f8f9fa;
}

.country-search-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.25) inset;
  background-color: #fff;
}

.country-options-list {
  max-height: 200px;
  overflow-y: auto;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.country-option:hover {
  background-color: #e6f0ff;
}

.country-option.selected {
  background-color: #0d6efd;
  color: white;
}

.no-results {
  padding: 8px 12px;
  color: #6c757d;
  font-style: italic;
}

/* PhoneInput styling */
.PhoneInput {
  display: flex;
  align-items: stretch;
  background-color: #fff;
}

.PhoneInputInput {
  flex: 1;
  min-width: 0;
  padding: 0.375rem 0.75rem;
  outline: none;
  border: none;
}

.PhoneInputCountry {
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
  border-right: 1px solid #ced4da;
}

/* Custom styling for the whole phone input container */
.phone-input-wrapper {
  position: relative;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.phone-input-wrapper:focus-within {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.phone-input-wrapper.is-invalid {
  border-color: #dc3545;
}

.phone-input-wrapper.is-invalid:focus-within {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.msg-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 10px 0;
}

.msg-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

.msg-end-of-history {
  text-align: center;
  padding: 10px;
  color: #888;
  font-size: 0.8rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.msg-no-record-found{
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
  font-size: 1.15rem;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* AdminDashboard */
.admin-dashboard-container {
  padding: 1.5rem;
  background-color: #f8f8fb;
}

/* Dashboard Header */
.admin-dashboard-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.admin-dashboard-subtitle {
  color: #7c8db5;
  font-size: 0.95rem;
}

/* Cards Styling */
.admin-dashboard-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 24px 0 rgba(34, 41, 47, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.admin-dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px 0 rgba(34, 41, 47, 0.1);
}

.admin-dashboard-section-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.75rem;
}

/* Summary Cards */
.admin-dashboard-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.admin-dashboard-brands-icon {
  background-color: rgba(115, 103, 240, 0.12);
}

.admin-dashboard-centers-icon {
  background-color: rgba(0, 207, 232, 0.12);
}

.admin-dashboard-advisors-icon {
  background-color: rgba(255, 159, 67, 0.12);
}

.admin-dashboard-icon {
  color: #fff;
}

.admin-dashboard-card-value {
  font-weight: 700;
  font-size: 1.85rem;
  color: #2c3e50;
}

.admin-dashboard-card-label {
  color: #7c8db5;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Table Card */
.admin-dashboard-table-header th {
  border-bottom: 2px solid #f0f0f0;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  background-color: var(--vibrant-blue) !important;
}

.admin-dashboard-table-row {
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.admin-dashboard-table-row:hover {
  background-color: rgba(115, 103, 240, 0.05);
}

.admin-dashboard-link {
  color: #7367F0;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link-center {
  color: rgb(0, 207, 232) !important;
}

.admin-dashboard-link:hover {
  color: #5e50ee;
  text-decoration: underline !important;
}

.admin-dashboard-appointments-count {
  color: #2c3e50;
  font-weight: 600;
}

.admin-dashboard-view-all-btn {
  background-color: transparent;
  border: 1px solid var(--vibrant-blue) !important;
  color: var(--vibrant-blue) !important;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.admin-dashboard-view-all-btn:hover {
  background-color: var(--vibrant-blue) !important;
  color: #fff !important;
  border: none !important;
}

/* Custom Recharts Styling */
.recharts-default-tooltip {
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  padding: 10px 14px !important;
  border: none !important;
}

.recharts-tooltip-label {
  font-weight: 600 !important;
  color: #2c3e50 !important;
}

.recharts-tooltip-item {
  color: #7c8db5 !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .admin-dashboard-card {
    margin-bottom: 1rem;
  }
}

/* Styles for call-related message types call end, missed call */
.msg-call-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 12px auto;
  padding: 12px;
  max-width: 280px;
  text-align: center;
  background: white;
  border-radius: 10% 10%;
}

.msg-call-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  padding: 12px 20px;
  width: 100%;
  background: white;
}

.msg-call-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.msg-call-icon i {
  color: red;
  font-size: 20px;
}

.msg-call-icon.ended {
  transform: rotate(135deg);
}

.msg-call-text {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.msg-call-duration {
  font-size: 12px;
  color: #65676B;
}

.msg-call-time {
  font-size: 11px;
  color: #8696a0;
  margin-top: 4px;
}

/** Call Timer Css */
.call-timer {
  background: #4361ee;
  border-radius: 12px;
  padding: 10px 20px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  /* animation: pulse 1.5s infinite; */
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: #0f0;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* Admin Reports Styling */

/* Container and layout */
.admin-reports-container {
  padding: 5px 25px 5px 25px;
  font-family: var(--font-family);
  color: var(--text-color);
}

/* Header styling */
.admin-reports-title {
  color: var(--secondary-color);
  letter-spacing: -0.025em;
  line-height: 1.2;
  position: relative;
  margin-bottom: 10px;
}

.admin-reports-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--service-center-primary-gradient);
  border-radius: 2px;
}

.admin-reports-subtitle {
  margin-top: 16px;
  color: var(--text-light);
}

/* Section titles with enhanced styling */
.admin-reports-view-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-light);
  margin-bottom: 1rem;
  position: relative;
}

.admin-reports-view-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--service-center-primary-gradient);
  border-radius: 1px;
}

/* Header layout adjustments */
.admin-reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* Toggle button styling */
.admin-reports-toggle {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.admin-reports-toggle button {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: var(--transition-normal);
  border: none;
  background: none;
  cursor: pointer;
}

.admin-reports-toggle button.active {
  background-color: var(--primary-color);
  color: white;
}

.admin-reports-toggle button:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Enhanced table styling */
.admin-reports-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.admin-reports-table thead th {
  background-color: var(--vibrant-blue);
  color: var(--white);
  padding: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  text-align: left;
}

.admin-reports-table thead th:first-child {
  border-top-left-radius: var(--border-radius-md);
}

.admin-reports-table thead th:last-child {
  border-top-right-radius: var(--border-radius-md);
}

.admin-reports-table thead th:hover {
  background-color: rgba(26, 86, 219, 0.9) !important;
}

.admin-reports-th-content {
  display: flex;
  align-items: center;
}

.admin-reports-th-icon {
  color: var(--white);
}

.admin-reports-sort-icon {
  color: var(--white);
}

/* Table body */
.admin-reports-table tbody tr {
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--border-color);
}

.admin-reports-table tbody tr:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.admin-reports-table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

/* Table cells styling */
.admin-reports-brand-cell {
  font-weight: 500;
  color: var(--text-color);
}

.admin-reports-driver-cell {
  font-weight: 500;
  color: var(--text-color);
}

.admin-reports-distance-cell {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--text-color);
}

.admin-reports-unit {
  margin-left: 4px;
  color: var(--text-light);
  font-size: 0.875rem;
}

.admin-reports-trips-cell {
  font-weight: 500;
  color: var(--text-color);
}

.admin-reports-rating-cell {
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Star rating styling */
.star-rating {
  display: flex;
  align-items: center;
}

.star-rating .star {
  color: #f59e0b; /* Gold color for stars */
}

.star-rating .empty-star {
  color: #e5e7eb; /* Light gray for empty stars */
}

.star-rating .rating-value {
  margin-left: 8px;
  font-weight: 500;
}

/* Animation for view transitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-reports-chart,
.admin-reports-table-section {
  animation: fadeIn 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-reports-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-reports-header > div:last-child {
    margin-top: 1rem;
    width: 100%;
  }
  
  .admin-reports-toggle {
    width: 100%;
    justify-content: space-between;
  }
  
  .admin-reports-toggle button {
    flex: 1;
    justify-content: center;
  }
  
  .admin-reports-table thead {
    display: none;
  }
  
  .admin-reports-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
  }
  
  .admin-reports-table td {
    display: flex;
    justify-content: space-between;
    text-align: right;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .admin-reports-table td:before {
    content: attr(data-label);
    font-weight: 500;
    text-align: left;
    color: var(--text-light);
  }
  
  .admin-reports-table td:last-child {
    border-bottom: none;
  }
}
  
@media (max-width: 768px) {
  .recenter-button {
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999; /* VERY high to override Google Maps fullscreen layers */
    transition: all 0.2s ease;
  }
}

/* Add these styles to your CSS file */

.custom-map-control {
  background-color: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  height: 40px;
  width: 40px;
  margin: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.16s ease-out;
  position: relative;
}

.custom-map-control:hover {
  background-color: #f5f5f5;
}

.custom-map-control:active {
  background-color: #ebebeb;
}

.custom-map-control svg {
  width: 22px;
  height: 22px;
  stroke: #666;
  stroke-width: 2px;
  fill: none;
}

/* Notification CSS */

/* Header gradient background */
.notification-header {
  background: linear-gradient(to right, #3b82f6, #1e40af);
}

/* Button styling in the header */
.btn-icon {
  background: transparent;
  border: none;
  color: white;
  padding: 0.375rem;
  border-radius: 50%;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Notification list scrollable container */
.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Notification item styling */
.notification-item {
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 1rem;
}

.notification-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.notification-item.unreadlist {
  background-color: #d9d9ff;
}

/* Icon circle styling */
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon {
  width: 20px;
  height: 20px;
}

/* Unread dot indicator */
.notification-icon-wrapper {
  position: relative;
  display: inline-block;
}

.unread-dot {
  position: absolute;
  top: 2px;
  right: 10px;
  width: 10px;
  height: 10px;
  background-color: #dc3545; /* Bootstrap red or your theme */
  border-radius: 50%;
  border: 2px solid white;
}


/* Delete button styling */
.delete-btn {
  /* color: #6c757d; */
  transition: color 0.2s;
  background: transparent;
  border: none;
  padding: 0.25rem;
}

.delete-btn:hover {
  color: #dc3545;
}

/* Custom color for purple badges/icons */
.bg-purple {
  background-color: #ffc107 !important;
}

.bg-Info.bg-opacity-25.text-info {
  background: #007bff;
  color: white !important;
}
/* Pagination focus outline */
.page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Active page styling */
.page-item.active .page-link {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

svg.text-green-600 {
    width: 40px;
    height: 20px;
    color: green;
}

svg.text-black {
    width: 40px;
    height: 20px;
    margin-bottom: 6px;
}

span.pd-list-trip-count.flex.items-center.justify-center.gap-1 {
    text-transform: none;
}

.gm-svpc
{
  display: none;
}

/* Driver Attendance Component Styles */
.driver-attendance-wrapper {
  min-height: 100vh;
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-container {
  padding: 30px 0;
}

/* Header Section */
.header-section {
  margin-bottom: 40px;
}

.header-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 10px 0;
}

.header-subtitle {
  color: #718096;
  font-size: 16px;
  margin: 0;
}

/* Controls Section */
.controls-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 10px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 12px;
  color: #4a5568;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.search-wrapper {
  position: relative;
  min-width: 700px;
}

.search-input {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}

/* List Container */
.list-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.list-header {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 150px;
  gap: 20px;
  padding: 20px 30px;
  background: var(--vibrant-blue);
  font-weight: 600;
  color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.list-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 150px;
  gap: 20px;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
}

.list-item:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: translateX(5px);
}

.list-item:last-child {
  border-bottom: none;
}

/* Status Indicators */
.status-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin: 0 auto;
}

.status-indicator.active {
  background: #48bb78;
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

.status-indicator.inactive {
  background: #ed8936;
  box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.2);
}

.status-indicator.not-clocked {
  background: #a0aec0;
  box-shadow: 0 0 0 3px rgba(160, 174, 192, 0.2);
}

/* Driver Info */
.driver-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

/* Example: position the status indicator on top-right */
.driver-avatar-container .status-indicator {
    position: absolute;
    top: 0%;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}
.driver-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.driver-details h6 {
  margin: 0 0 5px 0;
  font-weight: 600;
  color: #2d3748;
  font-size: 16px;
}

.driver-details p {
  margin: 0;
  color: #718096;
  font-size: 14px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a5568;
  font-size: 14px;
}

/* Status Badge */
.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: rgba(72, 187, 120, 0.1);
  color: #48bb78;
  border: 1px solid rgba(72, 187, 120, 0.3);
}

.status-badge.inactive {
  background: rgba(237, 137, 54, 0.1);
  color: #ed8936;
  border: 1px solid rgba(237, 137, 54, 0.3);
}

.status-badge.not-clocked {
  background: rgba(160, 174, 192, 0.1);
  color: #a0aec0;
  border: 1px solid rgba(160, 174, 192, 0.3);
}

/* Loading and Empty States */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(102, 126, 234, 0.1);
  border-left: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.msg-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #666;
}

.msg-loading-conversation {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 60px 30px;
  color: #718096;
}

.empty-state svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h4 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #4a5568;
}

.empty-state p {
  margin: 0;
  font-size: 16px;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  background: rgba(247, 250, 252, 0.8);
  margin-top: 30px;
  border-radius: 15px;
}

.pagination-info {
  color: #718096;
  font-size: 14px;
}

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

.pagination-btn {
  padding: 10px 15px;
  border: 1px solid rgba(160, 174, 192, 0.3);
  border-radius: 8px;
  background: white;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
  background: #f7fafc;
  border-color: #667eea;
}

.pagination-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

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

.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

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

.modal-container {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(160, 174, 192, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #718096;
}

.modal-close:hover {
  background: rgba(237, 137, 54, 0.1);
  color: #ed8936;
}

.modal-content-attendance {
  padding: 30px;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

/* Driver Profile in Modal */
.driver-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: 15px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.driver-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.driver-info-modal h3 {
  margin: 0 0 15px 0;
  font-size: 24px;
  color: #2d3748;
  font-weight: 600;
}

.driver-email,
.driver-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: #4a5568;
  font-size: 14px;
}

/* Date Picker */
.date-picker {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(247, 250, 252, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(160, 174, 192, 0.2);
}

.date-picker-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #4a5568;
  font-size: 16px;
}

.date-picker-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0;
}

.date-picker-container::-webkit-scrollbar {
  height: 6px;
}

.date-picker-container::-webkit-scrollbar-track {
  background: rgba(160, 174, 192, 0.1);
  border-radius: 3px;
}

.date-picker-container::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 3px;
}

.date-item {
  flex-shrink: 0;
  padding: 12px 16px;
  border: 2px solid rgba(160, 174, 192, 0.2);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 80px;
}

.date-item:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.date-item.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.date-item .date-day {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 2px;
}

.date-item .date-number {
  font-size: 16px;
  font-weight: 600;
}

/* Attendance Data */
.attendance-data {
  margin-top: 20px;
}

.modal-loading {
  text-align: center;
  padding: 40px;
  color: #718096;
}

.modal-loading .loading-spinner {
  margin-bottom: 15px;
}

.date-section {
  margin-bottom: 30px;
}

.date-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.session-card {
  background: rgba(247, 250, 252, 0.8);
  border: 1px solid rgba(160, 174, 192, 0.2);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.session-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: rgba(102, 126, 234, 0.3);
}

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

.session-number {
  font-weight: 600;
  color: #4a5568;
  font-size: 16px;
}

.session-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-status.manual {
  background: rgba(237, 137, 54, 0.1);
  color: #ed8936;
  border: 1px solid rgba(237, 137, 54, 0.3);
}

.session-status.auto {
  background: rgba(72, 187, 120, 0.1);
  color: #48bb78;
  border: 1px solid rgba(72, 187, 120, 0.3);
}

.session-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.time-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(160, 174, 192, 0.1);
}

.time-item svg {
  color: #667eea;
  margin-top: 2px;
}

.time-item strong {
  display: block;
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 5px;
}

.time-item p {
  margin: 0;
  color: #718096;
  font-size: 13px;
}

.session-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(160, 174, 192, 0.1);
}

.location-item svg {
  color: #667eea;
  margin-top: 2px;
}

.location-item strong {
  display: block;
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 5px;
}

.location-item p {
  margin: 0;
  color: #718096;
  font-size: 13px;
  word-break: break-all;
}

.appointment-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stat-card {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(160, 174, 192, 0.1);
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.no-data {
  text-align: center;
  padding: 40px;
  color: #718096;
}

.no-records {
  text-align: center;
  padding: 40px;
  color: #718096;
  background: rgba(247, 250, 252, 0.5);
  border-radius: 12px;
  border: 2px dashed rgba(160, 174, 192, 0.3);
}

.no-records svg {
  margin-bottom: 15px;
  opacity: 0.5;
}

.no-records h4 {
  margin: 0 0 10px 0;
  color: #4a5568;
  font-size: 18px;
}

.no-records p {
  margin: 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .controls-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    justify-content: center;
  }
  
  .search-wrapper {
    min-width: auto;
  }
  
  .list-header,
  .list-item {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }
  
  .driver-info {
    justify-content: center;
  }
  
  .pagination-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .session-times,
  .session-locations,
  .appointment-stats {
    grid-template-columns: 1fr;
  }
  
  .driver-profile {
    flex-direction: column;
    text-align: center;
  }
}


/****************************************/
/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 820px;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  background: #007bff;
  color: #fff;
  padding: 16px 24px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Driver Profile */
.driver-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
}

.driver-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--vibrant-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
}

.driver-info-modal h3 {
  margin: 0;
  font-size: 20px;
}

.driver-info-modal p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
  font-size: 14px;
  color: #4b5563;
}

/* Date Picker */
.date-picker {
  margin-bottom: 20px;
}

.date-picker-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  gap: 8px;
  margin-bottom: 10px;
}

.date-picker-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.date-item {
  background: #f3f4f6;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  width: 60px;
  transition: background 0.3s ease;
}

.date-item.active {
  background: var(--vibrant-blue);
  color: white;
}

.date-day {
  font-size: 12px;
  font-weight: 600;
}

.date-number {
  font-size: 16px;
  font-weight: bold;
}

/* Loading Spinner */
.modal-loading {
  text-align: center;
  color: #6b7280;
}

.loading-spinner {
  border: 4px solid #e5e7eb;
  border-top: 4px solid var(--vibrant-blue);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: auto;
  animation: spin 1s linear infinite;
}

/* Attendance Sessions */
.date-section {
  margin-bottom: 24px;
}

.date-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-card {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 16px;
  border-left: 4px solid #007bff;
}

.session-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.session-number {
  font-weight: 600;
}

.session-status {
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 16px;
  text-transform: capitalize;
}

.session-status.manual {
  background: #e9b949;
  color: #fff;
}

.session-status.auto {
  background: #ff6b6b;
  color: #fff;
}

.session-times {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.time-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.appointment-stats {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.stat-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  flex: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.stat-number {
  font-size: 18px;
  font-weight: bold;
}

.stat-label {
  font-size: 12px;
  color: #555;
}

.no-records {
  text-align: center;
  padding: 32px 0;
  color: #999;
}

.modal-loading {
  text-align: center;
  padding: 32px 0;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.nav-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

