/* Shared dashboard shell */
.ca-dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.ca-sidebar {
  width: 260px;
  min-width: 260px;
  background: #0d1b2a;
  padding: 30px 0 40px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow-y: auto;
}

.ca-sidebar-logo {
  padding: 20px 28px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.ca-sidebar-logo img {
  height: 38px;
  filter: brightness(0) invert(1);
}

.ca-sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding: 18px 28px 8px;
}

.ca-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.ca-sidebar-nav li {
  margin: 2px 12px;
}

.ca-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ca-sidebar-nav li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ca-sidebar-nav li a.active {
  background: linear-gradient(135deg, #0d4bca, #1a69f5);
  color: #fff;
  box-shadow: 0 4px 15px rgba(13, 75, 202, 0.4);
}

.ca-sidebar-nav li a i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ca-sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 28px;
}

.ca-sidebar-footer {
  padding: 20px 24px 0;
}

.ca-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.ca-sidebar-user:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ca-sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d4bca, #1a69f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.ca-sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.ca-sidebar-user-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ca-sidebar-user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.ca-dashboard-main {
  margin-left: 260px;
  flex: 1;
  min-width: 0;
  transition: margin-left 0.3s ease;
}

.ca-sidebar-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 16px;
  z-index: 1001;
  background: #0d4bca;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(13, 75, 202, 0.4);
  transition: background 0.2s;
}

.ca-sidebar-toggle:hover {
  background: #0a3ba0;
}

.ca-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  backdrop-filter: blur(2px);
}

.ca-sidebar-overlay.active {
  display: block;
}

@media (max-width: 991px) {
  .ca-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .ca-sidebar.open {
    transform: translateX(0);
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.3);
  }

  .ca-dashboard-main {
    margin-left: 0;
  }

  .ca-sidebar-toggle {
    display: flex;
  }
}

/* book-shipment.html */
.page-book-shipment .form-section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #222;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.page-book-shipment .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.booking-address-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid #e7edf7;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
}

.booking-address-toolbar p {
  color: #60708d;
}

.booking-address-empty {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(13, 75, 202, 0.08);
  color: #2451a6;
}

.address-select-full {
  width: 100%;
}

.selected-address-card {
  margin-bottom: 20px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid #dfe7f4;
  background: #fbfdff;
}

.selected-address-card.is-empty {
  background: #f8f9fb;
  border-style: dashed;
}

.selected-address-card-label {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7b8ba7;
}

.selected-address-card h5 {
  margin-bottom: 8px;
  color: #14243d;
}

.selected-address-card p {
  margin-bottom: 6px;
  color: #5f6f88;
}

.page-addresses .dashboard-card,
.page-address-form .dashboard-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.address-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0d4bca;
  font-size: 14px;
  font-weight: 700;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.address-card {
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.address-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.address-card-title {
  margin-bottom: 6px;
  color: #16263f;
}

.address-contact,
.address-meta,
.address-text,
.address-note {
  color: #61728f;
}

.address-note {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f6f9fe;
}

.address-default-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(40, 167, 69, 0.12);
  color: #208641;
  font-size: 13px;
  font-weight: 700;
}

.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.address-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #edf3ff;
  color: #0d4bca;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.address-action-btn:hover {
  color: inherit;
  transform: translateY(-1px);
}

.address-action-btn.primary {
  background: #0d4bca;
  color: #fff;
}

.address-action-btn.secondary {
  background: #fff;
  border-color: #d4deef;
  color: #334a6d;
}

.address-action-btn.danger {
  background: rgba(220, 53, 69, 0.1);
  color: #c33446;
}

.address-inline-link {
  color: #0d4bca;
  font-weight: 700;
  text-decoration: none;
}

.address-form-card .form-control {
  border: 1px solid #dbe3f1 !important;
  border-radius: 10px;
  min-height: 56px;
  padding: 12px 16px;
}

.address-form-card textarea.form-control {
  min-height: auto;
}

