/* General body styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
/* Container for the app */
.container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 50rem;
}
header h1 {
  text-align: center;
  color: #333;
  font-size: 1.5rem;
}
/* Button container */
.button-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
/* Button styles */
.btn {
  padding: 10px 15px;
  font-size: 1rem;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn:hover {
  background-color: #0056b3;
}
.btn:disabled {
  background-color: #ccc;
}
/* Breadcrumbs */
.breadcrumbs {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 5px;
  border-left: 3px solid #007bff;
}
.breadcrumb {
  color: #007bff;
  cursor: pointer;
  font-weight: 500;
}
.breadcrumb:hover {
  text-decoration: underline;
}
/* Form styling */
.json-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 70vh;
}
/* Postman-like row styling */
.form-row {
  display: grid;
  grid-template-columns: minmax(150px, 30%) 1fr;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}
.form-row:hover {
  background-color: #f8f9fa;
}
.json-form label {
  font-weight: 500;
  color: #333;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}
.type-indicator {
  font-size: 0.7rem;
  color: #666;
  background: #f1f1f1;
  padding: 2px 4px;
  border-radius: 3px;
  margin-left: 5px;
}
.form-input {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
/* Expand button styles for nested objects */
.expand-btn {
  padding: 6px 10px;
  font-size: 0.9rem;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.expand-btn:hover {
  background-color: #5a6268;
}
.expand-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.25);
}
/* Array styling */
.array-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f8f9fa;
  overflow: hidden;
}
.array-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #e9ecef;
  border-bottom: 1px solid #ddd;
}
.array-title {
  font-weight: 500;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
}
.array-count {
  background-color: #007bff;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.8rem;
}
.array-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.array-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}
.array-item-header {
  font-weight: 500;
  color: #495057;
  width: 30px;
  text-align: center;
}
.array-input {
  flex: 1;
  padding: 6px 8px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.remove-btn {
  padding: 4px 8px;
  font-size: 0.8rem;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.remove-btn:hover {
  background-color: #c82333;
}
.add-btn {
  padding: 6px 10px;
  margin-top: 8px;
  font-size: 0.9rem;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.2s;
  align-self: flex-start;
}
.add-btn:hover {
  background-color: #218838;
}
.edit-object-btn {
  padding: 4px 8px;
  font-size: 0.8rem;
  background-color: #17a2b8;
  color: white;
  border: none;
  border-radius: 4px;
  flex: 1;
  cursor: pointer;
  transition: background-color 0.2s;
}
.edit-object-btn:hover {
  background-color: #138496;
}
.checkbox-container {
  display: flex;
  align-items: center;
}
.checkbox-input {
  width: 18px;
  height: 18px;
  margin-right: 0;
}
/* Icons */
.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
