/* DocPulse Frontend Styles */
.docpulse-booking-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.docpulse-form-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
}

.docpulse-form-group {
  margin-bottom: 20px;
}

.docpulse-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.docpulse-form-group select,
.docpulse-form-group input,
.docpulse-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.docpulse-form-group select:focus,
.docpulse-form-group input:focus,
.docpulse-form-group textarea:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.docpulse-patient-section {
  border-top: 2px solid #007cba;
  padding-top: 20px;
  margin-top: 30px;
}

.docpulse-patient-section h3 {
  color: #007cba;
  margin-bottom: 20px;
}

.docpulse-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.docpulse-slot-button {
  padding: 12px 8px;
  border: 2px solid #007cba;
  background: #fff;
  color: #007cba;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.docpulse-slot-button:hover {
  background: #007cba;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.docpulse-slot-button.selected {
  background: #007cba;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.docpulse-slot-button:disabled {
  background: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.docpulse-submit-btn {
  background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.docpulse-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #005a87 0%, #004565 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.docpulse-submit-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.docpulse-loading {
  text-align: center;
  padding: 20px;
}

.docpulse-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007cba;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: docpulse-spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes docpulse-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.docpulse-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  border-left: 4px solid #28a745;
}

.docpulse-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  border-left: 4px solid #dc3545;
}

.docpulse-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  border-left: 4px solid #17a2b8;
}

.docpulse-form-group input.error,
.docpulse-form-group select.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Locations Display */
.docpulse-locations-list .docpulse-location-item,
.docpulse-locations-grid .docpulse-location-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.docpulse-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.docpulse-location-item h3 {
  color: #007cba;
  margin-bottom: 10px;
}

/* Appointments Display */
.docpulse-appointments-list {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}

.docpulse-appointment-item {
  display: grid;
  grid-template-columns: 100px 1fr 150px 100px;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.docpulse-appointment-item:last-child {
  border-bottom: none;
}

.appointment-time {
  font-weight: 600;
  color: #007cba;
}

.appointment-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.status-confirmed {
  background: #d4edda;
  color: #155724;
}
.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}
.status-completed {
  background: #d1ecf1;
  color: #0c5460;
}
.status-arrived {
  background: #fff3cd;
  color: #856404;
}
.status-noshow {
  background: #f8d7da;
  color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
  .docpulse-booking-form {
    margin: 10px;
    padding: 15px;
  }

  .docpulse-slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }

  .docpulse-slot-button {
    padding: 10px 6px;
    font-size: 13px;
  }

  .docpulse-appointment-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .docpulse-locations-grid {
    grid-template-columns: 1fr;
  }
}

/* Modern Theme */
.docpulse-booking-form.theme-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.theme-modern .docpulse-form-group label {
  color: white;
}

.theme-modern .docpulse-form-group select,
.theme-modern .docpulse-form-group input,
.theme-modern .docpulse-form-group textarea {
  background: rgba(255, 255, 255, 0.9);
  border: none;
}

/* Minimal Theme */
.docpulse-booking-form.theme-minimal {
  border: none;
  box-shadow: none;
  background: transparent;
}

.theme-minimal .docpulse-form-group select,
.theme-minimal .docpulse-form-group input,
.theme-minimal .docpulse-form-group textarea {
  border: none;
  border-bottom: 2px solid #ddd;
  border-radius: 0;
  background: transparent;
}

.theme-minimal .docpulse-form-group select:focus,
.theme-minimal .docpulse-form-group input:focus,
.theme-minimal .docpulse-form-group textarea:focus {
  border-bottom-color: #007cba;
  box-shadow: none;
}