.address-default-check {
  padding: 14px 18px;
  border-radius: 12px;
  background: #f7faff;
  border: 1px solid #e1e9f6;
}

.address-default-check .form-check-input {
  margin-top: 0.2rem;
}

.address-empty-state {
  padding: 34px 24px;
  border: 1px dashed #cad5e8;
  border-radius: 18px;
  text-align: center;
  background: #f9fbff;
}

@media (max-width: 991px) {
  .booking-address-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 575px) {
  .page-addresses .dashboard-card,
  .page-address-form .dashboard-card,
  .page-book-shipment .dashboard-card {
    padding: 20px;
  }

  .address-actions {
    flex-direction: column;
  }

  .address-action-btn {
    width: 100%;
  }
}

/* dashboard.html */
.page-dashboard .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: 0.3s;
}

.page-dashboard .dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.page-dashboard .dashboard-card .icon {
  font-size: 40px;
  color: #0d4bca;
  margin-bottom: 15px;
}

.page-dashboard .dashboard-card h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
}

.page-dashboard .dashboard-card p {
  margin: 0;
  color: #666;
}

.page-dashboard .form-control {
  border: 1px solid #ddd !important;
}

.page-dashboard .table-custom {
  width: 100%;
  margin-bottom: 0;
}

.page-dashboard .table-custom th,
.page-dashboard .table-custom td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.page-dashboard .table-custom th {
  font-weight: 600;
  color: #222;
  border-bottom: 2px solid #eee;
}

