.add-item-details-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--modal-backdrop-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--spacing-md);
}

.add-item-details-modal {
  background: var(--modal-bg);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.add-item-details-title {
  font-size: var(--font-size-xl);
  margin: 0 0 var(--spacing-xs) 0;
  text-align: center;
  color: var(--color-text-primary);
}

.add-item-details-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin: 0 0 var(--spacing-xl) 0;
  font-size: var(--font-size-sm);
}

.add-item-details-section {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: var(--border-width-thin) solid var(--color-border-light);
}

.add-item-details-section:last-of-type {
  border-bottom: none;
}

.add-item-details-section-title {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* Image Upload Section */
.add-item-details-image-content {
  min-height: 120px;
}

.add-item-details-image-options {
  display: flex;
  gap: 0.8em;
  flex-wrap: wrap;
}

.add-item-details-image-btn {
  flex: 1;
  min-width: 140px;
  padding: var(--button-padding-y) var(--button-padding-x);
  font-size: 0.95em;
  border: var(--border-width-medium) solid var(--color-primary);
  background: var(--color-bg-surface);
  color: var(--color-primary);
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  font-weight: var(--button-font-weight);
  transition: var(--transition-base);
}

.add-item-details-image-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.add-item-details-image-preview {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: var(--border-width-medium) solid var(--color-border-light);
}

.add-item-details-image-preview img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: contain;
}

.add-item-details-remove-image {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.4em 0.8em;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  transition: background 0.2s;
}

.add-item-details-remove-image:hover {
  background: rgba(220, 53, 69, 1);
}

/* Classification Section */
.add-item-details-field {
  margin-bottom: 1em;
}

.add-item-details-field label {
  display: block;
  margin-bottom: 0.4em;
  font-weight: 600;
  color: #333;
  font-size: 0.9em;
}

.add-item-details-select {
  width: 100%;
  padding: 0.6em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background: white;
}

.add-item-details-select:focus {
  outline: none;
  border-color: #007bff;
}

/* Actions */
.add-item-details-actions {
  display: flex;
  gap: 0.6em;
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #e0e0e0;
}

.add-item-details-btn {
  flex: 1;
  padding: 0.7em;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.add-item-details-btn.cancel {
  background: #6c757d;
  color: white;
}

.add-item-details-btn.cancel:hover {
  background: #5a6268;
}

.add-item-details-btn.skip {
  background: #ffc107;
  color: #333;
}

.add-item-details-btn.skip:hover {
  background: #e0a800;
}

.add-item-details-btn.confirm {
  background: #007bff;
  color: white;
}

.add-item-details-btn.confirm:hover {
  background: #0056b3;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .add-item-details-overlay {
    padding: var(--spacing-sm);
  }

  .add-item-details-modal {
    width: 95%;
    max-width: 95%;
    padding: var(--spacing-md);
  }

  .add-item-details-title {
    font-size: 1.3em;
  }

  .add-item-details-select {
    padding: 0.7em;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .add-item-details-image-options {
    gap: 0.6em;
  }

  .add-item-details-image-btn {
    min-height: 44px;
  }

  .add-item-details-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .add-item-details-btn {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .add-item-details-modal {
    padding: 1rem;
    border-radius: 8px;
  }

  .add-item-details-title {
    font-size: 1.15em;
  }

  .add-item-details-subtitle {
    font-size: 0.85em;
  }

  .add-item-details-section-title {
    font-size: 1em;
  }

  .add-item-details-image-options {
    flex-direction: column;
  }

  .add-item-details-image-btn {
    min-width: 100%;
    font-size: 0.9em;
  }

  .add-item-details-field label {
    font-size: 0.85em;
  }
}
