.table-doctor-container {
  line-height: 2.5;
}

.table-doctor-card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table-doctor-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.25rem;
}

.table-doctor-filters {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}

.table-doctor-filters h5 {
  color: #495057;
  font-weight: 600;
}

.table-doctor-table {
  width: 100%;
  border-collapse: collapse;
}

.table-doctor-table th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
  padding: 15px 8px;
  border-bottom: 2px solid #dee2e6;
  vertical-align: middle;
}

.table-doctor-table td {
  padding: 15px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #dee2e6;
}

.table-doctor-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.025);
}


.specialty-badge {
  background-color: #1e3a8a !important;
  color: white !important;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 500;
}

.results-badge {
  background-color: #1e3a8a;
  color: white;
  padding: 0.5em 0.75em;
  font-size: 0.875em;
  font-weight: 500;
}

.anniversary-badge {
  background-color: #ffc107;
  color: #000;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
}

.btn-view {
  background-color: #E6F2FF !important;
  color: #004085 !important;
  border: 1px solid #B8D4F0;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-view:hover {
  background-color: #D1E7FF !important;
  border-color: #9EC5FE;
}

.btn-edit {
  background-color: #FFF3CD !important;
  color: #856404 !important;
  border: 1px solid #FFEAA7;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-edit:hover {
  background-color: #FFEEBA !important;
  border-color: #FFE087;
}

.btn-delete {
  background-color: #F8D7DA !important;
  color: #721C24 !important;
  border: 1px solid #F5C6CB;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-delete:hover {
  background-color: #F1B0B7 !important;
  border-color: #ED969E;
}

.advanced-filters {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: white;
}

.advanced-filters h6 {
  color: #495057;
  font-weight: 600;
}

.form-label.fw-bold {
  color: #495057;
  font-size: 0.875rem;
}

.delete-modal .modal-header {
  background-color: rgba(220, 53, 69, 0.1);
  border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.delete-modal .modal-title {
  color: #dc3545;
  font-weight: 600;
}

.filter-especialidade {
  min-width: 180px !important;
  max-width: 200px;
}

.filter-buttons-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-btn {
  white-space: nowrap;
  padding: 0.375rem 0.75rem;
}

.filtros-basicos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .table-doctor-card .card-header { padding: 0.75rem 1rem; }
  .table-doctor-table th, .table-doctor-table td { padding: 8px 6px; }
  .table-doctor-table thead th:nth-child(2),
  .table-doctor-table thead th:nth-child(4),
  .table-doctor-table tbody td:nth-child(2),
  .table-doctor-table tbody td:nth-child(4) { display: none; }
  .filter-buttons-container { width: 100%; }
  .filter-btn { width: 100%; }
}

@media (max-width: 768px) {
  .table-doctor-table {
    font-size: 0.875rem;
  }

  .table-doctor-table th,
  .table-doctor-table td {
    padding: 10px 6px;
  }

  .btn-view,
  .btn-edit,
  .btn-delete {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .filtros-basicos {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .filter-especialidade {
    min-width: 100% !important;
    max-width: 100%;
  }

  .filter-buttons-container {
    justify-content: stretch;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
  }
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: #6c757d;
}

.empty-state td {
  border-bottom: none;
  padding: 2rem !important;
}

.filters-active .badge {
  font-size: 0.75em;
  padding: 0.4em 0.65em;
}

.table-doctor-table tbody tr {
  transition: background-color 0.15s ease-in-out;
}

.btn-view,
.btn-edit,
.btn-delete {
  transition: all 0.15s ease-in-out;
}



.contador-medicos {
  background-color: #1e3a8a;
  color: white;
  padding: 0.5em 0.75em;
  font-size: 0.875em;
  font-weight: 500;
  border-radius: 0.375rem;
  text-align: center;
  display: inline-block;
}


.pagination {
  margin-bottom: 0;
}

.page-link {
  color: #495057;
  border: 1px solid #dee2e6;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.page-link:hover {
  color: #1e3a8a;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  background-color: #1e3a8a;
  border-color: #1e3a8a;
  color: white;
}

.page-item.disabled .page-link {
  color: #6c757d;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}


.d-flex.justify-content-between.align-items-center {
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
  margin-top: 1rem;
}


.text-center.py-4 .text-muted {
  padding: 2rem;
}

.text-center.py-4 .bi-search {
  font-size: 3rem;
  opacity: 0.5;
}

.text-center.py-4 p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.text-center.py-4 td {
  border-bottom: none;
  padding: 2rem !important;
}


@media (max-width: 768px) {
  .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch !important;
  }
  
  .d-flex.justify-content-between.align-items-center > div {
    justify-content: center !important;
  }
  
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .me-3.text-muted {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }
  
  .contador-medicos {
    font-size: 0.8rem;
    padding: 0.4em 0.6em;
  }
}

.form-select.form-select-sm.w-auto {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}


.filters-active .badge {
  font-size: 0.75em;
  padding: 0.4em 0.65em;
  margin-bottom: 0.25rem;
}