.page-dashboard .status-badge {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.page-dashboard .status-in-transit {
  background: rgba(13, 75, 202, 0.1);
  color: #0d4bca;
}

.page-dashboard .status-delivered {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.page-dashboard .status-pending {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

@media (max-width: 575px) {
  .page-dashboard .dashboard-card {
    padding: 20px 10px;
  }

  .page-dashboard .dashboard-card h3 {
    font-size: 24px;
  }

  .page-dashboard .dashboard-card p {
    font-size: 13px;
  }

  .page-dashboard .dashboard-card .icon {
    font-size: 30px;
  }
}

/* driver-dashboard.html */
.page-driver-dashboard .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: 0.3s;
}

.page-driver-dashboard .dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.page-driver-dashboard .dashboard-card .icon {
  font-size: 40px;
  color: #0d4bca;
  margin-bottom: 15px;
}

.page-driver-dashboard .dashboard-card h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
}

.page-driver-dashboard .dashboard-card p {
  margin: 0;
  color: #666;
}

.page-driver-dashboard .table-custom {
  width: 100%;
  margin-bottom: 0;
}

.page-driver-dashboard .table-custom th,
.page-driver-dashboard .table-custom td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.page-driver-dashboard .table-custom th {
  font-weight: 600;
  color: #222;
  border-bottom: 2px solid #eee;
}

.page-driver-dashboard .status-badge {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.page-driver-dashboard .status-assigned {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.page-driver-dashboard .status-in-transit {
  background: rgba(13, 75, 202, 0.1);
  color: #0d4bca;
}

.page-driver-dashboard .status-delivered {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.page-driver-dashboard .status-available {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.page-driver-dashboard .action-btn {
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.page-driver-dashboard .btn-accept {
  background: #0d4bca;
  color: #fff;
}

.page-driver-dashboard .btn-accept:hover {
  background: #0a3ba0;
}

.page-driver-dashboard .notification-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #28a745;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: none;
}

@media (max-width: 575px) {
  .page-driver-dashboard .dashboard-card {
    padding: 20px 10px;
  }

  .page-driver-dashboard .dashboard-card h3 {
    font-size: 24px;
  }

  .page-driver-dashboard .dashboard-card p {
    font-size: 13px;
  }

  .page-driver-dashboard .dashboard-card .icon {
    font-size: 30px;
  }
}

/* driver-deliveries.html */
.page-driver-deliveries .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-driver-deliveries .table-custom {
  width: 100%;
  margin-bottom: 0;
}

.page-driver-deliveries .table-custom th,
.page-driver-deliveries .table-custom td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.page-driver-deliveries .table-custom th {
  font-weight: 600;
  color: #222;
  border-bottom: 2px solid #eee;
}

.page-driver-deliveries .status-badge {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.page-driver-deliveries .status-assigned {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.page-driver-deliveries .status-in-transit {
  background: rgba(13, 75, 202, 0.1);
  color: #0d4bca;
}

.page-driver-deliveries .status-delivered {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.page-driver-deliveries .status-cancelled {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.page-driver-deliveries .filter-input {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px 15px;
  outline: none;
}

.page-driver-deliveries .filter-select {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px 15px;
  outline: none;
  background: #fff;
}

/* driver-delivery-details.html */
.page-driver-delivery-details .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-driver-delivery-details .status-badge {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-driver-delivery-details .status-assigned {
  background: rgba(255, 193, 7, 0.15);
  color: #d39e00;
}

.page-driver-delivery-details .status-in-transit {
  background: rgba(13, 75, 202, 0.15);
  color: #0d4bca;
}

.page-driver-delivery-details .status-delivered {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.page-driver-delivery-details .status-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
  padding: 20px 0;
}

.page-driver-delivery-details .status-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 4px;
  background: #e9ecef;
  z-index: 1;
  transform: translateY(-50%);
}

.page-driver-delivery-details .status-timeline-progress {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  width: 0%;
  height: 4px;
  background: #0d4bca;
  z-index: 2;
  transform: translateY(-50%);
  transition: 0.5s ease;
}

.page-driver-delivery-details .step-item {
  position: relative;
  z-index: 3;
  text-align: center;
  flex: 1;
}

.page-driver-delivery-details .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-weight: 700;
  border: 3px solid #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.page-driver-delivery-details .step-item.active .step-icon {
  background: #0d4bca;
  color: #fff;
  box-shadow: 0 0 15px rgba(13, 75, 202, 0.4);
}

.page-driver-delivery-details .step-item.completed .step-icon {
  background: #28a745;
  color: #fff;
}

.page-driver-delivery-details .step-label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
}

.page-driver-delivery-details .step-item.active .step-label {
  color: #0d4bca;
}

.page-driver-delivery-details .step-item.completed .step-label {
  color: #28a745;
}

.page-driver-delivery-details .mock-map {
  height: 300px;
  background: #e5e3df;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.page-driver-delivery-details .map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.page-driver-delivery-details .route-path {
  position: absolute;
  width: 60%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #0d4bca,
    #0d4bca 10px,
    transparent 10px,
    transparent 20px
  );
  border-radius: 4px;
  transform: rotate(-15deg);
}

.page-driver-delivery-details .pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-driver-delivery-details .pin-origin {
  background: #0d4bca;
  left: 20%;
  top: 60%;
}

.page-driver-delivery-details .pin-dest {
  background: #28a745;
  right: 20%;
  top: 30%;
}

.page-driver-delivery-details .btn-action-panel {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.page-driver-delivery-details .btn-action {
  flex: 1;
  padding: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: 0.2s;
}

.page-driver-delivery-details .btn-primary-action {
  background: #0d4bca;
  color: #fff;
}

.page-driver-delivery-details .btn-primary-action:hover {
  background: #0a3ba0;
}

.page-driver-delivery-details .btn-success-action {
  background: #28a745;
  color: #fff;
}

.page-driver-delivery-details .btn-success-action:hover {
  background: #1e7e34;
}

.page-driver-delivery-details .btn-outline-action {
  background: transparent;
  border: 1px solid #ccc;
  color: #555;
}

.page-driver-delivery-details .btn-outline-action:hover {
  background: #f8f9fa;
}

.page-driver-delivery-details .proof-upload-box {
  border: 2px dashed #d7deed;
  border-radius: 12px;
  padding: 20px;
  background: #f8fbff;
}

.page-driver-delivery-details .proof-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: none;
  margin-top: 15px;
  border: 1px solid #e6ebf5;
  cursor: zoom-in;
}

.page-driver-delivery-details .proof-placeholder {
  border-radius: 10px;
  background: #eef4ff;
  color: #5f6f94;
  padding: 18px;
  font-size: 14px;
}

.page-driver-delivery-details .proof-meta {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px;
}

.page-driver-delivery-details .delivery-feedback {
  display: none;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 14px;
}

.page-driver-delivery-details .delivery-feedback.success {
  display: block;
  background: rgba(40, 167, 69, 0.12);
  color: #1f7a35;
}

.page-driver-delivery-details .delivery-feedback.error {
  display: block;
  background: rgba(220, 53, 69, 0.12);
  color: #a12635;
}

.page-driver-delivery-details .proof-image-fullscreen .modal-content,
.page-tracking .proof-image-fullscreen .modal-content {
  background: rgba(5, 9, 18, 0.96);
  min-height: 100vh;
}

.page-driver-delivery-details .proof-image-fullscreen .modal-header,
.page-tracking .proof-image-fullscreen .modal-header {
  padding-bottom: 0;
}

.page-driver-delivery-details .proof-image-fullscreen .modal-body,
.page-tracking .proof-image-fullscreen .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 88px);
  padding: 24px;
}

.page-driver-delivery-details #driverProofImageModalPreview,
.page-tracking #proofImageModalPreview {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
}

/* driver-earnings.html */
.page-driver-earnings .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-driver-earnings .table-custom {
  width: 100%;
  margin-bottom: 0;
}

.page-driver-earnings .table-custom th,
.page-driver-earnings .table-custom td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.page-driver-earnings .table-custom th {
  font-weight: 600;
  color: #222;
  border-bottom: 2px solid #eee;
}

.page-driver-earnings .text-success-custom {
  color: #28a745;
  font-weight: 700;
}

/* driver-profile.html */
.page-driver-profile .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-driver-profile .form-control {
  border: 1px solid #ddd !important;
  border-radius: 8px;
  padding: 12px;
}

.page-driver-profile .form-control:focus {
  border-color: #0d4bca !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 75, 202, 0.1);
}

.page-driver-profile .profile-img-container {
  text-align: center;
  margin-bottom: 20px;
}

.page-driver-profile .profile-img-container img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* edit-profile.html */
.page-edit-profile .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: 0.3s;
}

.page-edit-profile .form-control {
  border: 1px solid #ddd !important;
  height: 50px;
  border-radius: 5px;
}

.page-edit-profile .profile-img-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.page-edit-profile .profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-edit-profile .upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #0d4bca;
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #fff;
}

/* invoice-details.html */
.page-invoice-details .invoice-card {
  background: #fff;
  border-radius: 10px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.page-invoice-details .invoice-header {
  border-bottom: 2px solid #eee;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.page-invoice-details .invoice-logo img {
  max-width: 150px;
}

.page-invoice-details .invoice-title {
  font-size: 36px;
  font-weight: 700;
  color: #0d4bca;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.page-invoice-details .invoice-meta {
  text-align: right;
}

.page-invoice-details .invoice-meta p {
  margin: 0;
  color: #555;
  font-size: 15px;
}

.page-invoice-details .invoice-address-block h5 {
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  font-size: 18px;
  text-transform: uppercase;
}

.page-invoice-details .invoice-address-block p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.page-invoice-details .invoice-table th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  border-top: none;
  border-bottom: 2px solid #eee;
  padding: 15px;
}

.page-invoice-details .invoice-table td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
  color: #555;
}

