.ai-suggestions-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.ai-suggestions-modal {
  background: var(--color-bg-secondary, #1e1e1e);
  border: 1px solid var(--color-border, #3c3c3c);
  border-radius: 8px;
  min-width: 500px;
  max-width: 650px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.ai-suggestions-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border, #3c3c3c);
}

.ai-suggestions-modal-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text, #fff);
}

.ai-suggestions-modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted, #888);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
}

.ai-suggestions-modal-close:hover {
  background: var(--color-bg-tertiary, #2a2a2a);
  color: var(--color-text, #fff);
}

.ai-suggestions-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Loading state */
.ai-suggestions-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.ai-suggestions-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border, #3c3c3c);
  border-top-color: var(--color-accent, #0078d4);
  border-radius: 50%;
  animation: ai-spinner-spin 1s linear infinite;
}

@keyframes ai-spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

.ai-suggestions-loading p {
  margin: 0;
  color: var(--color-text-muted, #888);
  font-size: 14px;
}

/* Error state */
.ai-suggestions-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 6px;
  color: var(--color-error, #f88);
}

.ai-suggestions-error .error-icon {
  font-size: 20px;
}

/* Empty state */
.ai-suggestions-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted, #888);
}

/* Suggestions intro */
.ai-suggestions-intro {
  margin: 0 0 16px 0;
  color: var(--color-text-muted, #888);
  font-size: 13px;
}

/* Suggestion list */
.ai-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-suggestion-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--color-bg-tertiary, #2a2a2a);
  border-radius: 6px;
  border: 1px solid var(--color-border, #3c3c3c);
}

/* Custom checkbox */
.ai-suggestion-checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  cursor: pointer;
}

.ai-suggestion-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.ai-suggestion-checkbox .checkmark {
  width: 20px;
  height: 20px;
  background: var(--color-bg-secondary, #1e1e1e);
  border: 2px solid var(--color-border, #4c4c4c);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ai-suggestion-checkbox:hover .checkmark {
  border-color: var(--color-accent, #0078d4);
}

.ai-suggestion-checkbox input:checked ~ .checkmark {
  background: var(--color-accent, #0078d4);
  border-color: var(--color-accent, #0078d4);
}

.ai-suggestion-checkbox input:checked ~ .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Suggestion content */
.ai-suggestion-content {
  flex: 1;
  min-width: 0;
}

.ai-suggestion-label {
  font-weight: 600;
  color: var(--color-text, #fff);
  font-size: 13px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-suggestion-has-value {
  font-weight: 400;
  font-size: 11px;
  color: var(--color-text-muted, #888);
  background: var(--color-bg-secondary, #1e1e1e);
  padding: 2px 6px;
  border-radius: 3px;
}

.ai-suggestion-value {
  color: var(--color-text, #fff);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.ai-suggestion-current {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-muted, #888);
  padding-top: 8px;
  border-top: 1px solid var(--color-border, #3c3c3c);
}

.ai-suggestion-current em {
  font-style: normal;
  color: var(--color-text-secondary, #ccc);
}

/* Footer */
.ai-suggestions-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--color-border, #3c3c3c);
}

.ai-suggestions-modal-footer button {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-suggestions-modal-footer .button-cancel {
  background: transparent;
  border: 1px solid var(--color-border, #4c4c4c);
  color: var(--color-text, #fff);
}

.ai-suggestions-modal-footer .button-cancel:hover:not(:disabled) {
  background: var(--color-bg-tertiary, #2a2a2a);
}

.ai-suggestions-modal-footer .button-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-suggestions-modal-footer .button-apply {
  background: var(--color-accent, #0078d4);
  border: 1px solid var(--color-accent, #0078d4);
  color: white;
}

.ai-suggestions-modal-footer .button-apply:hover:not(:disabled) {
  background: var(--color-accent-hover, #106ebe);
}

.ai-suggestions-modal-footer .button-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
