/* Practitioners Page Styles */
.practitioners-page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}

.practitioners-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.practitioners-title {
  color: var(--color-text-primary);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.practitioners-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.add-practitioner-btn {
  background: linear-gradient(135deg, #16a085, #1abc9c);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-practitioner-btn:hover {
  background: linear-gradient(135deg, #1abc9c, #16a085);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}

.practitioners-search {
  position: relative;
  min-width: 300px;
}

.practitioners-search input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 2px solid var(--color-border-light);
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  transition: border-color 0.3s ease;
}

.practitioners-search input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.practitioners-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.practitioners-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.filter-group select {
  padding: 8px 12px;
  border: 2px solid var(--color-border-light);
  border-radius: 6px;
  font-size: 14px;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.practitioners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.practitioner-card {
  background: var(--color-bg-primary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-left: 4px solid var(--color-primary);
  border: 1px solid var(--color-border-light);
}

.practitioner-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.practitioner-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}

.practitioner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 5px 0;
}

.practitioner-practice {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.4;
}

.practitioner-badge {
  flex-shrink: 0;
}

.practitioner-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.detail-value {
  font-size: 0.9rem;
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 1.3;
}

/* Website link styling */
.website-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.website-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Rating display styling */
.rating-display {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star {
  font-size: 0.9rem;
  filter: grayscale(0);
}

.star.empty {
  filter: grayscale(1);
  opacity: 0.3;
}

.rating-number {
  margin-left: 5px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: normal;
}

.no-practitioners {
  text-align: center;
  padding: 60px 20px;
  background: var(--color-bg-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
}

.no-practitioners-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-practitioners h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.no-practitioners p {
  font-size: 1rem;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-gray-200);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.error-message {
  background: var(--color-danger-light);
  color: var(--color-danger-dark);
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-danger);
}

.success-message {
  background: var(--color-success-light);
  color: var(--color-success-dark);
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-success);
  animation: slideIn 0.3s ease;
}

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

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

.modal-content {
  background: var(--color-bg-primary);
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--color-border-light);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--color-text-secondary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--color-border-light);
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-light);
}

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

.btn-secondary {
  background: var(--color-gray-500);
  color: var(--color-text-light);
}

.btn-secondary:hover {
  background: var(--color-gray-600);
}

/* Status Badge Customizations for Practitioners */
.practitioner-badge .status-badge {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
  border: 1px solid var(--color-border-light);
}

.practitioner-badge .status-badge.status-cardiology,
.practitioner-badge .status-badge.status-emergency {
  background: var(--color-danger-light);
  color: var(--color-danger-dark);
}

.practitioner-badge .status-badge.status-family,
.practitioner-badge .status-badge.status-internal {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.practitioner-badge .status-badge.status-pediatrics,
.practitioner-badge .status-badge.status-psychiatry {
  background: var(--color-info-light);
  color: var(--color-info-dark);
}

.practitioner-badge .status-badge.status-surgery,
.practitioner-badge .status-badge.status-neurology {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
}

/* Responsive Design */
