/* ==========================================================================
   Forms
   ========================================================================== */

.form-container { 
  max-width: 600px; 
  margin: 0 auto; 
  padding: 20px; 
}

.form-card { 
  background: white; 
  border-radius: 12px; 
  padding: 32px; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); 
}

.form-title { 
  font-size: 28px; 
  font-weight: 700; 
  color: #1a1a1a; 
  margin: 0 0 24px 0; 
}

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

.form-header .form-title { 
  margin: 0; 
}

.back-link { 
  color: #6b7280; 
  text-decoration: none; 
  font-size: 14px; 
  transition: color 0.2s; 
}

.back-link:hover { 
  color: #2563eb; 
}

.form-errors { 
  background: #fef2f2; 
  border: 1px solid #fecaca; 
  color: #991b1b; 
  padding: 16px; 
  border-radius: 8px; 
  margin-bottom: 24px; 
}

.form-errors ul { 
  margin: 0; 
  padding-left: 20px; 
}

.form-notice { 
  background: #f0fdf4; 
  border: 1px solid #bbf7d0; 
  color: #166534; 
  padding: 16px; 
  border-radius: 8px; 
  margin-bottom: 24px; 
}

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

.form-label { 
  display: block; 
  font-size: 14px; 
  font-weight: 600; 
  color: #374151; 
  margin-bottom: 8px; 
}

.form-label .required { 
  color: #ef4444; 
}

.form-input, 
.form-select, 
.form-textarea { 
  width: 100%; 
  padding: 12px 16px; 
  border: 1px solid #e0e0e0; 
  border-radius: 8px; 
  font-size: 14px; 
  transition: border-color 0.2s; 
  font-family: inherit; 
}

.form-input:focus, 
.form-select:focus, 
.form-textarea:focus { 
  outline: none; 
  border-color: #2563eb; 
}

.form-textarea { 
  resize: vertical; 
  min-height: 120px; 
}

.form-help { 
  font-size: 13px; 
  color: #6b7280; 
  margin-top: 6px; 
}

.form-hint { 
  display: block; 
  font-size: 12px; 
  color: #6b7280; 
  margin-top: 6px; 
}

.form-actions { 
  display: flex; 
  gap: 12px; 
  margin-top: 32px; 
  flex-wrap: wrap; 
}

.form-actions .btn-submit { 
  flex: 1; 
  min-width: 150px; 
}

.form-links { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  margin-top: 12px; 
  width: 100%; 
}

.btn-submit { 
  background: #2563eb; 
  color: white; 
  padding: 12px 24px; 
  border: none; 
  border-radius: 8px; 
  font-size: 16px; 
  font-weight: 500; 
  cursor: pointer; 
  transition: background 0.2s; 
}

.btn-submit:hover { 
  background: #1d4ed8; 
}

.btn-cancel { 
  background: #f3f4f6; 
  color: #374151; 
  padding: 12px 24px; 
  border: 1px solid #e5e7eb; 
  border-radius: 8px; 
  text-decoration: none; 
  font-size: 16px; 
  font-weight: 500; 
  display: inline-block; 
  transition: background 0.2s; 
}

.btn-cancel:hover { 
  background: #e5e7eb; 
}

.category-select-group { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.category-select-group .form-select:first-child { 
  margin-bottom: 12px; 
}

.photo-preview { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  margin-bottom: 12px; 
}

.photo-preview-item { 
  width: 100px; 
  height: 100px; 
  border-radius: 8px; 
  overflow: hidden; 
  border: 1px solid #e5e7eb; 
}

.photo-preview-item img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.form-checkbox { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.form-checkbox input[type="checkbox"] { 
  width: 18px; 
  height: 18px; 
  cursor: pointer; 
}

.form-checkbox label { 
  cursor: pointer; 
  font-size: 14px; 
  color: #374151; 
  margin: 0; 
}

.form-input-group { 
  display: flex; 
  align-items: center; 
}

.form-input-prefix { 
  padding: 12px 8px 12px 16px; 
  background: #f9fafb; 
  border: 1px solid #e0e0e0; 
  border-right: none; 
  border-radius: 8px 0 0 8px; 
  color: #6b7280; 
  font-size: 14px; 
}

.form-input-group .form-input { 
  border-radius: 0 8px 8px 0; 
  border-left: none; 
}

.form-input-group .form-input:focus { 
  border-left: 1px solid #2563eb; 
}

/* Profile styles */
.profile-info { 
  margin-bottom: 24px; 
}

.profile-info-item { 
  display: flex; 
  padding: 16px 0; 
  border-bottom: 1px solid #f3f4f6; 
}

.profile-info-item:last-child { 
  border-bottom: none; 
}

.profile-label { 
  font-weight: 600; 
  color: #374151; 
  min-width: 150px; 
  font-size: 14px; 
}

.profile-value { 
  color: #1a1a1a; 
  font-size: 14px; 
  flex: 1; 
}

.profile-link { 
  color: #2563eb; 
  text-decoration: none; 
  transition: color 0.2s; 
}

.profile-link:hover { 
  color: #1d4ed8; 
  text-decoration: underline; 
}

.profile-empty { 
  color: #9ca3af; 
  font-style: italic; 
}

/* Edit form specific styles */
.edit-form .btn-submit { 
  background: #10b981; 
}

.edit-form .btn-submit:hover { 
  background: #059669; 
}

/* ==========================================================================
   Forms - Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .form-container { 
    padding: 16px; 
  }
  
  .form-card { 
    padding: 24px; 
  }
  
  .form-title { 
    font-size: 24px; 
  }
  
  .form-header { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 12px; 
  }
  
  .form-actions { 
    flex-direction: column; 
  }
  
  .form-actions .btn-submit, 
  .form-actions .btn-cancel { 
    width: 100%; 
    text-align: center; 
  }
  
  .profile-info-item { 
    flex-direction: column; 
    gap: 8px; 
  }
  
  .profile-label { 
    min-width: auto; 
  }
  
  .form-input-group { 
    flex-wrap: wrap; 
  }
  
  .form-input-prefix { 
    border-radius: 8px 8px 0 0; 
    border-right: 1px solid #e0e0e0; 
    border-bottom: none; 
  }
  
  .form-input-group .form-input { 
    border-radius: 0 0 8px 8px; 
    border-left: 1px solid #e0e0e0; 
    border-top: none; 
  }
}