.page-invoice-details .invoice-total-row th,
.page-invoice-details .invoice-total-row td {
  border-top: 2px solid #eee;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.page-invoice-details .status-badge {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
}

.page-invoice-details .status-unpaid {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

@media (max-width: 768px) {
  .page-invoice-details .invoice-card {
    padding: 30px 20px;
  }

  .page-invoice-details .invoice-meta {
    text-align: left;
    margin-top: 20px;
  }
}

/* invoices.html */
.page-invoices .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-invoices .table-custom {
  width: 100%;
  margin-bottom: 0;
}

.page-invoices .table-custom th,
.page-invoices .table-custom td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.page-invoices .table-custom th {
  font-weight: 600;
  color: #222;
  border-bottom: 2px solid #eee;
}

.page-invoices .status-badge {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.page-invoices .status-paid {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.page-invoices .status-unpaid {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.page-invoices .status-pending {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.page-invoices .filter-select {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px 15px;
  outline: none;
  background: #fff;
}

.page-invoices .action-btn {
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-right: 5px;
}

.page-invoices .btn-view {
  background: rgba(13, 75, 202, 0.1);
  color: #0d4bca;
}

.page-invoices .btn-pay {
  background: #0d4bca;
  color: #fff;
}

.page-invoices .btn-pay:hover,
.page-invoices .btn-view:hover {
  color: inherit;
  opacity: 0.9;
}

/* shipments.html */
.page-shipments .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-shipments .table-custom {
  width: 100%;
  margin-bottom: 0;
}

.page-shipments .table-custom th,
.page-shipments .table-custom td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.page-shipments .table-custom th {
  font-weight: 600;
  color: #222;
  border-bottom: 2px solid #eee;
}

.page-shipments .status-badge {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.page-shipments .status-in-transit {
  background: rgba(13, 75, 202, 0.1);
  color: #0d4bca;
}

.page-shipments .status-delivered {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.page-shipments .status-pending {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.page-shipments .status-cancelled {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.page-shipments .filter-input {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px 15px;
  outline: none;
}

.page-shipments .filter-select {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px 15px;
  outline: none;
  background: #fff;
}

/* tracking.html */
.page-tracking .dashboard-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-tracking .tracking-id-input {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-tracking .tracking-timeline {
  position: relative;
  padding-left: 50px;
  margin-top: 20px;
}

.page-tracking .tracking-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #eee;
}

.page-tracking .timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.page-tracking .timeline-item:last-child {
  margin-bottom: 0;
}

.page-tracking .timeline-item::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: -48px;
  top: 0;
  width: 32px;
  height: 32px;
  background: #0d4bca;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 1;
  box-shadow: 0 0 0 5px #fff;
}

.page-tracking .timeline-item.pending::before {
  content: "";
  background: #fff;
  border: 2px solid #eee;
}

.page-tracking .timeline-item.active::before {
  background: #28a745;
  content: "\f110";
  animation: fa-spin 2s infinite linear;
}

.page-tracking .timeline-item h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #222;
}

.page-tracking .timeline-item .date {
  font-size: 14px;
  color: #0d4bca;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.page-tracking .timeline-item p {
  margin: 0;
  color: #666;
  font-size: 15px;
}

.page-tracking .shipment-detail-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.page-tracking .shipment-detail-item:last-child {
  border-bottom: none;
}

.page-tracking .shipment-detail-item label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.page-tracking .shipment-detail-item span {
  font-size: 16px;
  color: #222;
  font-weight: 700;
}

.page-tracking .proof-card {
  border: 1px solid #e8edf7;
  border-radius: 14px;
  padding: 24px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.page-tracking .proof-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dde5f3;
}

.page-tracking .proof-image-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.page-tracking .proof-image-hint {
  margin-top: 10px;
  color: #5f7398;
  font-size: 14px;
}

.page-tracking .proof-empty {
  border: 1px dashed #cad5ea;
  border-radius: 12px;
  padding: 18px;
  background: #f8fbff;
  color: #667799;
}

.page-tracking .tracking-empty-state {
  display: none;
  border-radius: 12px;
  padding: 18px 20px;
  background: rgba(220, 53, 69, 0.08);
  color: #9d2d3a;
}

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

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

.copy-right-border {
  display: none;
}
