/* ==========================================
   PROVIDER WORK PAGE STYLES
========================================== */

/* Stats Cards */
.stats-card {
  transition: all 0.3s ease;
  border-radius: 10px;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.stats-card h3 {
  font-size: 2rem;
  color: #333;
}

.stats-card h6 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-card .rounded-circle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Filter Card */
.filter-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-card .form-label {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.filter-card .form-control,
.filter-card .form-select {
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Tabs */
.nav-pills .nav-link {
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  color: #666;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.nav-pills .nav-link:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.nav-pills .nav-link.active {
  background-color: #0d6efd;
  color: #fff;
}

.nav-pills .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Table Styling */
.table {
  font-size: 0.9rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.table thead th {
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 1rem 0.75rem;
  white-space: nowrap;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table tbody td {
  vertical-align: middle;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

/* Service List */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: 250px;
}

.service-list .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  font-weight: 500;
}

/* Status Badges */
.badge {
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
}

.badge.bg-primary {
  background-color: #0d6efd !important;
}

.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
}

/* Distance Badge */
.badge i {
  font-size: 0.85em;
}

/* Action Buttons */
.btn-group-sm .btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 4px;
}

.btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.btn-info:hover {
  background-color: #138496;
  border-color: #138496;
}

.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
}

/* Modal Styling */
.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body .card {
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-body .card-body {
  padding: 1rem;
}

.modal-body h6 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.modal-body p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.modal-body strong {
  color: #333;
  font-weight: 600;
}

/* Empty State */
.table tbody td i.fa-inbox,
.table tbody td i.fa-check-circle {
  display: block;
  opacity: 0.3;
}

/* Loading State */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .stats-card h3 {
    font-size: 1.5rem;
  }

  .stats-card .rounded-circle {
    width: 50px;
    height: 50px;
  }

  .stats-card .rounded-circle i {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .filter-card .row {
    gap: 1rem;
  }

  .nav-pills .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .table {
    font-size: 0.8rem;
  }

  .table thead th {
    font-size: 0.7rem;
    padding: 0.75rem 0.5rem;
  }

  .table tbody td {
    padding: 0.75rem 0.5rem;
  }

  .btn-group-sm .btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
  }

  .service-list {
    max-width: 150px;
  }

  .service-list .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
  }
}

@media (max-width: 576px) {
  .stats-card {
    margin-bottom: 1rem;
  }

  .table-responsive {
    border-radius: 8px;
    overflow-x: auto;
  }

  .modal-body .row .col-md-6 {
    margin-bottom: 1rem;
  }
}

/* Scroll Bar Styling */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table tbody tr {
  animation: fadeIn 0.3s ease;
}

/* Custom Checkbox */
.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Button Hover Effects */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Export Button */
.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
}

/* Form Elements in Modal */
#statusForm .form-label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

#statusForm .form-select,
#statusForm .form-control {
  border-radius: 6px;
  border: 2px solid #e0e0e0;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}

#statusForm .form-select:focus,
#statusForm .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Card in Details Modal */
.modal-body .card.bg-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Link Styling */
a.text-decoration-none {
  color: #0d6efd;
  transition: color 0.3s ease;
}

a.text-decoration-none:hover {
  color: #0a58ca;
  text-decoration: underline !important;
}

/* Pagination */
.pagination {
  border-radius: 8px;
  overflow: hidden;
}

.pagination .page-link {
  border: none;
  padding: 0.5rem 0.75rem;
  color: #667eea;
}

.pagination .page-link:hover {
  background-color: #f8f9fa;
  color: #764ba2;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

/* Footer */
.bg-light.rounded-top {
  border-top: 3px solid #667eea;
}

.sidebar-logo {
    max-width: 180px;
    height: 100px;
    object-fit: contain;
}



