/* Pet Clinic Booking Frontend Styles */

.pcb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Form Styles */
.pcb-booking-form,
.pcb-booking-list,
.pcb-booking-detail {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.pcb-booking-form h1,
.pcb-booking-list h1,
.pcb-booking-detail h1 {
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  font-size: 2em;
}

.pcb-form-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
}

.pcb-form-section h3 {
  color: #495057;
  margin-bottom: 20px;
  font-size: 1.2em;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.pcb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.pcb-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
}

.pcb-form-group input,
.pcb-form-group select,
.pcb-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.pcb-form-group input:focus,
.pcb-form-group select:focus,
.pcb-form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.pcb-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Button Styles */
.pcb-btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
}

.pcb-btn-primary {
  background: #007bff;
  color: white;
}

.pcb-btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.pcb-btn-secondary {
  background: #6c757d;
  color: white;
}

.pcb-btn-secondary:hover {
  background: #545b62;
  transform: translateY(-2px);
}

.pcb-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pcb-form-actions,
.pcb-actions {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

/* Search Form */
.pcb-search-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}

.pcb-search-form h3 {
  margin-bottom: 20px;
  color: #495057;
}

/* Booking List */
.pcb-bookings-container {
  margin-top: 30px;
}

.pcb-bookings-list {
  display: grid;
  gap: 20px;
}

.pcb-booking-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.pcb-booking-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pcb-booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.pcb-booking-header h4 {
  margin: 0;
  color: #333;
  font-size: 1.1em;
}

.pcb-booking-details p {
  margin: 8px 0;
  color: #666;
}

.pcb-booking-actions {
  margin-top: 15px;
  text-align: right;
}

/* Status Styles */
.pcb-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.pcb-status-pending {
  background: #fff3cd;
  color: #856404;
}

.pcb-status-confirmed {
  background: #d1ecf1;
  color: #0c5460;
}

.pcb-status-completed {
  background: #d4edda;
  color: #155724;
}

.pcb-status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.pcb-status-active {
  background: #d4edda;
  color: #155724;
}

.pcb-status-inactive {
  background: #f8d7da;
  color: #721c24;
}

/* Booking Detail */
.pcb-booking-detail-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.pcb-booking-header {
  background: #f8f9fa;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}

.pcb-booking-sections {
  padding: 20px;
}

.pcb-section {
  margin-bottom: 30px;
}

.pcb-section h3 {
  color: #495057;
  margin-bottom: 15px;
  font-size: 1.1em;
  border-bottom: 2px solid #007bff;
  padding-bottom: 8px;
}

.pcb-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.pcb-info-item {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #007bff;
}

.pcb-info-item strong {
  color: #495057;
}

/* Loading and Error States */
.pcb-loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

.pcb-error {
  text-align: center;
  padding: 20px;
  background: #f8d7da;
  color: #721c24;
  border-radius: 6px;
  margin: 20px 0;
}

.pcb-empty {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pcb-container {
    padding: 10px;
  }

  .pcb-form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pcb-booking-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pcb-info-grid {
    grid-template-columns: 1fr;
  }

  .pcb-btn {
    display: block;
    width: 100%;
    margin: 5px 0;
  }
}
