/* Service Form Styles */
.service-form {
  max-width: 600px;
  margin: 0 auto;
}

.service-form .form-group {
  margin-bottom: 1.5rem;
}

.service-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.service-form .form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.service-form .form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.service-form textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.service-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Mode Selector */
.mode-selector .mode-options {
  display: flex;
  gap: 1rem;
}

.mode-selector .mode-option {
  flex: 1;
  cursor: pointer;
}

.mode-selector .mode-option input[type="radio"] {
  display: none;
}

.mode-selector .mode-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 12px;
  transition: all 0.2s;
}

.mode-selector .mode-option input[type="radio"]:checked + .mode-label {
  border-color: #3b82f6;
  background: #eff6ff;
}

.mode-selector .mode-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Image Upload */
.image-upload .image-preview {
  margin-top: 1rem;
}

.image-upload .preview-img {
  max-width: 200px;
  border-radius: 8px;
}

/* Form Actions */
.form-actions {
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

/* Error Messages */
.error-messages {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #dc2626;
}

/* Service Show Page */
.service-show {
  max-width: 800px;
  margin: 0 auto;
}

.service-card-display {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.service-card-display .service-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-card-display .service-content {
  padding: 1.5rem;
}

.service-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.service-meta .badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-category {
  background: #e0e7ff;
  color: #4338ca;
}

.badge-mode {
  background: #d1fae5;
  color: #065f46;
}

.booking-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin: 1rem 0;
}

.booking-count .count {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3b82f6;
}

.service-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.service-actions .btn {
  text-decoration: none;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Admin Services Index */
.admin-services-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-services-header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: #1e293b;
}

.admin-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.admin-service-link {
  text-decoration: none;
  color: inherit;
}

.admin-service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-service-link:hover .admin-service-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.admin-service-card__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.admin-service-card__placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

.admin-service-card__body {
  padding: 1rem;
}

.admin-service-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-service-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.admin-service-card__mode {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
}

.admin-service-card__mode.badge-online {
  background: #dcfce7;
  color: #166534;
}

.admin-service-card__mode.badge-offline {
  background: #fef3c7;
  color: #92400e;
}

.admin-service-card__description {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.admin-service-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-service-card__meta span {
  padding: 0.25rem 0.5rem;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #475569;
}

.admin-service-card__category {
  background: #e0e7ff !important;
  color: #4338ca !important;
}

.admin-service-card__price {
  background: #dcfce7 !important;
  color: #166534 !important;
  font-weight: 600;
}

.admin-service-card__bookings {
  background: #fef3c7 !important;
  color: #92400e !important;
}
