/* Forms */
.ad-form {
  width: 75%;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
}

.field input,
.field select,
.field textarea {
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #4caf50;
}

.field select[multiple] {
  height: 120px;
}

.field small {
  display: block;
  margin-top: 0.25rem;
  color: #666;
  font-size: 0.875rem;
}

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

.currency-symbol {
  font-weight: bold;
  margin-right: 0.5rem;
  color: #2e7d32;
  font-size: 1.1rem;
}

/* Buttons */
.btn,
.submit-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.submit-btn,
.btn-create {
  background: #4caf50;
  color: white;
}

.submit-btn:hover,
.btn-create:hover {
  background: #45a049;
  transform: translateY(-1px);
}

.btn-edit {
  background: #2196f3;
  color: white;
}

.btn-edit:hover {
  background: #1976d2;
}

.btn-delete {
  background: #f44336;
  color: white;
}

.btn-delete:hover {
  background: #d32f2f;
}

.btn-back {
  background: #757575;
  color: white;
}

.btn-back:hover {
  background: #616161;
}

/* Better checkbox field styling */
.checkbox-group .form-check-label {
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
  padding-left: 0.25rem;
}

.checkbox-group.compact .form-check-label {
  font-size: 0.875rem;
  line-height: 1.2;
}

.checkbox-group .form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.checkbox-group .form-check-input {
  margin-top: 0.125rem;
  flex-shrink: 0;
}
.input-100 {
  width: 100%;
}

/* Field Group Styles */
.field-group {
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
}

.field-group-header {
  background: #f5f5f5;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
}

.field-group-header-clickable {
  transition: background-color 0.2s ease;
}

.field-group-header-clickable:hover {
  background: #eeeeee;
}

.field-group-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.field-group-description {
  padding: 0 1.25rem 0.75rem;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.field-group-content {
  padding: 1.5rem 1.25rem;
  background: white;
}

.field-group-toggle-icon {
  transition: transform 0.2s ease;
  color: #666;
  font-size: 0.9rem;
}

.field-group-collapsible .field-group-toggle-icon.bi-chevron-right {
  transform: rotate(0deg);
}

.field-group-collapsible .field-group-toggle-icon.bi-chevron-down {
  transform: rotate(0deg);
}

.field-group-hidden {
  display: none !important;
}

/* Nested field groups */
.field-group .field-group {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.field-group .field-group .field-group-header {
  background: #f8f8f8;
  padding: 0.75rem 1rem;
}

.field-group .field-group .field-group-title {
  font-size: 1rem;
}

.field-group .field-group .field-group-content {
  padding: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .field-group-header {
    padding: 0.75rem 1rem;
  }
  
  .field-group-content {
    padding: 1rem;
  }
  
  .field-group-title {
    font-size: 1rem;
  }
}